clj-kondo 2025-09-12

I’m running into trouble trying to get clj-kondo to correctly lint a file that include Slingshot try+ macros. In the catch block, it’s generating an “Unresolved symbol” error for the exception binding symbol. I have looked in my .clj-kondo directory and I see configs for other libraries that I’m using. So, for instance, if I run:

$ clj-kondo --lint "$(clojure -Spath)" --copy-configs --skip-lint
Configs copied:
- .clj-kondo/imports/babashka/fs
- .clj-kondo/imports/clj-commons/aleph
- .clj-kondo/imports/etaoin/etaoin
- .clj-kondo/imports/manifold/manifold
- .clj-kondo/imports/metosin/malli
- .clj-kondo/imports/org.clj-commons/byte-streams
- .clj-kondo/imports/potemkin/potemkin
linting took 201ms, errors: 0, warnings: 0
Slingshot is in my deps.edn project file. Any ideas why clj-kondo isn’t picking up anything for Slingshot?

✅ 1

those libraries ship with configs that kondo can use to understand their macros, slingshot doesn't

slingshot doesn't have a config bundled, but if you add this library you will get support:

{io.github.clj-kondo/config-slingshot-slingshot 

:git/url ""
         :git/sha "<sha>"
         :deps/root "configs/slingshot/slingshot"}

the newest git/sha you can get from : https://github.com/clj-kondo/configs

unfortunately the author of slingshot passed away

😥 6

@borkdude is there anybody maintaining Slingshot? Seems like one of those projects that would be good to slide over to clj-commons. It’s mature, wouldn’t take a lot of work to maintain, but would allow things like the clj-kondo work to be integrated.

Seems like a good candidate - propose it in #clj-commons

👍 1