clojure.core.memoize dependency problem

127 views
Skip to first unread message

Daniel Slutsky

unread,
Apr 24, 2014, 11:42:08 AM4/24/14
to clo...@googlegroups.com

Dear Clojure group,
I am running into an interesting issue with clojure.core.memoize.

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"]])

Trying to use it, I run 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)

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

Any ideas?

Daniel Slutsky

unread,
Apr 26, 2014, 5:15:14 AM4/26/14
to clo...@googlegroups.com

Sean Corfield

unread,
Apr 29, 2014, 6:36:11 PM4/29/14
to clo...@googlegroups.com
What Leiningen plugins do you have installed? (Both in your project and in your user profile)

I believe this is caused by a plugin forcing an earlier version of clojure.core.cache on you... 
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Reply all
Reply to author
Forward
0 new messages