This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-20
Channels
- # adventofcode (23)
- # announcements (4)
- # babashka (1)
- # beginners (37)
- # biff (2)
- # calva (1)
- # cider (19)
- # clj-kondo (11)
- # clojure (45)
- # clojure-bay-area (2)
- # clojure-europe (12)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (2)
- # clojurescript (8)
- # conjure (1)
- # cursive (17)
- # datomic (11)
- # garden (1)
- # graalvm (4)
- # hyperfiddle (21)
- # java (10)
- # jobs (3)
- # lsp (23)
- # off-topic (18)
- # polylith (2)
- # re-frame (4)
- # releases (1)
- # remote-jobs (3)
- # rewrite-clj (4)
- # squint (44)
- # uncomplicate (1)
- # xtdb (84)
How can I specify what version of clj-kondo I want to use with clojure-lsp? I don’t see this available in the config.
Because that's not available in the config, you can use the #C032YH7P0R2 though which always use latest kondo
Would it be possible to make clojure-lsp work with a version of clj-kondo I have installed?
No, especially because we use a native image version via Graalvm, you can use the JVM version used for debugging and development, but I suggest avoid that
Why you want a different clj-kondo ? I know know bork dude that use a local kondo installation and me because we are developers of those libs, is that for a similar purpose?
You can run Clojure-LSP from the JVM and use any clj-kondo version this way. I am doing this all the time. I’ll post a link later
check the part here where it says ~/bin/clojure-lsp-dev
:
https://github.com/clj-kondo/clj-kondo/blob/master/doc/editor-integration.md
@U04V15CAJ I know this will work, but just to make it clear that I see this useful for local developemnt and not a final product for users, that's why I'd like to understand why @UHS6PHL31 wnats to run with a different clj-kondo version
but from my tests the JVM version has OoM exceptiosn on huge projects that the graal version doesn't have
I think the native image version will OoM at one point too, this is just a tuning problem
It would be weird to say: only use this library via native image because on the JVM it will OoM, then clearly something else is wrong
For me it is mainly to ensure that I have the same version of clj-kondo pinned regardless of whether I’m running it from the command line, via clojure-lsp or as a dependency in a clojure project. Otherwise it becomes confusing if certain warnings or errors appear in CI, for example, but not in the IDE and vice versa.
It’s not just that. People in our codebase use different tools and IDEs and I want to make sure that whoever runs clj-kondo via IDE or not, can see the same errors and warnings. I guess pinning a particular clojure-lsp version is workaround for this.
Recent clj-kondo release of 2023.12.15
contained a number of fixes that I need, so I’m looking forward for clojure-lsp
release containing this clj-kondo version.