shadow-cljs

schadocalex 2025-09-09T10:46:29.112959Z

Hi there! When I add a dependency in shadow-cljs.edn, how can I update my .clj-kondo/ folder with the config in that dependency? Not sure how it works. I already have some configs from dependencies I installed earlier, something copied them but I don't know who does this. I can't find any documentation about that, nor in shadow-cljs, nor in clj-kondo, nor in Calva ones. I don't have a deps.edn since I use shadow-cljs.edn.

✅ 1
borkdude 2025-09-09T10:47:23.025729Z

Hi Alexis, I guess you are using clojure-lsp?

schadocalex 2025-09-09T10:49:32.541209Z

Yes!

borkdude 2025-09-09T10:51:52.456089Z

Regardless, you can import dependency configuration with clj-kondo from the command line like this:

clj-kondo --lint "(npx shadow-cljs classpath)" --dependencies --copy-configs --parallel
But clojure-lsp will already do this for you when you have a shadow-cljs.edn it seems. The docs about it are here: https://clojure-lsp.io/settings/#classpath-scan I think this project is better asked in #lsp

borkdude 2025-09-09T10:52:37.740989Z

Maybe just restart your lsp server in case this doesn't work automatically

schadocalex 2025-09-09T10:54:05.780169Z

Yes I should have posted in #clojurescript since I didn't know which library is involved.

schadocalex 2025-09-09T10:54:40.739189Z

Restarting the lsp server worked! Thanks!

👍 1