Fork me on GitHub
#calva
<
2020-09-26
>
Clypto16:09:27

so what's up w/ calva and clj-kondo ignoring (use.. statements and throwing out all unresolved symbols?

Clypto16:09:08

I ran clj-kondo --parallel --lint "$(lein classpath)" and that seemed to generate a cache for most things, but any symbol that comes out of a use is not picked up and is in red as unknown

borkdude16:09:47

@clypto This seems to work for me:

(use 'clojure.test)

(is 1)
Do you have a repro?

Clypto16:09:11

it's closed source, but looks like I have a handful of use and a few :refer :all that result in unknown symbols... there's nothing special about them - mainly a bunch of pure functions for logging or string manipulation

Clypto16:09:21

one from [cheshire.core :refer :all]

Clypto16:09:53

it's a lein project in calva if that helps

Clypto16:09:20

[cheshire "5.5.0"]

pez16:09:46

Lein isn't part of the picture. clj-kondo runs in a separate process, using only static analysis. I think that the only thing that would really help is a repro.

borkdude18:09:34

@clypto There's a related open issue about this: https://github.com/borkdude/clj-kondo/issues/1010 I'll look into this soon, maybe it will fix your issue as well. The best for now is to get rid of use and refer :all altogether, which is best practice anyway