You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running clj-kondo 2022.08.03 on the JVM in Linux.
problem
I'm used the macroexpand hook to expand the try-let macro. My macro implementation is mostly good enough and is working for me in most cases. But clj-kondo produces errors when there is a function defined by #(...) in the expansion of the macro. It seems to me that clj-kondo is failing to recognise reader macro functions when using the macroexpand hook.
version
I'm running
clj-kondo
2022.08.03 on the JVM in Linux.problem
I'm used the
macroexpand
hook to expand the try-let macro. My macro implementation is mostly good enough and is working for me in most cases. But clj-kondo produces errors when there is a function defined by#(...)
in the expansion of the macro. It seems to me that clj-kondo is failing to recognise reader macro functions when using the macroexpand hook.repro
EDIT: here is a minimal project which this repro in runnable form: https://github.com/markgdawson/clj-kondo-reader-macro-repro.
Run with
clj -M:clj-kondo
.In this case I get clj-kondo error on this macro saying
unused-binding a
.For completeness, I use
try-let
in deps.edn as:try-let/try-let {:mvn/version "1.3.1"}
.The warning goes away with:
and with
config
./.clj-kondo/configs/try-let/config.edn
./.clj-kondo/configs/try-let/clj_kondo/try_let/try_let.clj
expected behavior
I expected clj-kondo not to throw errors for valid/correct code expansions which use the
#
function reader macro.The text was updated successfully, but these errors were encountered: