clj-kondo

https://github.com/clj-kondo/clj-kondo
Stefan 2020-10-29T16:24:25.228500Z

@borkdude Should the clj-kondo vscode plugin also pickup .clj-kondo/config.edn automatically? If not, can I configure clj-kondo in vscode somehow?

borkdude 2020-10-29T16:24:47.228700Z

yes, no

Stefan 2020-10-29T16:25:52.229800Z

Hmm that doesn’t seem to work for me. When I run clj-kondo on the command line, I don’t get the lint error anymore that I’m trying to solve, but when I look in vscode (plugin installed through calva) then I do see the lint error. Any tips?

borkdude 2020-10-29T16:26:29.230200Z

can you make a minimal repro and post the versions of both clj-kondo's?

Stefan 2020-10-29T16:27:16.230800Z

Sure, I’ll let you know when I have it. Thanks!

Stefan 2020-10-29T17:09:59.232600Z

@borkdude Here it is: https://github.com/svdo/clj-kondo-issue. I tried to explain in the README what I’m looking at. Please let me know if anything is unclear.

borkdude 2020-10-29T17:13:51.233400Z

@stefan.van.den.oord Works fine over here. Are you opening the directory like I have opened it, or are you editing files outside your "workspace" ?

Stefan 2020-10-29T17:33:30.234800Z

I’m launching vscode by typing code .in the project folder.

borkdude 2020-10-29T18:19:12.235Z

I'll also try that

borkdude 2020-10-29T18:19:51.235200Z

@stefan.van.den.oord Same, works fine over here

Stefan 2020-10-29T18:23:29.238400Z

Hmm strange. Is there a cache being used outside the project folder? Did you also try with calva enabled/disabled? Come to think of it, maybe I have the joker extension enabled as well, might also come from there. I’ll try disabling it (AFK ATM)

borkdude 2020-10-29T18:25:14.239300Z

@stefan.van.den.oord That error looks like it comes from joker yes:

$ echo 'conn' | /usr/local/bin/joker --lint -
<stdin>:1:1: Parse error: Unable to resolve symbol: conn
$ echo 'conn' | clj-kondo --lint -
<stdin>:1:1: error: unresolved symbol conn

Stefan 2020-10-29T19:03:28.239700Z

Indeed, that was the issue. Thanks for helping me to pin this down!