swank-clojure icon indicating copy to clipboard operation
swank-clojure copied to clipboard

slime-macroexpand-all error

Open killme2008 opened this issue 13 years ago • 0 comments

Using slime-macroexpand-all to fully macroexpand the expression at point by:

C c M m

But occurred an exception:

 Can't dynamically bind non-dynamic var: clojure.contrib.macro-utils/macro-symbols
 [Thrown class java.lang.IllegalStateException]

 Restarts:
 0: [QUIT] Quit to the SLIME top level

 Backtrace:
   0:        Var.java:339 clojure.lang.Var.pushThreadBindings
   1:       core.clj:1716 clojure.core/push-thread-bindings
   2: macro_utils.clj:267 clojure.contrib.macro-utils/mexpand-all
   3:  macroexpand.clj:17 swank.clj-contrib.macroexpand/macroexpand-all
   4:       basic.clj:100 swank.commands.basic/apply-macro-expander
   5:       basic.clj:110 swank.commands.basic/eval1132[fn]
   6:        Var.java:401 clojure.lang.Var.invoke
   7:    (Unknown Source) control.test.core/eval3104
   8:  Compiler.java:6465 clojure.lang.Compiler.eval
   9:  Compiler.java:6431 clojure.lang.Compiler.eval
  --more--

It seems that swank-clojure uses clojure.contrib,and some variable could not be bound in clojure 1.3 since they are not dynamic.

killme2008 avatar May 02 '12 04:05 killme2008