On Wednesday, April 2, 2014 7:49:07 AM UTC-4, Jakub Holy wrote:
>
> When starting lein (namely lein ring server) I got a little helpful 
> exception and stack trace with the key line being:
>
> FileNotFoundException: Could not locate 
> clojure/tools/namespace/parse__init.class or 
> clojure/tools/namespace/parse.clj on classpath
>


This could be caused by different libraries or plugins depending on 
different versions of tools.namespace.

clojure.tools.namespace.parse is present starting with tools.namespace 
version 0.2.0.

Note: In tools.namespace version 0.2.0 I removed the namespace 
`clojure.tools.namespace` which was present in 0.1.x. After learning that 
this caused problems, I added the deprecated namespace back in version 
0.2.1.

You can use `lein deps :tree` to figure out which version is getting 
included in your project.

You can add an explicit dependency in your project.clj on a version that 
you know is compatible with all the libraries/plugins you want to use.

In this case, the latest version of tools.namespace is backwards compatible 
with 0.1.X versions. If that were not the case, you'd be out of luck.

 

-- 
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.

Reply via email to