Fork me on GitHub
#lsp
<
2023-10-05
>
magnars07:10:40

I am new to clojure-lsp and lsp-mode, so brace for a newbie question šŸ˜Š After bumping the version of a dependency which changed the signature of a function, I got lint-errors for the new parameter list. After clearing the .clj-kondo cache, it worked properly. The question is: Am I supposed to have to delete the cache-file myself regularly, or is there some system in place to keep it in sync that I missed?

borkdude07:10:50

When bumping deps you could restart the server to re-lint deps. Not sure if this should happen automatically, @UKFSJSM38 will probably respond here

ericdallo11:10:36

Yes, there are LSP servers like java and dart that re-lint the project automatically, but clojure-lsp doesn't have that so you need to lsp-workspace-restart

magnars11:10:45

Thanks, that should work well for these rare occasions. šŸ˜Š šŸ‘

pesterhazy07:10:02

Is there an LSP command line client? In other words, I'd love for there to be a way to get LSP results from the command line: ā€¢ Make sure the LSP config is working correctly (while ruling out Emacs as a source of problems) ā€¢ Find references for tools ā€¢ Do renames or other refactors from the CLI

pesterhazy07:10:26

Ah yeah forgot about that!

pesterhazy07:10:26

Just explored clojure-lsp dump - very cool that you can just look at the data like that

pesterhazy07:10:30

That data also seems like it could be useful for figuring out why jump-to-definition isn't working

borkdude07:10:01

> Find references for tools You can also use clj-kondo directly for this, a bit lighter weight

šŸ‘ 1
ericdallo11:10:09

BTW clojure-lsp is the only LSP server I know that has this CLI usage šŸ˜…

metal 4
Akiz16:10:44

Hi, what is the reason why lsp (or clj-kondo) does not highlight the wrong number of arguments in the function in case of cljs?

borkdude16:10:15

"in the function in case of cljs" - can you please be more specific?

Akiz16:10:22

@U04V15CAJ Your question made me check the configuration, I had it broken on my side. Everything works as it should šŸ™‚

šŸŽ‰ 1
borkdude20:10:06

@UBRV1HXPD You don't have to delete your original question, this makes it more confusing to read back later

šŸ‘ 1
āž• 1