Closed darkleaf closed 4 months ago
Interesting, thanks!
Worth noting, service
(the local variable) shadows service
(the var).
Linters such as clj-kondo https://github.com/clj-kondo/clj-kondo/blob/b5c63bfc9ee0066b202945a6186749af8e66af6e/doc/linters.md#shadowed-var and Eastwood https://github.com/jonase/eastwood?tab=readme-ov-file#local-shadows-var can lint against that kind of thing, as it's commonly frowned upon practice.
I'm not saying "don't do that", but generally, misc tooling will work better when following the best practice.
Most practically, here it means that you might not get support quickly (the debugger middleware doesn't often get maintenance).
Sure, thanks! We can figure out how to add a test as you open the PR.
I use di in my project and there is a lot of code like this
Unfortunately, I can't use the debugger.
Expected behavior
I can successfully execute
caller
with debugger mode.Actual behavior
It shows value of
(service* 1 2)
but fails on(service 1 2)
.Environment & Version information
cider-nrepl version
Java version
21.0.1
Operating system
mac os x 13.6.1