This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-24
Channels
- # announcements (3)
- # babashka (3)
- # beginners (34)
- # calva (6)
- # cider (4)
- # clerk (5)
- # cljs-dev (1)
- # clojure (47)
- # clojure-europe (41)
- # clojure-norway (1)
- # clojurescript (59)
- # cursive (5)
- # data-science (9)
- # datascript (14)
- # events (1)
- # fulcro (5)
- # guix (14)
- # helix (7)
- # hoplon (5)
- # hyperfiddle (2)
- # kaocha (8)
- # lambdaisland (1)
- # lsp (24)
- # releases (1)
- # scittle (31)
- # shadow-cljs (10)
- # tools-build (2)
Trying to install clojure-lsp using the flake (as of ~1 hour ago) and Iām getting this error:
----- Error --------------------------------------------------------------------
Type: java.lang.AssertionError
Message: Assert failed: (not (str/includes? err "Reflection warning"))
Location: <expr>:29:1
(Full error in thread)This is on Darwin
Will do after lunch š
Seems to work š
Or, well, it builds. Iām not sure if this is an Eglot bug or LSP, but Eglot now times out waiting for LSP to start:
[eglot] Waiting in background for server `EGLOT (workflows-conductor/(clojure-mode clojurescript-mode clojurec-mode clojure-ts-mode))'
[jsonrpc] Server exited with status 9
Error running timer: (error "[eglot] Timed out after 30 seconds")
it's a eglot timeout, the LSP spec says nothing about tmeouts, I have no idea why eglot has that timeout :)
I shall try to disable the timeout. But is there any reason why lsp should take much longer to start than the LSP as of May? Because that works for me.
we have now some keyword and java analsysi that increased a little bit the startup, but should affect only the first time in a project
Ah, OK. It looks like disabling the timeout was it! Thank you again š
Yeah I had the same on eglot, I had to disable the timeout to have my project work. Death by a thousand cuts with eglot had me sticking with lsp-mode š Everything works so much smoother
Glad to have you back @U043RSZ25HQ :)
there is the move-form
https://clojure-lsp.io/features/#clojure-lsp-extra-commands, but no code action yet as there are limitations to be improved
there is a issue about that discussing all limitations and discussions about how to behave
Linking the https://github.com/clojure-lsp/clojure-lsp/issues/566 for future reference. Thanks!

almost, it uses the default cljfmt config https://github.com/clojure-lsp/clojure-lsp/blob/1d120912a98ef6128cdcd47c67a31decfea5632a/lib/src/clojure_lsp/feature/format.clj#L98-L105