-
Notifications
You must be signed in to change notification settings - Fork 915
Bug: Unable to load org.clojure/core.memoize library 0.5.3+ #794
Comments
I'm desperately trying to figure this one out, I can get it to happen, but there's no obvious cause. Everything appears to be correct and only happens with core.memoize. I'm not the only one this seems to happen to either. lein-clojuredocs has a similar issue. I think it may actually be a problem with core.memoize itself. |
Chris, Try to add [org.clojure/core.cache "0.6.3"] to dependencies in project.clj PS I found solution here: http://www.raynes.me/logs/irc.freenode.net/clojure/2013-09-11.txt Andrew |
Andrew, [org.clojure/core.cache "0.6.3"]
[org.clojure/core.memoize "0.5.6" :exclusions [org.clojure/core.cache]] ..worked for me (even though memoize 0.5.6 has a transitive dependency on cache 0.6.3 anyway) Looks like the clojure.core.cache/through function references its own clojure.core.cache namespace before its loaded - https://github.com/clojure/core.cache/blob/master/src/main/clojure/clojure/core/cache.clj#L53? Forcing lein to load that namespace first seems to bypass that problem somehow. p.s. I'm amazed you were able to glean substance from that chat log ;) |
fixed in 0.5.5 as far as I can tell. |
I was seeing the same thing when including this namespace from [noir.util.middleware :as nm] Problem fixed by explicitly including |
I'm seeing the same error in |
Given the following project.clj:
... and the following code
... when loaded up in LT, produces the following errors:
... and in the context of a larger project has produced:
... but works fine via 'lein run' or 'lein repl'
Also, changing the core.memoize version to 0.5.2 in the project.clj will cause the example to load and function perfectly in LT. core.memoize introduced a dependency on core.cache in 0.5.3+, which seems to be the culprit.
The text was updated successfully, but these errors were encountered: