Fork me on GitHub
#timbre
<
2018-01-29
>
jjttjj19:01:58

I keep getting dependency errors involving encore when trying to use timbre with codax(https://github.com/dscarpetti/codax) (which uses nippy 2.12.2)

(defproject test "0.1.0-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.9.0"]
                 [com.taoensso/timbre "4.10.0"]
                 [codax "1.2.0"]])
then tring to require timbre leads to:
CompilerException clojure.lang.ExceptionInfo: Insufficient `com.taoensso/encore` version. You may have a Leiningen dependency conflict (see  for solution). {:min-version "2.87.0", :your-version "2.68.0"}, compiling:(taoensso/timbre.clj:21:1) 
However I've tried a large combination of exclusions (excluding nippy from codax and requiring my own codax, explicitly requiring encore, etc) to no avail. Anyone know what I might be missing?

jjttjj20:01:38

lein deps :tree doesn't show any versions of encore besides the one in timbre

tanzoniteblack20:01:12

@jjttjj when all else fails, you can just use a managed dependency (i.e. add :managed-dependencies [com.taoensso/encore "2.87.0"] to your project.clj)

tanzoniteblack20:01:47

not elegant, but tells lein something akin to "if you ever see this dependency, even transiently, just override the version with the one I tell you"

jjttjj20:01:10

@tanzoniteblack thanks for the heads up about managed-dependencies, but i'm still getting the exact same error somehow

tanzoniteblack20:01:33

try running lein clean and make sure you don't have something historical screwing things up?