Closed clifford closed 9 years ago
On thing to check is to make sure you have the latest version of leiningen. Run lein version
to see the version you have, the latest is 2.5.0
. The other thing to check is your JDK version, the template requires 1.7
and up.
My setup is as follows: Leiningen 2.5.0 on Java 1.7.0_45 Java HotSpot(TM) 64-Bit Server VM
Try dropping the "-template" and just doing this: lein new reagent foo
ah right didn't even notice that :)
Unfortunately, I still get the same result. I am running clojure "1.7.0-alpha4". Could this be the problem?
Caused by: java.io.FileNotFoundException: Could not locate clojure/data/priority_map__init.class or clojure/data/priority_map.clj on classpath: , compiling:(clojure/core/cache.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7142)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.loadResourceScript(RT.java:361)
at clojure.lang.RT.load(RT.java:440)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5446)
at clojure.core$load_lib$fn5015.invoke(core.clj:5486)
at clojure.core$load_lib.doInvoke(core.clj:5485)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$load_libs.doInvoke(core.clj:5524)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$require.doInvoke(core.clj:5607)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at stencil.loader$fn11403.invoke(loader.clj:43)
at stencil.loaderinit.load(Unknown Source)
at stencil.loader__init.
I haven't tested with 1.7, so that's possible it appears that the stencil library can't find the priority-map namespace with your setup. Perhaps it was removed in 1.7?
Tried reverting to clojure 1.6 as a test. Also launched a clean terminal and same result:
lein repl nREPL server started on port 52025 on host 127.0.0.1 - nrepl://127.0.0.1:52025 REPL-y 0.3.5, nREPL 0.2.6 Clojure 1.6.0 Java HotSpot(TM) 64-Bit Server VM 1.7.0_45-b18 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or (exit) or (quit) Results: Stored in vars 1, 2, 3, an exception in e
user=> Bye for now! ~/src/cljs/play$ lein new reagent ds-todo Exception in thread "main" java.lang.ExceptionInInitializerError
Hmm that's very peculiar, I've tried on a few machines linux/os x and can't reproduce the issue. Do you have anything in your .profile.clj that might conflict?
Seems the issue has been reported previously. Should have googled earlier, sorry.
https://groups.google.com/d/msg/clojure/ELovdkuNMZg/t79zbCzDRUsJ
more specifically. Found my culprit:
https://github.com/technomancy/leiningen/issues/1739
Thanks for your help and sorry for wasting your time
@clifford Not a waste of time at all! More documentation for potential errors/problems the better. Glad you were able to figure it out :)
thanks @gadfly361. For anyone else who has this issue. I moved from,
[lein-ancient "0.6.0-SNAPSHOT"]
to, [lein-ancient "0.5.5"]
and it works!!!
Hi
I ran 'lein new reagent-template foo' and got the following error:
Could not locate clojure/data/priority_map__init.class or clojure/data/priority_map.clj on classpath
Not sure, if this is an environmental issue on my side or an issue with the template?
Clifford