Fork me on GitHub
#clj-kondo
<
2020-10-29
>
Stefan16:10:25

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

Stefan16:10:52

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?

borkdude16:10:29

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

Stefan16:10:16

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

Stefan17:10:59

@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.

borkdude17:10:51

@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" ?

Stefan17:10:30

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

borkdude18:10:12

I'll also try that

borkdude18:10:51

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

Stefan18:10:29

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)

borkdude18:10:14

@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

Stefan19:10:28

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