Closed dsabanin closed 9 years ago
Hmm. I can't reproduce it. Can you try running lein classpath
and make sure quasar-0.5.0.jar is there?
Can't see quasar-0.5.0.jar, but see quasar-core-0.5.0.jar. Classpath looks like this (full classpath and project.clj below):
/tmp/a$ lein classpath |tr ':' '\n' | grep quasar
/Users/dsabanin/.m2/repository/co/paralleluniverse/quasar-core/0.5.0/quasar-core-0.5.0.jar
/Users/dsabanin/.m2/repository/co/paralleluniverse/quasar-actors/0.5.0/quasar-actors-0.5.0.jar
/tmp/a$ cat project.clj
(defproject a "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[co.paralleluniverse/pulsar "0.5.0"]]
:java-agents [[co.paralleluniverse/quasar-core "0.5.0"]])
/tmp/a$ lein classpath |tr ':' '\n'
/private/tmp/a/test
/private/tmp/a/src
/private/tmp/a/dev-resources
/private/tmp/a/resources
/private/tmp/a/target/classes
/Users/dsabanin/.m2/repository/com/codahale/metrics/metrics-core/3.0.2/metrics-core-3.0.2.jar
/Users/dsabanin/.m2/repository/org/clojure/core.match/0.2.1/core.match-0.2.1.jar
/Users/dsabanin/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar
/Users/dsabanin/.m2/repository/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.jar
/Users/dsabanin/.m2/repository/co/paralleluniverse/quasar-core/0.5.0/quasar-core-0.5.0.jar
/Users/dsabanin/.m2/repository/org/apache/ant/ant-launcher/1.9.3/ant-launcher-1.9.3.jar
/Users/dsabanin/.m2/repository/org/clojure/math.combinatorics/0.0.2/math.combinatorics-0.0.2.jar
/Users/dsabanin/.m2/repository/org/flatland/useful/0.9.0/useful-0.9.0.jar
/Users/dsabanin/.m2/repository/co/paralleluniverse/quasar-actors/0.5.0/quasar-actors-0.5.0.jar
/Users/dsabanin/.m2/repository/com/lmax/disruptor/3.2.1/disruptor-3.2.1.jar
/Users/dsabanin/.m2/repository/de/javakaffee/kryo-serializers/0.26/kryo-serializers-0.26.jar
/Users/dsabanin/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar
/Users/dsabanin/.m2/repository/org/clojure/core.contracts/0.0.4/core.contracts-0.0.4.jar
/Users/dsabanin/.m2/repository/lamina/lamina/0.5.0/lamina-0.5.0.jar
/Users/dsabanin/.m2/repository/org/ow2/asm/asm-analysis/5.0.1/asm-analysis-5.0.1.jar
/Users/dsabanin/.m2/repository/org/apache/logging/log4j/log4j-core/2.0-rc1/log4j-core-2.0-rc1.jar
/Users/dsabanin/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.0-rc1/log4j-slf4j-impl-2.0-rc1.jar
/Users/dsabanin/.m2/repository/org/clojure/tools.macro/0.1.1/tools.macro-0.1.1.jar
/Users/dsabanin/.m2/repository/com/esotericsoftware/kryo/kryo/2.23.0/kryo-2.23.0.jar
/Users/dsabanin/.m2/repository/org/clojure/core.typed/0.2.39/core.typed-0.2.39.jar
/Users/dsabanin/.m2/repository/org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar
/Users/dsabanin/.m2/repository/com/esotericsoftware/minlog/minlog/1.2/minlog-1.2.jar
/Users/dsabanin/.m2/repository/org/clojure/data.priority-map/0.0.4/data.priority-map-0.0.4.jar
/Users/dsabanin/.m2/repository/org/clojure/tools.logging/0.2.4/tools.logging-0.2.4.jar
/Users/dsabanin/.m2/repository/potemkin/potemkin/0.3.2/potemkin-0.3.2.jar
/Users/dsabanin/.m2/repository/org/clojure/clojure/1.5.1/clojure-1.5.1.jar
/Users/dsabanin/.m2/repository/org/apache/logging/log4j/log4j-api/2.0-rc1/log4j-api-2.0-rc1.jar
/Users/dsabanin/.m2/repository/clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar
/Users/dsabanin/.m2/repository/org/clojure/core.cache/0.6.3/core.cache-0.6.3.jar
/Users/dsabanin/.m2/repository/org/clojure/jvm.tools.analyzer/0.6.1/jvm.tools.analyzer-0.6.1.jar
/Users/dsabanin/.m2/repository/org/ow2/asm/asm-tree/5.0.1/asm-tree-5.0.1.jar
/Users/dsabanin/.m2/repository/org/ow2/asm/asm-util/5.0.1/asm-util-5.0.1.jar
/Users/dsabanin/.m2/repository/org/ow2/asm/asm/5.0.1/asm-5.0.1.jar
/Users/dsabanin/.m2/repository/useful/useful/0.8.8/useful-0.8.8.jar
/Users/dsabanin/.m2/repository/org/clojure/tools.namespace/0.2.4/tools.namespace-0.2.4.jar
/Users/dsabanin/.m2/repository/org/ow2/asm/asm-commons/5.0.1/asm-commons-5.0.1.jar
/Users/dsabanin/.m2/repository/org/apache/ant/ant/1.9.3/ant-1.9.3.jar
/Users/dsabanin/.m2/repository/gloss/gloss/0.2.2/gloss-0.2.2.jar
/Users/dsabanin/.m2/repository/co/paralleluniverse/pulsar/0.5.0/pulsar-0.5.0.jar
Sorry, I meant quasar-core-0.5.0.jar. Can you maybe do:
sum ~/.m2/repository/co/paralleluniverse/quasar-core/0.5.0/quasar-core-0.5.0.jar
I'm getting 31413 1099
.
I know it's grasping at straws, but this has to be some configuration problem, and since the same project works on a different machine with seemingly the same configuration (Oracle vs. OpenJDK shouldn't make a difference)...
Unfortunately I'm getting the same result from sum:
$ sum ~/.m2/repository/co/paralleluniverse/quasar-core/0.5.0/quasar-core-0.5.0.jar
31413 1099 ~/.m2/repository/co/paralleluniverse/quasar-core/0.5.0/quasar-core-0.5.0.jar
I tried removing my ~/.m2 directory, it didn't help. All other leiningen-based projects build just fine.
I noticed that if I remove the :java-agents part from the project.clj, but move [co.paralleluniverse/quasar-core "0.5.0"] into the :dependencies, lein repl loads fine. I assume this means that the problem is in the agent part, the jar itself is loaded fine as a regular dependency.
I've tried adding this line to the project.clj, for the sake of investigation, but it didn't help – printed the same exceptions:
:jvm-opts ["-javaagent:~/.m2/repository/co/paralleluniverse/quasar-core/0.5.0/quasar-core-0.5.0.jar"]
Can you maybe try upgrading your Java version (to a higher 1.7.0 update)? I can't explain why this would matter, but so far this is a glaring difference between the machine it fails on and your other machine (as well as ours).
Closing due to inactivity.
I'm getting the same above error with pulsar/quasar 0.7.2 and Java 1.7.0_21. The project I'm using is from @yogothos - https://github.com/yogthos/pulsar-example.
Cloning this project, and running lein repl
throws the same error.
java.lang.NoClassDefFoundError: co/paralleluniverse/fibers/SuspendExecution, compiling:(still.clj:43:9)
Any advice would be great. :smile:
Can you share your project file?
It's the same one of the project mentioned in the link - https://github.com/yogthos/pulsar-example/blob/master/project.clj.
Like I mentioned, I simply cloned the project and ran lein deps
followed by lein repl
.
Thanks for your speedy response!
Resolved it! Everything seemed working fine after removing the [refactor-nrepl "1.2.0-SNAPSHOT"]
dependency from my profiles.cl
j file.
Thanks again!
Having the same issue as @darth10. I don't think that removing refactor-nrepl
is a solution, since my primary editor is Emacs and I'd like to keep it :blush: @pron Could you comment on this? clojure-emacs/refactor-nrepl#107 has more info.
I'm sorry, didn't notice #43
I created an empty leiningen project with pulsar, but any attempt to load the REPL or load the environment in any way (there's no code except for lein boilerplate), result in the following exception:
Here's more info about my system. The OS is OS X 10.9.2.
I tried removing ~/.m2 dir, it didn't help. Tried reproducing it on a Linux system with OpenJDK, but same sample project worked fine. Here's some info about the Linux system (plain Ubuntu VM on DigitalOcean):
Any ideas?
Thanks!