clj-kondo

https://github.com/clj-kondo/clj-kondo
Helins 2021-06-05T12:31:49.185Z

There must be something obvious I can't see. I can't get to import the config of a lib I've written. I know it is on the classpath, I see it in the lib jar under "clj-kondo.exports/io.helins/mprop/config.edn". I run the same import command as in the doc. I know this jar is present since I can see it is being linted. Something wrong with the path?

borkdude 2021-06-05T12:34:58.185700Z

@adam678 How did you "import" the config? clj-kondo --lint $(clojure -Spath) --dependencies ?

Helins 2021-06-05T12:35:50.186400Z

clj-kondo --copy-configs --dependencies --lint "$(clojure -Spath)"
Yes, copy/pasted this line from https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md

borkdude 2021-06-05T12:36:12.187Z

oh right, and you didn't see the output similar to "copied config to ..." ?

borkdude 2021-06-05T12:36:43.187700Z

do you have a local .clj-kondo directory?

Helins 2021-06-05T12:36:43.187800Z

No, and indeed nothing is copied to ./.clj-kondo 😞

Helins 2021-06-05T12:36:48.188Z

Yes

borkdude 2021-06-05T12:37:05.188200Z

is this library public? I can try it myself

borkdude 2021-06-05T12:37:59.188600Z

(be back later)

Helins 2021-06-05T12:39:09.189100Z

Almost public

borkdude 2021-06-05T12:40:34.189500Z

is it a git dep or jar dep

Helins 2021-06-05T12:42:23.189800Z

I've installed it locally (so jar dep)

Helins 2021-06-05T14:14:08.191600Z

Actually I am doing something wrong at import. I can't reproduce the clj-kondo/config example. Weird... I never had this problem. It's in my deps, on my classpath, and I have a .clj-kondo directory with proper R/W access...

Helins 2021-06-05T14:16:41.192500Z

All I get is a long list of errors + warnings from <http://clojure.xxx|clojure.xxx> and it ends like this without any copying done:

linting took 2750ms, errors: 132, warnings: 433

Helins 2021-06-05T14:26:25.193600Z

Okay, I feel ashamed. All this fuzz has been solved... by an update of Clj-kondo. I still have no idea what went wrong though.

borkdude 2021-06-05T14:30:52.193900Z

cool!

borkdude 2021-06-05T14:31:01.194200Z

no need to be ashamed, glad it's solved

Helins 2021-06-05T14:38:19.195Z

Always makes me think of IT Crowd's "Did you try turning it off and on again..." when something like that happens. Anyways, have a nice WE!