dependency problem with clojure.core.cache

Description

1. I created a simple project depending on clojure.core.memoize:
(defproject test-memoize "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/core.memoize "0.5.6"]])

2. Trying to use it runs into the following problem:
$ lein repl
nREPL server started on port 38522 on host 127.0.0.1
...
user=> (require 'clojure.core.memoize)

user=> CompilerException java.lang.RuntimeException: No such var: clojure.core.cache/through, compilingclojure/core/memoize.clj:52:3)

3. Such a problem has been recorded before:
https://groups.google.com/forum/#!msg/light-table-discussion/f4kpZLFGBV8/oyFPaJ4yvwwJ
http://www.raynes.me/logs/irc.freenode.net/clojure/2013-09-11.txt
https://github.com/LightTable/LightTable/issues/794

The suggested solution from the LightTable bug discussion
[[org.clojure/core.cache "0.6.3"]
[org.clojure/core.memoize "0.5.6" :exclusions [org.clojure/core.cache]]]
does not seem to work.

Environment

None

Activity

Show:

Alex Miller October 29, 2015 at 7:38 PM

I'm not sure what we could do with this ticket - using two incompatible versions of the same library will yield incompatibility problems.

import December 16, 2014 at 1:56 PM

Comment made by: petrglad

Using 'lein deps :tree' should help resolving such problems. This command shows conflicting dependencies.

import April 27, 2014 at 2:19 PM

Comment made by: daslu

When seeing the above error, I had
{:user {...
:dependencies [[leiningen "2.3.4"]
...]
...}}
at ~/.lein/profiles.clj .

After removing leiningen from the dependencies, the error disappeared.
Having Leiningen in the dependencies was required for using vinyasa (https://github.com/zcaudate/vinyasa).

The bottom line: can use clojure.core.memoize, cannot use it together with vinyasa.

Declined

Details

Assignee

Reporter

Priority

Created April 26, 2014 at 10:14 AM
Updated October 29, 2015 at 7:38 PM
Resolved October 29, 2015 at 7:38 PM