lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
2021-04-09T11:50:36.001700Z

I have a repository with two clojure projects in it (a client and a server). When using clojure-lsp (with emacs) it seems the unused var detection is wrong. I was wondering if it could be that it doesn’t know where the project root is? Is there anything I can do to debug this?

2021-04-09T11:55:06.002Z

clj-kondo seems to report it correctly

ericdallo 2021-04-09T12:29:57.002200Z

It will depend on the project root configured by you when you first imported the project

ericdallo 2021-04-09T12:30:37.002400Z

You can lsp-workspace-folders-remove and then lsp

ericdallo 2021-04-09T12:30:47.002600Z

Then select the project root manually

2021-04-09T14:31:36.002800Z

Thanks for the explanation :thumbsup: That seems to fix it

ericdallo 2021-04-09T14:31:57.003Z

Good 🙂