lsp

dominicm 2025-03-05T03:15:29.722739Z

From neovim I'm not having any luck with the incoming and outgoing call hierarchy functions. Are those working for others?

dominicm 2025-03-05T04:17:28.549029Z

Figured it out. Neovim isn't recursive, so doesn't find anything it can show. Third party plugins which do recurse seem to work ok, eg hierarchy.nvim

👍 1
rschmukler 2025-03-05T15:08:06.009319Z

Hey all! I'm helping some users troubleshoot clj-kondo errors that seem to come from running clojure-lsp and it polluting clj-kondo's cache. Does clojure-lsp cache dependencies anywhere that could be out of date with the latest version (and version in deps.edn ) such that it could be using something else for clj-kondo? The issue:https://github.com/taoensso/telemere/issues/32#issuecomment-2700211540 The screenshot of the behavior:

ericdallo 2025-03-05T16:42:57.997919Z

clojure-lsp has only external classpath cache (your deps) but it shouldn't affect diagnostics(clj-kondo findings), even so you can test removing .lsp/.cache

rschmukler 2025-03-05T17:10:26.257379Z

The user hit that error with no .lsp before. ie. in the screenshot you can see that .lsp doesn't exist, then clj-kondo runs correctly with no errors, then he invokes clojure-lsp diagnostics and then it reports a (incorrect) clj-kondo error, and then running clj-kondo also incorrectly reports the error

rschmukler 2025-03-05T17:10:37.620449Z

Any ideas what could cause that?

ericdallo 2025-03-05T17:14:02.653839Z

Yes, I suggest not running clj-kondo before, leave it to clojure-lsp which invokes clj-kondo under the hood. The problem may be that when running clj-kondo manually, is pretty easy to not include the external classpath properly or miss some flag, and may cause inconsistency like that

🤔 1
borkdude 2025-03-06T11:58:51.765869Z

That doesn't make sense to me really.

borkdude 2025-03-06T11:59:12.833269Z

I think the issue may just be a weird exported config that only comes into effect once lsp does the copy-configs thing

ericdallo 2025-03-06T12:01:32.614929Z

yes, that's what I believe it may be as well

borkdude 2025-03-06T12:24:51.956009Z

I replied in the issue. Nothing unexpected happens