lsp

Felix Dorner 2025-03-06T11:53:46.933169Z

With eglot+clojure-lsp: I have a project where the clojure project root is a subfolder of the project root directory. For this project I don't get clj-kondo/flymake entries. Is there a tweak I can set to make it work? (It works fine for projects that are not in subfolders of the git root).

ericdallo 2025-03-06T11:55:45.008659Z

you should configure the lsp project root properly, if the root project is not a clojure project or is not a mono-repo clojure, you should configure eglot to have your lsp project root at your subproject, not sure how to do this tho, only with lsp-mode

Felix Dorner 2025-03-06T11:56:57.967709Z

Yeah I think it's maybe not possible with eglot.

mpenet 2025-03-06T11:57:15.457779Z

the "module" has a deps.edn?

Felix Dorner 2025-03-06T11:57:38.379119Z

yup

Felix Dorner 2025-03-06T11:58:38.096059Z

company for example seems to work just fine. It's only the kondo stuff that misbehaves.

mpenet 2025-03-06T11:58:59.025269Z

strange, most of our projects are like this and I don't have any issue

1
mpenet 2025-03-06T11:59:05.290979Z

(using eglot)

ericdallo 2025-03-06T12:00:54.829319Z

are you sure you don't have any custom .clj-kondo/config.edn config that may disable that? try running clojure-lsp diagnostics on the subproject to make sure diagnostics are being returned

Felix Dorner 2025-03-06T12:01:33.237749Z

Oh wait, it's only on a single file, I'll check, it's something silly for sure!

Felix Dorner 2025-03-06T12:03:38.158089Z

Hmm, okay, well.. now it works again. Sorry for the noise 😞

👍 1
Felix Dorner 2025-03-06T12:04:13.558919Z

I just added an unused require and saved, which then triggered everything to work again.