core.memoize

dependency problem with clojure.core.cache

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

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, compiling:(clojure/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.

Activity

Hide
Daniel Slutsky added a comment -

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.

Show
Daniel Slutsky added a comment - 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.
Hide
Petr Gladkikh added a comment -

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

Show
Petr Gladkikh added a comment - Using 'lein deps :tree' should help resolving such problems. This command shows conflicting dependencies.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated: