Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dkincaid opened this issue Mar 11, 2014 · 2 comments

Comments

@dkincaid
Copy link

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
Copy link
Member

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:

  • lein deps :tree - you should have a [com.taoensso/encore "0.9.6"] dependency,
    or newer. If you don't (due to a conflict for example) - try add the dep directly to your project.clj.
  • lein clean to clean out your Lein target dir (it can cause strange problems sometimes).

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants