taoensso / timbre

Pure Clojure/Script logging library
https://www.taoensso.com/timbre
Eclipse Public License 1.0
1.44k stars 171 forks source link

Upgrade from 2.x to 3.x: No such var: encore/simple-date-format when compiling #53

Closed dkincaid closed 10 years ago

dkincaid commented 10 years ago

Trying to upgrade from 2.x to 3.x. When I try to compile my project (with lein compile) I'm getting a compilation error:

Exception in thread "main" java.lang.RuntimeException: 
No such var: encore/simple-date-format, compiling:(taoensso/timbre.clj:278:27)
ptaoussanis commented 10 years ago

Hi Dave, thanks for getting in touch!

Just checked and [com.taoensso/timbre "3.1.2"] seems okay. It's possible you've got a dependency conflict.

Two things to try:

Please ping me again with your lein deps :tree output if those don't help and I'll try track down the problem.

Cheers! :-)

dkincaid commented 10 years ago

Thanks for the tip on lein deps :tree. That shows the problem:

Possibly confusing dependencies found:
[com.taoensso/faraday "1.2.0" :exclusions [org.apache.httpcomponents/httpclient org.apache.httpcomponents/httpcore]] -> [com.taoensso/encore "0.9.2"]
 overrides
[com.taoensso/timbre "3.1.2" :exclusions [junit]] -> [com.taoensso/encore "0.9.6"]

I put an exclusion into the faraday dependency for com.taoensso/encore and it's compiling now.

Thanks again.