Fork me on GitHub
#clj-kondo
<
2021-05-05
>
piyer00:05:18

If I am planning on using clj-kondo with flycheck do I still need LSP setup?

ericdallo00:05:04

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

matheusashton02:05:55

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?

matheusashton02:05:55

solve it adding a config to lint the helper as clj-kondo.lint-as/def-catch-all

Aron09:05:51

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

borkdude09:05:45

can you give more information? please be as detailed as you can.

Aron09:05:52

I am not sure if I can.

Aron09:05:56

not sure if this helps at all

borkdude09:05:16

well, for example, you could make a screenshot of how you invoke clj-kondo, provide the clj-kondo version, operating system, etc.

Aron09:05:27

I can try to localize the issue after work in non-work file

borkdude09:05:42

this sounds like a configuration error possibly.

borkdude09:05:58

can you rename the config.edn file to config.bak.edn or something?

Aron09:05:16

definitely, I will re check the configuration, will take a while. thanks

Aron10:05:28

renaming does make the error go away, thanks again.

borkdude10:05:23

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

Aron10:05:33

:unresolved symbol :exclude vector had lists without further vectors, just the namespaces

Aron10:05:57

although, by mistake I left a () in it, that caused a nullpointer exception 🙂

Aron10:05:10

thanks for the help, now I am trying to write a working config...

Aron10:05:01

:unresolved-symbol {:exclude [(helix.core/defnc) (helix.core/defhook) (kitchen-async.promise)]}}}

Aron10:05:05

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

borkdude10:05:37

I think clj-kondo can provide a linter for its own config. We are already linting deps.edn as well

Aron10:05:09

turtles all the way down? 🙂

🐢 1