clj-kondo

https://github.com/clj-kondo/clj-kondo
niveauverleih 2020-11-23T09:53:41.012700Z

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?

borkdude 2020-11-23T09:55:09.013300Z

> 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

niveauverleih 2020-11-23T10:22:49.013400Z

Ok, I'll check.

practicalli-john 2020-11-23T14:43:50.014300Z

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.

practicalli-john 2020-11-23T14:48:02.016400Z

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.

👍 1
practicalli-john 2020-11-23T22:23:38.016900Z

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