This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-23
Channels
- # announcements (2)
- # atom-editor (3)
- # babashka (49)
- # beginners (100)
- # biff (9)
- # calva (78)
- # clj-kondo (18)
- # clojure (143)
- # clojure-europe (13)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-spec (5)
- # clojure-sweden (2)
- # clojure-uk (4)
- # clojurescript (58)
- # conjure (1)
- # cursive (4)
- # datascript (11)
- # datomic (63)
- # docker (7)
- # emacs (18)
- # events (1)
- # fulcro (18)
- # graalvm (5)
- # helix (4)
- # improve-getting-started (13)
- # jobs (4)
- # jobs-discuss (3)
- # lsp (15)
- # malli (90)
- # membrane (14)
- # off-topic (12)
- # other-languages (5)
- # pedestal (7)
- # polylith (53)
- # re-frame (15)
- # reitit (23)
- # releases (4)
- # remote-jobs (9)
- # ring (11)
- # shadow-cljs (90)
- # specter (2)
- # testing (3)
- # tools-build (63)
- # vim (2)
- # xtdb (8)
Does anybody experience some laggyness in the editor when using lsp-mode
? I am particularly having issues with paredit
. E.g. barf
goes from being immediate to taking (what feels like) at least 300ms.
Getting this messages during every edit:
LSP :: Applying 1 edits to `server.clj' ...
Applying 1 edits to `server.clj' ...done
maybe it's related with the fact that every time you use pareit with lsp-mode, by default lsp-mode call textDocument/formattingRange
, which is not a really fast operation on clojure-lsp, causing this lag.
You can disable this behavior though, just not recall the variable to set
You can confirm this behavior checking lsp-mode logs, check https://emacs-lsp.github.io/lsp-mode/page/troubleshooting/#lsp-log
I see this:
Cancelling textDocument/codeLens(14) in hook after-change-functions
Cancelling textDocument/documentHighlight(12) in hook after-change-functions
hmm, that’s all I see
no, just went into the *lps-log*
buffer.
lsp-workspace-show-log
returns IO logging is disabled
:face_palm:
I see it now. Yes, textDocument/formattingRange
is there.
So how could I find how to disable it? Can’t find anything online or on the emacs-lsp
repo related to textDocument/formattingRange
.
yeah, it works!
Just a reminder that the State of Clojure 2022 survey https://www.surveymonkey.com/r/clojure2022 is open and to make sure you register your use of Emacs (Question #20)