taoensso / carmine

Redis client + message queue for Clojure
https://www.taoensso.com/carmine
Eclipse Public License 1.0
1.16k stars 131 forks source link

Library is not working under Clojure 1.3 #96

Closed kirs closed 10 years ago

kirs commented 10 years ago

Here is my project.clj:

clojure
(defproject programming-clojure "1.3.0"
  :description "Examples from Programming Clojure"
  :aot [examples.tasklist]
  :dependencies [[org.clojure/clojure "1.3.0"]
                 [org.clojure/java.jdbc "0.0.6"]
                 [org.clojure/data.zip "0.1.1"]
                 [org.clojure/test.generative "0.1.2"]
                 [ring "0.3.11" :exclusions [org.clojure/clojure
                                             org.clojure/clojure-contrib]]
                 [compojure "0.6.5"]
                 [com.taoensso/carmine "2.6.2"]
                 [hiccup "0.3.6"]
                 [jline "0.9.94"]
                 [hsqldb "1.8.0.10"]])

After running lein deps I run lein repl and then I get:

user=> (ns my-app (:require [taoensso.carmine :as car :refer (wcar)]))

CompilerException java.lang.RuntimeException: Unable to resolve symbol: ex-info in this context, compiling:(taoensso/encore.clj:177)

I suppose there is a bug in taoensso/encore.clj:177.

mpenet commented 10 years ago

It's not supported since 1.9.0 https://github.com/ptaoussanis/carmine/blob/master/CHANGELOG.md#v180--v190

kirs commented 10 years ago

Thanks.

ptaoussanis commented 10 years ago

Thanks @mpenet, appreciate the help :-)

Hi Kir,

Yeah Clojure 1.3 is considered pretty old (late 2011, I think). Most libraries are 1.4+ with 1.5+ becoming increasingly common.

If you're just playing with examples from "Programming Clojure", I'd bet you'll be able just change your dependency to [org.clojure/clojure "1.6.0"] without any/much trouble.

Good luck, cheers :-)