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?
The reported error is that there's a mismatched bracket
clojure-lsp already uses clj-kondo so you don't need to install clj-kondo manually
that check should come from clj-kondo, @borkdude can you confirm this is not supported by kondo yet?
have you tried linting it just with clj-kondo? that will be your confirming right there
could be that lsp isn't up to date
works over here
but I'm running lsp from source with an always up to date clj-kondo
I see. The lsp version brew gave me was from the end of august
Do I need to build it from source, or are there some other ways of installing it that gives me a more recent version?
the nightly build from #clojure-lsp-builds should work too
but I intend to do a new release soon as well, especially because of the 1.12 fixes
@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
Cool, thanks! I'll give that a shot 👍
I just pushed the bump to latest clj-kondo master, so in some mins it should be available as a nightly build
Awesome, thanks!