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

JDK 11 + lein: ClassNotFoundException and NoClassDefFoundError due to ffip.ednize in standalone repl #5

Open
j-cr opened this issue Dec 23, 2019 · 3 comments

Comments

@j-cr
Copy link

j-cr commented Dec 23, 2019

Version: [hashp "0.1.0"]

~> lein version
Leiningen 2.9.1 on Java 11.0.5 OpenJDK 64-Bit Server VM
~> lein repl
<...>
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.0
<...>
user=> (require 'hashp.core)
Syntax error (ClassNotFoundException) compiling at (ednize.clj:1:1).
java/sql/Timestamp
user=> (require 'hashp.core)
Syntax error (NoClassDefFoundError) compiling at (ednize.clj:1:1).
Could not initialize class clojure.instant__init

Note that I can't reproduce it without lein:

~> clj -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.10.0"} hashp {:mvn/version "0.1.0"}}}'
Clojure 1.10.0
user=> (require 'hashp.core)
nil
user=> #p 42
#p[user/eval1865:] 42
42

Or when repl is run from a project dir:

~/in/project/dir> lein repl
<...> 
user=> (require 'hashp.core)
nil
user=> #p 42
#p[user/eval3255:1] 42
42
@j-cr
Copy link
Author

j-cr commented Dec 23, 2019

Correction: actually, the clojure version doesn't matter. The issue is only present in standalone repl. The issue isn't present if lein repl is run from a project dir.

@j-cr j-cr changed the title JDK 11 + lein + clojure 1.10.0: ClassNotFoundException + NoClassDefFoundError due to ffip.ednize JDK 11 + lein: ClassNotFoundException and NoClassDefFoundError due to ffip.ednize in standalone repl Dec 23, 2019
@weavejester
Copy link
Owner

weavejester commented Dec 27, 2019

Possible duplicate of #3.

@j-cr
Copy link
Author

j-cr commented Dec 27, 2019

I thought it might be related too, but bumping the dependency didn't help with this issue.

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