clj-kondo

2025-10-11T00:12:29.789209Z

Hi, I'm upgrading clj-kondo and I'm experiencing unexpected behavior since this commit (bump to SCI 0.10.47) https://github.com/clj-kondo/clj-kondo/commit/e43c24186bd77c659357f2ed1f862f80077d0f6a I have a requiring-resolve in a macro hook that is triggering this error: error: No context found in: sci.ctx-store/*ctx*. Please set it using sci.ctx-store/reset-ctx!. Should I remove the requiring-resolve or is this a bug? This is my macroexpand hook:

(defmacro reprod []
  (requiring-resolve 'clojure.core/identity)
  nil) 
I can provide more details if needed.

borkdude 2025-10-11T07:01:01.207099Z

Hmm issue welcome

borkdude 2025-10-11T15:10:16.979009Z

so you have a workaround right?

2025-10-11T15:14:39.806969Z

I haven't attempted it since I'm just copying code from the real macro namespaces to the exported hooks. The workaround would need to work in both or I'd need to find an approach, which I'd rather avoid both if I can at all.

borkdude 2025-10-11T15:15:07.414139Z

ok so you automated copying the macro

👍 1
borkdude 2025-10-11T15:15:19.039339Z

the fix is easy btw, but I guess you need a new release...

borkdude 2025-10-11T15:15:35.243319Z

I could just make a hotfix release soon-ish

❤️ 1
2025-10-11T15:16:16.537239Z

To give you an idea of the urgency, I've been running the tests on this lib against clj-kondo RELEASE and they've been failing since the regression was introduced. So not urgent.

2025-10-11T15:16:23.068029Z

I was just getting around to it.

borkdude 2025-10-11T15:22:37.821129Z

if you are running on the JVM I can give you a stable JVM version, it's pushed on every commit

borkdude 2025-10-11T15:23:05.908409Z

it does contain "SNAPSHOT" but has a timestamp in it and won't change

2025-10-11T15:24:22.513579Z

yep I can use that!

2025-10-11T15:29:00.417189Z

fwiw if you're interested I can expose a script from my repo that takes the git sha of a clj-kondo commit and runs my regression tests over it. might be useful in CI on your end too.

borkdude 2025-10-11T15:30:02.026689Z

sure! I'm already running regression tests in CI for clj-kondo btw

borkdude 2025-10-11T15:32:17.755689Z

if you follow this CI output, eventually it prints a released JVM version you can use: https://app.circleci.com/jobs/github/clj-kondo/clj-kondo/30636

❤️ 1
borkdude 2025-10-11T15:33:48.822979Z

I still have to add a test for this, but I'm 99% sure this fixes it.

2025-10-11T15:52:44.671109Z

confirmed it resolves the regression for my lib, via jvm git dep.

2025-10-11T15:52:57.819669Z

thanks @borkdude!