Fork me on GitHub
#lsp
<
2023-07-24
>
Stig Brautaset10:07:29

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)

Stig Brautaset10:07:51

This is on Darwin

ericdallo11:07:20

oh, that was my bad on last commit, could you try again, just pushed a fix

Stig Brautaset12:07:01

Will do after lunch šŸ‘

Stig Brautaset12:07:33

Seems to work šŸ™‚

Stig Brautaset12:07:13

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")

ericdallo12:07:26

it's a eglot timeout, the LSP spec says nothing about tmeouts, I have no idea why eglot has that timeout :)

ericdallo12:07:58

the clojure-lsp has already good feedback messages to report the startup progress

Stig Brautaset12:07:19

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.

ericdallo12:07:46

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

šŸ‘ 2
Stig Brautaset12:07:27

Ah, OK. It looks like disabling the timeout was it! Thank you again šŸ™‚

ericdallo12:07:58

you're welcome!

Ellis19:07:19

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

ericdallo19:07:12

Glad to have you back @U043RSZ25HQ :)

Ellis19:07:54

It was only brief šŸ˜› I was curious if it was comparable, quickly learned it wasn't

frankitox18:07:27

Is there any way to use lsp to move a function from one namespace to another?

ericdallo19:07:44

Yes, but with some limitations

ericdallo19:07:24

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

ericdallo19:07:35

there is a issue about that discussing all limitations and discussions about how to behave

Ellis20:07:44

By default is cljfmt called without any default config?

Ellis20:07:29

Ah perfect thanks šŸ™‚