Hi Rich, Am 28.11.2008 um 23:17 schrieb Rich Hickey:
I don't see why having the .cljs and .class files in the classpath should be a problem - that's the normal case for compilation.It may simply be that the lib has problems being compiled - I'm not sure all of the libs in clojure.contrib have been compiled yet. Perhaps you could give more info on the error?
I had the following problem: (ns some.namespace (:use [clojure.contrib.def :only (defvar)])) (defvar some-var some-value) Suddenly Clojure started telling me, that defvar was unbound. I tried other parts of clojure.contrib like trace and they worked. But def refused cooperation. Checking with a different clojure.jar and clojure-contrib.jar worked, also crossing each combination with my jars. Then I narrowed it down to the following constellation: java -cp clojure.jar:clojure-contrib.jar clojure.lang.Repl worked as expected and java -cp clojure.jar:clojure-contrib.jar:other.jar clojure.lang.Repl did not. It turned out that other.jar contained a compiled version clojure.contrib.def, because I used it there also. Removing this compiled version fixed the problem. I tried to recreate the setting in a minimal example, but without luck. (How could it be different? :-/) Maybe the spurious version was compiled with some previous SVN version. I can't tell this for sure. And since now everything works I have no clue how to reproduce it. I'm sorry for the noise. If I can reproduce the issue I will post an example. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature