This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (1)
- # babashka (39)
- # babashka-sci-dev (59)
- # beginners (60)
- # calva (14)
- # circleci (1)
- # clj-kondo (16)
- # clj-on-windows (1)
- # clojure (95)
- # clojure-europe (5)
- # clojure-norway (2)
- # clojurescript (34)
- # conjure (2)
- # core-async (55)
- # datomic (4)
- # emacs (54)
- # holy-lambda (5)
- # hyperfiddle (2)
- # interop (4)
- # lsp (8)
- # malli (3)
- # nrepl (4)
- # off-topic (34)
- # polylith (5)
- # reitit (3)
- # releases (2)
- # shadow-cljs (85)
- # specter (2)
- # testing (8)
- # tools-deps (12)
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?
@rayatrahman9 Yes, you can manually execute
--copy-configs. After that you should have the configs in
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
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?
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
docs over here: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#exporting-and-importing-configuration
if I were you would I check the contents of the .jar file you are using as a dependency