pomegranate
pomegranate copied to clipboard
The Incanter example doesn't work with clojure-1.8.0
I'm running this code snippet:
(use '[cemerick.pomegranate :only (add-dependencies)])
(add-dependencies :coordinates '[[incanter "1.5.7"]]
:repositories (merge cemerick.pomegranate.aether/maven-central
{"clojars" "https://clojars.org/repo"}))
(require '(incanter core stats charts))
It doesn't work either with clojure-1.8.0 or with clojure-1.7.0. It does work with clojure-1.6.0.
OK, after some digging I got add-dependencies to work with:
:dependencies [[org.clojure/clojure "1.9.0"]
[org.tcrawley/dynapath "0.2.5"]
[com.cemerick/pomegranate "0.4.0"]]
I can understand if dynapath wanted to remove some code for Java 9, it may still be useful after that; but it looks like pomegranate 1.0.0 doesn't do what it says on the tin anymore.
Can confirm the issue and the provided solution by @abo-abo. However, I would prefer version 1.0.0 would just work by itself ;)
@abo-abo @agodde please, take a look on PR above and try if it's working now in your setup
This is a pretty old issue, but after I update dynapath to the current release, I'll see if I can still reproduce the issue.
Unfortunately, nobody elaborated beyond "it doesn't work" which leaves me wondering what failure symptom to expect.
Note that since this issue was raised the example in the README was updated to reference incanter v1.9.2.
I can run the incanter README example in clojure versions 1.11, 1.10, 1.9, 1.8, 1.7. I do get a failure in Clojure 1.6.
user=> (require '(incanter core stats charts))
CompilerException java.io.FileNotFoundException: Could not locate clojure/core/matrix__init.class or clojure/core/matrix.clj on classpath: , compiling:(incanter/internal.clj:1:1)
Gonna close this one for now. If someone provides an example detailing an unexpected failure, I am happy to have a peek.