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(
        at clojure.lang.Compiler.resolveIn(
        at clojure.lang.Compiler.resolve(
        at clojure.lang.Compiler.analyzeSymbol(
        at clojure.lang.Compiler.analyze(
        ... 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