sorry to just barge in and demand help: I just upgraded leiningen to 2.9.1 and if I just run lein
in my project I'm getting this mysterious error message:
clojure.lang.Compiler$CompilerException: Syntax error macroexpanding clojure.core/ns at (clojure/tools/namespace.clj:15:1).
Any ideas how to fix that?
Thank you!as far as I know I'm using the latest [org.clojure/tools.trace "0.7.10"]
(which doesn't seem to trigger it) I'm at loss why an upgrade from 2.8.1 to 2.9.1 would cause that much trouble
Can you show the full stack trace, and the command you ran?
and thank you for looking at this!
I think this is due to using an old version of tools.namespace, which had an ns problem that failed the specs added in clojure 1.9
most likely pulled in via a plugin
I kind of suspect lein-autoreload here as thing pulling it in?
maybe check ~/.lein/profiles.clj too
lein-autoreload -> ns-tracker -> tools.namespace
you might be able to set :jvm-opts ["-Dclojure.spec.skip-macros=true"]
in your project.clj to get past the error enough to be able to use lein to figure out how to remove/fix that dep
why lein upgrade triggered that, I can't explain unless it's a change to using clojure 1.9 for lein itself
thank you very much, Alex. Yes, lein-autoreload is pulled in
that solved the problem. Thank you!