This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-07
Channels
- # architecture (35)
- # babashka (9)
- # beginners (31)
- # biff (15)
- # calva (8)
- # catalyst (3)
- # cider (7)
- # clerk (4)
- # clj-kondo (24)
- # clj-yaml (10)
- # clojure (58)
- # clojure-europe (65)
- # clojure-japan (1)
- # clojure-nl (1)
- # clojure-norway (89)
- # clojure-spec (1)
- # clojure-sweden (1)
- # clojure-uk (8)
- # clojurescript (14)
- # cursive (3)
- # datahike (1)
- # datomic (29)
- # emacs (8)
- # graalvm (20)
- # graphql (1)
- # gratitude (2)
- # helix (6)
- # hyperfiddle (65)
- # jobs-discuss (7)
- # leiningen (1)
- # lsp (6)
- # malli (14)
- # missionary (12)
- # nrepl (8)
- # off-topic (24)
- # polylith (29)
- # reagent (14)
- # sci (14)
- # shadow-cljs (6)
- # spacemacs (10)
- # sql (4)
I recently upgraded to 29.1 and it’s made Spacemacs pretty unstable when using cider: I think completion is hanging, but it’s not getting to a point where debug on error is actually catching it. Anyone had this issue and have a fix?
Ah disabling LSP linting seemed to make things snappy again. I’ll start with that and see if I can make LSP linting performant.
I find completion slow when typing so have increased the delay quite significantly using lsp-idle-delay 1.5
as an lsp layer variable, e.g.
(lsp :variables
lsp-headerline-breadcrumb-enable t ; Breadcrumb trail
lsp-headerline-breadcrumb-segments '(symbols) ; namespace & symbols, no file path
lsp-ui-peek-enable nil ; popups for refs, errors, symbols, etc.
lsp-semantic-tokens-enable t ; enhance syntax highlight
lsp-treemacs-error-list-current-project-only t ; limit errors to current project
lsp-idle-delay 1.5 ; smooth LSP features response
lsp-eldoc-enable-hover nil ; disable all hover actions
lsp-ui-doc-enable nil ; doc hover popups
lsp-ui-sideline-enable nil ; sidebar code actions visual indicator
treemacs-space-between-root-nodes nil ; spacing in treemacs views
lsp-log-io t ; Log client-server json communication
)
This is on Emacs 30 built from source a few weeks ago, so should be a similar experience in Emacs 29
I've only recently increased this value, so not sure if it has other consequences, but it seems to help typing speed.I’ll try that. I like certain features of LSP but it seems to be grinding gears against cider. I still haven’t found a smoking gun for what’s causing things but I’ve had to hard kill eMacs quite a lot in the last few days.
You could also try adding the following to dotspacemacs/user-config
section of the spacemacs user configuration file
(setq gc-cons-threshold (* 100 1024 1024)
read-process-output-max (* 1024 1024)
From the suggested config at https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/#basic-configuration
Spacemacs already sets a large number for gc-cons-threshold though...Closing the loop on this one: I upped the idle time, and that improved things significantly. I also removed the syntax checking layer about an hour later; performance is stable and no lockups since those changes.
Thanks. I have the same too and all seems well.