Thursday, October 6, 2011

Ugrading to clojure 1.3.0 causes Unable to resolve symbol: print-doc in this context

I upgraded to Clojure 1.3.0 and got this when I tried to run lein swank
Caused by: java.lang.RuntimeException: Unable to resolve symbol: print-doc in this context
        at clojure.lang.Util.runtimeException(Util.java:156)
        at clojure.lang.Compiler.resolveIn(Compiler.java:6720)
        at clojure.lang.Compiler.resolve(Compiler.java:6664)
        at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6625)
        at clojure.lang.Compiler.analyze(Compiler.java:6198)
        ... 93 more
Turns out the culprit is swank-clojure. I had version 1.2.1 but had to upgrade to 1.3.3. Be sure to manually delete the old version as lein deps didn't delete it.

See the topoged project file for an example

1 comment:

software companies said...

The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need!b Keep 'em coming... you all do such a great job at such Concepts... can't tell you how much I, for one appreciate all you do!

Joy Maiti - Software Development company