lsp

cjohansen 2024-10-09T13:25:28.527889Z

When using the new 1.12 syntax for type-hinting, I'm getting syntax errors. I'm not exactly sure where the error is coming from though 😬 I have installed clj-kondo 2024.09.27 (with brew), updated lsp, cleared .clj-kondo and .lsp, and restarted Emacs for good measure. Any ideas?

cjohansen 2024-10-09T13:26:00.500589Z

The reported error is that there's a mismatched bracket

ericdallo 2024-10-09T13:26:15.634699Z

clojure-lsp already uses clj-kondo so you don't need to install clj-kondo manually

ericdallo 2024-10-09T13:26:42.831239Z

that check should come from clj-kondo, @borkdude can you confirm this is not supported by kondo yet?

borkdude 2024-10-09T13:29:36.688499Z

have you tried linting it just with clj-kondo? that will be your confirming right there

borkdude 2024-10-09T13:29:41.642179Z

could be that lsp isn't up to date

borkdude 2024-10-09T13:30:25.648239Z

works over here

borkdude 2024-10-09T13:30:37.146559Z

but I'm running lsp from source with an always up to date clj-kondo

cjohansen 2024-10-09T13:32:11.865049Z

I see. The lsp version brew gave me was from the end of august

👍 1
cjohansen 2024-10-09T13:38:55.343019Z

Do I need to build it from source, or are there some other ways of installing it that gives me a more recent version?

ericdallo 2024-10-09T13:40:23.350989Z

the nightly build from #clojure-lsp-builds should work too

ericdallo 2024-10-09T13:40:39.667919Z

but I intend to do a new release soon as well, especially because of the 1.12 fixes

👍 1
borkdude 2024-10-09T13:41:24.742289Z

@christian767 ericdallo can probably bump clj-kondo in lsp and then you can use the nightly (as he meanwhile typed, while I was typing this), but this is how I run clj-kondo + lsp myself, admittedly probably mostly useful for when you're developing clj-kondo: https://github.com/clj-kondo/clj-kondo/blob/master/doc/editor-integration.md Search for ~/bin/clojure-lsp-dev on that page

cjohansen 2024-10-09T13:43:15.767019Z

Cool, thanks! I'll give that a shot 👍

ericdallo 2024-10-09T13:46:31.891259Z

I just pushed the bump to latest clj-kondo master, so in some mins it should be available as a nightly build

🚀 2
cjohansen 2024-10-09T13:46:43.308139Z

Awesome, thanks!