Fork me on GitHub
#clj-kondo
<
2019-12-24
>
fmnoise18:12:58

hi everyone, sometimes I have the following issue

Suspicious state from syntax checker clj-kondo-clj: Flycheck checker clj-kondo-clj returned non-zero exit code 3, but its output contained no errors: <stdin>::: error: Insufficient input.
linting took 22ms, errors: 1, warnings: 0

Try installing a more recent version of clj-kondo-clj, and please open a bug report if the issue persists in the latest release.  Thanks!

fmnoise18:12:09

latest clj-kondo installed

borkdude18:12:42

@fmnoise Co-incidentally I just fixed a similar problem. Could you post your entire file or narrowed down file that still produces this error?

borkdude18:12:24

I think I know what's wrong

borkdude18:12:35

but I want to have a repro to ensure that this is it

fmnoise19:12:26

@borkdude it's closed-source but I'll try to find minimal reproducible piece which causes that error and will back to you with results

fmnoise19:12:03

(assoc {} :a 2 :(java.util.Date.))

fmnoise19:12:10

this one causes issue

borkdude19:12:44

is the colon supposed to be in front of that expression?

borkdude19:12:36

and it seems you're missing one argument

fmnoise19:12:38

(assoc {} :a 2 😛 (java.util.Date.))

fmnoise19:12:44

oh, slack 😞

fmnoise19:12:24

(assoc {} :key1 2 :key2 (java.util.Date.))

fmnoise19:12:46

slack's eating :b for some reason

borkdude19:12:51

ok, I can repro that, thanks

borkdude19:12:35

@fmnoise Made an issue for it here: https://github.com/borkdude/clj-kondo/issues/677 I'll fix it soon

fmnoise19:12:49

thanks @borkdude!

borkdude19:12:55

for now you can override your type config for clojure.core/assoc if you want

fmnoise19:12:00

I just replaced (java.util.Date) with our internal (now) helper, so that's fine, thanks 😄