Cider-nrepl's macroexpansion op should produce the same output as manually calling macroexpand.
Actual behavior
If the macro definition contains lazily evaluated seqs, their contents will be evaluated with the wrong dynamic ns bindings (in the user ns), which can result in incorrect / misleading expansions.
Expected behavior
Cider-nrepl's
macroexpansion
op should produce the same output as manually callingmacroexpand
.Actual behavior
If the macro definition contains lazily evaluated seqs, their contents will be evaluated with the wrong dynamic ns bindings (in the
user
ns), which can result in incorrect / misleading expansions.Steps to reproduce the problem
Environment & Version information
cider-nrepl version
0.49.1
Java version
21.0.1
Operating system
MacOS 14