Hi Nick, I looked into it, I'm not sure if this should be considered a clojure bug, a lein bug or a t.a.jvm one (I'd expect Compiler/LOADER to always be bound during compilation) but in the meantime I've pushed a workaround that should fix this and a 0.6.2 version is on its way to Maven Central.
It should be available in a couple of hours, please let me know if it solved your issue or not. Thanks, Nicola Nick Zbinden writes: > Hallo, > > Im trying to use tools.analyzer to analyse some clojure code and compile > it. I have used '(ana/analyze+eval form)' and it has worked nicely. > > Now I always called my compile function either directly inside of the code, > or I would call it like this 'lein run test.clj'. > > Now I tried to use 'lein uberjar' and use it standalone, but then if fails > for protocols. > > (defprotocol REST > (GET [self])) > > Inside of the project, or with lein run it works correctly. > > When running the uberjar: > > Exception in thread "main" java.lang.ClassCastException: > clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader > at clojure.core$gen_interface.doInvoke(genclass.clj:722) > at clojure.lang.RestFn.invoke(RestFn.java:521) > at clojure.lang.Var.invoke(Var.java:409) > at clojure.lang.AFn.applyToHelper(AFn.java:178) > at clojure.lang.Var.applyTo(Var.java:700) > > > Is this a bug in tools.analyzer.jvm or is it something with my project > compilation? > > Thanks for your help -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.