Fork me on GitHub
#clj-kondo
<
2022-04-18
>
rayat02:04:05

tldr: Can I manually perform the --copy-config command myself, since it doesn't appear to be working for me? Hi, I installed crypticbutter/snoophttps://github.com/CrypticButter/snoop/tree/main/resources/clj-kondo.exports/com.crypticbutter/snoop. I tried running the --copy-config command, yet nothing happens - it waits a long while, before printing nothing. I've got a monorepo with nested/inherited kondo configs, so I wondered if the dir at which I ran the command from the docs (`clj-kondo --copy-configs --dependencies --lint "$(clojure -Spath)"`) mattered, though it doesn't seem to matter. The 3 requirements listed in the docs (--deps flag, --copy flag and presence of .clj-kondo folder) are met. I'm using Calva, so my understanding is that it's supposed to do that sort of thing for me anyways? Not sure, as that doesn't appear to be happening either. In any case, it doesn't appear that any config was copied over (whether newly created files or inline'd somehow into existing config files, which I don't think is how it's supposed to work anyways). I checked my user kondo config as well just in case - no dice. What are my options? Anything I can provide to help debug?

borkdude13:04:45

@rayatrahman9 Yes, you can manually execute --copy-configs. After that you should have the configs in .clj-kondo/<somewhere>

rayat16:04:15

Apologies, I meant, manually perform whatever work is being done with that command myself, eg copying files and such. Running the command with, for example, --skip-lint, doesn't work either

borkdude16:04:08

are you using the correct version of that library which has the config bundled?

borkdude16:04:26

I'd rather have you debug the root cause than work around it

borkdude16:04:35

but you can always copy the config manually, sure

borkdude16:04:41

just clone the repo and do it

rayat16:04:39

Thanks! I think so? It's the version on clojars that is the latest master as well. What do I copy? The folder with the config.edn or the folder within that with the hooks? And what folder hierarchy would it be?

.clj-kondo/clj_kondo/crypticbutter/snoop.clj
https://github.com/CrypticButter/snoop/tree/main/resources/clj-kondo.exports/com.crypticbutter/snoop supposed to be copied as well, or its content inlined into my existing config that I have in that .clj-kondo folder?

borkdude16:04:03

what you were saying is correct

borkdude16:04:25

everything under clj-kondo.exports should be copied into your .clj-kondo dir as is

borkdude16:04:33

that is exactly what --copy-configs does

borkdude16:04:02

if I were you would I check the contents of the .jar file you are using as a dependency

1
borkdude16:04:08

if the config is there

borkdude16:04:16

check, don't just assume

1
1
rayat03:04:05

No kidding, your spidey senses are better than mine, indeed the version on master was not published