Closed john2x closed 10 years ago
You could check lein deps :tree
to see what dependencies are being pulled in. It looks like you likely have an old version of core.cache
in your local repo. There's a similar issue here with the workarounds people found.
I see this from lein deps :tree
's output.
[leiningen "2.3.4"] -> [stencil "0.3.2"] -> [org.clojure/core.cache "0.6.2"]
overrides
[lib-noir "0.7.9"] -> [ring-middleware-format "0.3.1"] -> [org.clojure/core.memoize "0.5.6"] -> [org.clojure/core.cache "0.6.3"]
Does this mean I have to explicitly add/fix the dependency in any new projects?
Seems like your problem is with the stencil dependency using an outdated version of core.cache
. You could use :exclusions
when including the dependency:
[stencil "0.3.2" :exclusions [org.clojure/core.cache]]
Normally this wouldn't happen since Luminus uses Selmer for templating by default.
It seems it's an issue with my profiles.clj
. I have leiningen 2.3.4
as a dependency in my profiles.clj, and it's overriding the core.cache dependencies in other deps down the tree. Removing leiningen fixes the issue.
Is my reasoning correct?
Yes, the profiles would likely override the other deps.
Thank you. I guess this is nobody's issue.
When I try to
lein repl
orlein ring server
a project, I'm getting this stacktrace:I was working on a fork just trying something out, so I
lein install
my local copy. I proceed to create a test project and everything went well, but when I didlein repl
, this error shows up. I thought maybe my changes caused it, so I reverted by removing the template project from~/.m2/repository
and then trying again. Here's the result:With some digging, it seems it's lib-noir that depends on ring-middleware-format which in turn depends on clojure.core.memoize which in turn depends on clojure.core.cache. Adding
org.clojure/core.cache
toproject.clj
doesn't seem to fix the issue.Note that prior to trying out my fork, everything was working fine. Maybe an old version of some dependency got installed when I tried out my fork?