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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.