LightTable / Clojure

Light Table Clojure language plugin
MIT License
99 stars 51 forks source link

lein-light-nrepl doesn't work if "project.clj" contains ":pedantic? :abort" #14

Closed vbauer closed 9 years ago

vbauer commented 10 years ago

Error message:

We couldn't connect.

Looks like there was an issue trying to connect to the project. Here's what we got:
final project:  {:compile-path /home/bauer/workspace/clojure/ziggurat/target/classes, :group ziggurat, :global-vars {*warn-on-reflection* true}, :checkout-deps-shares [:source-paths :test-paths :resource-paths :compile-path #'leiningen.core.classpath/checkout-deps-paths], :repl-options {:nrepl-middleware [lighttable.nrepl.handler/lighttable-ops], :init (clojure.core/swap! lighttable.nrepl.core/my-settings clojure.core/merge {:name ziggurat 0.1.0-SNAPSHOT, :project (quote {:compile-path /home/bauer/workspace/clojure/ziggurat/target/classes, :group ziggurat, :global-vars {*warn-on-reflection* true}, :checkout-deps-shares [:source-paths :test-paths :resource-paths :compile-path #'leiningen.core.classpath/checkout-deps-paths], :dependencies ([ring-server/ring-server 0.3.1 :exclusions ([clj-stacktrace/clj-stacktrace])] [ring/ring-json 0.3.0 :exclusions ([ring/ring-core])] [com.taoensso/timbre 3.1.6] [http-kit/http-kit 2.1.18] [org.clojure/clojure 1.5.1] [compojure/compojure 1.1.6 :exclusions ([org.clojure/tools.macro])] [lib-noir/lib-noir 0.8.1] [com.postspectacular/rotor 0.1.0] [com.taoensso/carmine 2.4.6] [org.drools/drools-compiler 6.0.1.Final :exclusions ([org.slf4j/slf4j-api])] [org.drools/knowledge-api 6.0.1.Final :exclusions ([org.slf4j/slf4j-api])] [clj-http/clj-http 0.9.1] [com.sun.xml/jaxb-xjc 2.0EA3] [org.jsoup/jsoup 1.7.3] [org.apache.commons/commons-lang3 3.3.1] [ch.qos.logback/logback-classic 1.1.1] [com.ibm.icu/icu4j 52.1] [com.googlecode.juniversalchardet/juniversalchardet 1.0.3] [clj-rss/clj-rss 0.1.3] [org.clojure/tools.nrepl 0.2.3 :exclusions ([org.clojure/clojure])] [clojure-complete/clojure-complete 0.2.3 :exclusions ([org.clojure/clojure])]), :plugin-repositories [[central {:snapshots false, :url http://repo1.maven.org/maven2/}] [clojars {:url https://clojars.org/repo/}]], :test-selectors {:default (constantly true)}, :target-path /home/bauer/workspace/clojure/ziggurat/target, :name ziggurat, :deploy-repositories [[clojars {:username :gpg, :url https://clojars.org/repo/, :password :gpg}]], :root /home/bauer/workspace/clojure/ziggurat, :offline? false, :source-paths (/home/bauer/workspace/clojure/ziggurat/src), :certificates [clojars.pem], :version 0.1.0-SNAPSHOT, :pedantic? :abort, :jar-exclusions [#"^\."], :prep-tasks [javac compile], :url http://example.com/FIXME, :repositories [[central {:snapshots false, :url http://repo1.maven.org/maven2/}] [clojars {:url https://clojars.org/repo/}]], :resource-paths (/home/bauer/workspace/clojure/ziggurat/dev-resources /home/bauer/workspace/clojure/ziggurat/resources), :aot :all, :uberjar-exclusions [#"(?i)^META-INF/[^/]*\.(SF|RSA|DSA)$"], :main ziggurat.app, :min-lein-version 2.0.0, :jvm-opts [], :eval-in :subprocess, :plugins ([lein-kibit/lein-kibit 0.0.8] [codox/codox 0.6.7] [lein-droid/lein-droid 0.2.0-beta1]), :native-path /home/bauer/workspace/clojure/ziggurat/target/native, :description FIXME: write description, :uberjar-merge-with {META-INF/plexus/components.xml leiningen.uberjar/components-merger, data_readers.clj leiningen.uberjar/clj-map-merger}, :test-paths (/home/bauer/workspace/clojure/ziggurat/test), :clean-targets [:target-path]})})}, :dependencies ([ring-server/ring-server 0.3.1 :exclusions ([clj-stacktrace/clj-stacktrace])] [ring/ring-json 0.3.0 :exclusions ([ring/ring-core])] [com.taoensso/timbre 3.1.6] [http-kit/http-kit 2.1.18] [org.clojure/clojure 1.5.1] [compojure/compojure 1.1.6 :exclusions ([org.clojure/tools.macro])] [lib-noir/lib-noir 0.8.1] [com.postspectacular/rotor 0.1.0] [com.taoensso/carmine 2.4.6] [org.drools/drools-compiler 6.0.1.Final :exclusions ([org.slf4j/slf4j-api])] [org.drools/knowledge-api 6.0.1.Final :exclusions ([org.slf4j/slf4j-api])] [clj-http/clj-http 0.9.1] [com.sun.xml/jaxb-xjc 2.0EA3] [org.jsoup/jsoup 1.7.3] [org.apache.commons/commons-lang3 3.3.1] [ch.qos.logback/logback-classic 1.1.1] [com.ibm.icu/icu4j 52.1] [com.googlecode.juniversalchardet/juniversalchardet 1.0.3] [clj-rss/clj-rss 0.1.3] [org.clojure/tools.nrepl 0.2.3 :exclusions ([org.clojure/clojure])] [clojure-complete/clojure-complete 0.2.3 :exclusions ([org.clojure/clojure])] [lein-light-nrepl/lein-light-nrepl 0.0.17] [org.clojure/tools.reader 0.8.3]), :plugin-repositories [[central {:snapshots false, :url http://repo1.maven.org/maven2/}] [clojars {:url https://clojars.org/repo/}]], :test-selectors {:default (constantly true)}, :target-path /home/bauer/workspace/clojure/ziggurat/target, :name ziggurat, :deploy-repositories [[clojars {:username :gpg, :url https://clojars.org/repo/, :password :gpg}]], :root /home/bauer/workspace/clojure/ziggurat, :offline? false, :source-paths (/home/bauer/workspace/clojure/ziggurat/src), :certificates [clojars.pem], :version 0.1.0-SNAPSHOT, :pedantic? :abort, :jar-exclusions [#"^\."], :prep-tasks [javac compile], :url http://example.com/FIXME, :repositories [[central {:snapshots false, :url http://repo1.maven.org/maven2/}] [clojars {:url https://clojars.org/repo/}]], :resource-paths (/home/bauer/workspace/clojure/ziggurat/dev-resources /home/bauer/workspace/clojure/ziggurat/resources), :aot :all, :uberjar-exclusions [#"(?i)^META-INF/[^/]*\.(SF|RSA|DSA)$"], :main ziggurat.app, :min-lein-version 2.0.0, :jvm-opts [], :eval-in :subprocess, :plugins ([lein-kibit/lein-kibit 0.0.8] [codox/codox 0.6.7] [lein-droid/lein-droid 0.2.0-beta1]), :native-path /home/bauer/workspace/clojure/ziggurat/target/native, :description FIXME: write description, :uberjar-merge-with {META-INF/plexus/components.xml leiningen.uberjar/components-merger, data_readers.clj leiningen.uberjar/clj-map-merger}, :test-paths (/home/bauer/workspace/clojure/ziggurat/test), :clean-targets [:target-path]}
Possibly confusing dependencies found:
[lein-light-nrepl "0.0.17"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.sonatype.aether/aether-connector-wagon "1.13.1"] -> [org.codehaus.plexus/plexus-utils "2.0.7"]
 overrides
[lein-light-nrepl "0.0.17"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.apache.maven.wagon/wagon-provider-api "2.2"] -> [org.codehaus.plexus/plexus-utils "3.0"]
 and
[lein-light-nrepl "0.0.17"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.apache.maven.wagon/wagon-http "2.2"] -> [org.apache.maven.wagon/wagon-provider-api "2.2"] -> [org.codehaus.plexus/plexus-utils "3.0"]
 and
[lein-light-nrepl "0.0.17"] -> [com.cemerick/pomegranate "0.2.0"] -> [org.apache.maven.wagon/wagon-http "2.2"] -> [org.apache.maven.wagon/wagon-http-shared4 "2.2"] -> [org.apache.maven.wagon/wagon-provider-api "2.2"] -> [org.codehaus.plexus/plexus-utils "3.0"]

Consider using these exclusions:
[lein-light-nrepl "0.0.17" :exclusions [org.codehaus.plexus/plexus-utils]]
[lein-light-nrepl "0.0.17" :exclusions [org.codehaus.plexus/plexus-utils]]
[lein-light-nrepl "0.0.17" :exclusions [org.codehaus.plexus/plexus-utils]]

Aborting due to version ranges.

It will be great to update cemerick/pomegranate to version 0.3.0 to fix this problem (it was already solved in last version)

PS: Additional information: https://github.com/cemerick/pomegranate/commit/3285b880852ddbbb0668e0141da7db72a3efdc8a

vbauer commented 10 years ago

UPD: I'm not sure, but it looks like com.cemerick/pomegranate is not used at all. Maybe it will be better to remove this library from dependencies.

cldwalker commented 9 years ago

Thanks for the report. @ibdknox Is require-jar and thus pomegranate used anymore? If it isn't, I'll remove the dependency and the older version of this behavior - install-dependencies.

ibdknox commented 9 years ago

I don't think so. Being able to load dependencies for plugins dynamically was something @jamii was working on, but it didn't really take off.

cldwalker commented 9 years ago

Closing as this was addressed with #30

vbauer commented 9 years ago

Thank you!