Closed klauern closed 6 years ago
Just to clarify, if I remove the Oracle JDBC driver jar, this error still occurs, so it doesn't appear to be related.
I believe this is a clojure-contrib-1.2.0 incompatibility with clojure 1.3. Seeing this too anytime clojure-contrib loaded with 1.3.
This appears to happen on 1.4.0 as well.
(defproject foo "1.0"
:dependencies [[org.clojure/clojure "1.4.0"]
[postgresql "9.1-901.jdbc4"]
[clojureql "1.0.0"]])
user=> (use 'clojureql.core)
Warning: *default-encoding* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *default-encoding* or change the name. (clojure/contrib/io.clj:73)
Warning: *buffer-size* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *buffer-size* or change the name. (clojure/contrib/io.clj:79)
Warning: *byte-array-type* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *byte-array-type* or change the name. (clojure/contrib/io.clj:84)
Warning: *char-array-type* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *char-array-type* or change the name. (clojure/contrib/io.clj:88)
Warning: *append* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *append* or change the name. (clojure/contrib/io.clj:107)
Warning: *db* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *db* or change the name. (clojure/contrib/sql/internal.clj:27)
IllegalArgumentException No matching field found: getRoot for class clojure.lang.Var clojure.lang.Reflector.getInstanceField (Reflector.java:271)
The clojure-contrib-1.2.0
jar is downloaded for me as well.
This is more straight forward in master, which imports all deps (its up to you to exclude). But use cider-jack-in :)
Is ClojureQL supported with Leiningen and Clojure 1.3.0? I get this weird set of errors while trying to use it (still a bit of a n00b on this, fwiw):
project.clj
libs downloaded from
lein deps
REPL output
This seems like a lot of weird errors, and being a very new Clojure developer, I don't even know what the first 6 warnings are, but that last one made me think things weren't kosher: