librelist archives

« back to archive

Unable to resolve symbol: ex-info in this context, compiling:(leiningen/core/user.clj:87

Unable to resolve symbol: ex-info in this context, compiling:(leiningen/core/user.clj:87

From:
Gregg Reynolds
Date:
2013-09-21 @ 13:34
Hi,

I'm playing around with leiningen as a replacement for ant in a legacy Java
project.  Works great, but I can't see how to get the functionality of the
exclude/include attributes of the ant's javac task, so I decided to try to
implement a :java-source-exclude attribute in leiningen.

I tried to follow the instructions in CONTRIBUTING.md but I must be doing
something wrong.  I cloned the source (version 2.3.3-SNAPSHOT), ran lein
bootstrap from leiningen-core, and softlinked bin/lein to ~/bin/lein.  When
I run lein javac from my project, I get

Recalculating Leiningen's classpath.
Exception in thread "main" java.lang.RuntimeException: Unable to resolve
symbol: ex-info in this context, compiling:(leiningen/core/user.clj:87)

1)  .lein-classpath is not getting written out, so it recalculates the
classpath every time.  So I ran lein classpath .lein-classpath by hand, in
the leiningen directory.  That eliminates the recalc.

2)  .lein-classpath contains org.clojure/clojure 1.5.1, so it should be
available when I run lein javac from my project, but I always get the above
error.  Even when I make the call explicit, clojure.core/ex-info.
 (~/bin/lein is a softlink to leiningen/bin/lein)

I've tried everything I can think of, but I remain baffled.  Any ideas
what's happening?

Thanks,

Gregg