Fork me on GitHub
#clj-kondo
<
2020-11-23
>
niveauverleih09:11:41

I'm trying to install the clj-kondo lsp server again. I got it running in the past, but this time I hit a problem. First, when I run java -jar clj-kondo-lsp-server.jar the process starts but it does give any output. Is that normal? Second, in spacemacs I get an error LSP :: Connected to [clojure-lsp:21508 status:starting]. LSP :: clojure-lsp has exited (exited abnormally with code 1) Server clojure-lsp:21508 status:starting exited with status exit. Do you want to restart it? (y or n) n I don't know why it talks about clojure-lsp, I configured it as described on your github to run the clj-kondo-lsp-server.jar. Any ideas?

borkdude09:11:09

> the process starts but it does give any output. Is that normal? Yes, it just waits for a connection This seems more like a configuration issue on your end than an issue with clj-kondo LSP since it doesn't not have any dependency on clojure-lsp

niveauverleih10:11:49

Ok, I'll check.

practicalli-johnny14:11:50

This is the config I used previously (It has been a while since I tested it). https://github.com/practicalli/spacemacs.d/blob/live/init.el#L974-L987 The only difference is I use a script called clojure-lsp-server-clj-kondo to wrap the java command to run the LSP server. If you dont fix it I can try this again later today.

niveauverleih19:11:47

Thanks, I solved it. In the dotspacemacs file I had to put a complete path from root to the jar iso a relative path from home.

practicalli-johnny22:11:38

Having to use the full path is why I used a script instead, to make the Emacs config more portable

practicalli-johnny14:11:02

FYI. The https://github.com/marketplace/actions/setup-clj-kondo GitHub actions for clj-kondo was updated 13 days ago to resolve the deprecation of add-paths in GitHub actions. I just updated and the new version, - uses: DeLaGuardo/setup-clj-kondo@master is working well. Thanks.

👍 3