This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-15
Channels
- # announcements (13)
- # aws (6)
- # babashka (23)
- # babashka-sci-dev (6)
- # beginners (64)
- # calva (110)
- # cider (25)
- # cljs-dev (5)
- # cljsrn (8)
- # clojars (5)
- # clojure (20)
- # clojure-austin (1)
- # clojure-europe (77)
- # clojure-nl (1)
- # clojure-uk (3)
- # clojurescript (14)
- # cursive (7)
- # datahike (9)
- # datomic (13)
- # eastwood (15)
- # emacs (14)
- # figwheel-main (1)
- # fulcro (8)
- # graalvm-mobile (2)
- # graphql (2)
- # honeysql (2)
- # hyperfiddle (2)
- # introduce-yourself (4)
- # jobs (4)
- # joyride (4)
- # leiningen (4)
- # lsp (8)
- # minecraft (8)
- # off-topic (11)
- # polylith (18)
- # rdf (2)
- # reagent (3)
- # reitit (4)
- # remote-jobs (1)
- # shadow-cljs (39)
- # specter (7)
- # xtdb (3)
are there any known issues with clojure-lsp
"freezing" when adding new files?
for example (in emacs):
1. I use treemacs
to add some foobar.cljs
file to my project somewhere
2. I open the file and see the contents are (ns some.package.foobar)
(not sure what adds this default content)
3. I add some :require
's and do something, which requires communication with clojure-lsp
, e.g. try to complete (def foo (str/joi<tab>
4. Emacs freezes
5. After perhaps 10 seconds emacs unfreezes and I see completion--some: Timeout while waiting for response. Method: textDocument/completion
in *Messages*
Nothing particularly interesting happens in the clojure-lsp
logs at the same time:
2022-06-15T04:58:35.040Z INFO [clojure-lsp.handlers:428] - :resolve-code-lens 55ms
2022-06-15T04:58:46.566Z WARN [clojure-lsp.kondo:276] - Non-fatal error from clj-kondo: No configs copied.
2022-06-15T04:58:46.567Z INFO [clojure-lsp.handlers:124] - :did-open 140ms
2022-06-15T04:58:46.567Z INFO [clojure-lsp.server:104] - :refreshing-test-tree 0ms
2022-06-15T04:58:46.567Z INFO [clojure-lsp.handlers:422] - :code-lens 0ms
2022-06-15T04:58:46.812Z WARN [clojure-lsp.kondo:276] - Non-fatal error from clj-kondo: No configs copied.
2022-06-15T04:58:46.812Z INFO [clojure-lsp.handlers:124] - :did-open 246ms
2022-06-15T04:58:46.813Z INFO [clojure-lsp.server:104] - :refreshing-test-tree 0ms
2022-06-15T04:58:46.813Z INFO [clojure-lsp.handlers:146] - :did-close 0ms
2022-06-15T04:58:46.814Z INFO [clojure-lsp.handlers:422] - :code-lens 0ms
2022-06-15T04:58:46.969Z WARN [clojure-lsp.kondo:276] - Non-fatal error from clj-kondo: No configs copied.
afterwards the clojure-lsp
process is still running, but the communication between emacs and clojure-lsp
doesn't seem to work. And nothing appears in the clojure-lsp
logs.
Running lsp-workspace-restart
fixes the issue; the old clojure-lsp
process dies and a new one is spawned.
I can try if I could create a minimal repro of this