If I am planning on using clj-kondo with flycheck do I still need LSP setup?
If you just want lint on your code, you don't need LSP. But if you want lint + refactoring + quick fixes + other IDE features, you'd probably wants to install only lsp-mode and clojure-lsp which already have clj-jondo built-in and give all of that
Here you can see all features: https://clojure-lsp.github.io/clojure-lsp/features/
@ericdallo Thank you!
Hello, I'm having an issue with clj-kondo and honeysql because honeysql helpers are macros and clj-kondo doesn't recognize those macros. I tried configuring clj-kondo as in honeysql's https://github.com/seancorfield/honeysql/blob/develop/.clj-kondo/config.edn
but now, instead of a unknown symbol warning, I'm getting an error because it expects (select :field1 :field2 :field3)
to have only 2 arguments..
anyone had issues like this before?
solve it adding a config to lint the helper as clj-kondo.lint-as/def-catch-all
helo, I am trying to use clj-kondo and it tells me Unexpected error. Please report an issue. when I try to lint a file manually
can you give more information? please be as detailed as you can.
I am not sure if I can.
not sure if this helps at all
well, for example, you could make a screenshot of how you invoke clj-kondo, provide the clj-kondo version, operating system, etc.
I can try to localize the issue after work in non-work file
this sounds like a configuration error possibly.
can you rename the config.edn
file to config.bak.edn
or something?
definitely, I will re check the configuration, will take a while. thanks
renaming does make the error go away, thanks again.
this probably means that there is misconfiguration in this file. please let me know what caused it so clj-kondo can provide a better error message
:unresolved symbol :exclude vector had lists without further vectors, just the namespaces
although, by mistake I left a () in it, that caused a nullpointer exception 🙂
thanks for the help, now I am trying to write a working config...
:unresolved-symbol {:exclude [(helix.core/defnc) (helix.core/defhook) (kitchen-async.promise)]}}}
and :exclude [ () ....
btw. I wouldn't expect anything to work with incorrect config, so I am sharing it mostly to clear it up, not because I think you should do anything about it
I think clj-kondo can provide a linter for its own config. We are already linting deps.edn
as well
turtles all the way down? 🙂