Interestingly, even though the CLI doesn’t produce an error, it doesn’t produce the right result either:
~/d/c/helios-deps-problem> cat deps.edn
{org.clojure/clojurescript {:mvn/version "1.10.844"
#_:git/url "<https://github.com/clojure/clojurescript>"
#_:sha "3fdaabedb1343f434b6cb4f75fa28e748f96eff0"
#_#_:local/root "/Users/mk/Downloads/clojurescript/"
#_#_:local/root "/Users/kommen/work/clojurescript/"}}⏎
~/d/c/helios-deps-problem> clojure -Stree
org.clojure/clojure 1.10.3
. org.clojure/spec.alpha 0.2.194
. org.clojure/core.specs.alpha 0.2.56
~/d/c/helios-deps-problem> clojure -Spath
src:/Users/colin/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/Users/colin/.m2/repository/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/Users/colin/.m2/repository/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar
I’d have expected it to pick up clojurescript
and just ignore the map entry it doesn’t understand. @alexmiller might know why that is.
#_ is not valid edn
And deps.edn is read with the the edn reader
Not sure if that’s a clue
Oh, interesting, I had forgotten that. Shouldn’t that produce a read error then?
Actually I’m wrong!
The discard sequence is part of edn
I don’t recognize that error, don’t know what that is
Ok, I’ll try to debug this later and report back.
@helios I’m not seeing an error with this. Cursive imports without the CLJS dep but that’s because Deps doesn’t return it, as detailed above. I’m using CLI tools 1.10.3.810.
That error seems to be something to do with ssh. Do you have something in your user deps file which might cause deps to do something with ssh? The most likely candidate would be something with git and the new git shell integration, but that’s getting outside the realms of my deps CLI knowledge.
There are some suggestions of things to check here, does that help? https://cursive-ide.com/userguide/eap/troubleshooting.html#help-lots-of-symbols-don-t-resolve
The error was about Maven so that doesn’t match up
That deps.edn above is wrong - missing the outer map with :deps key
in the original message the map had a quote, so i assumed it wasn't the whole deps.edn
Ugh, you are absolutely right, I’m not paying attention. If I add the outer map and :deps
, both Cursive and CLI do the right thing. I can’t repro the initial error.
yes, sorry, it wasn't the whole deps.edn 🙂
was just the culprit part of a larger deps.edn that worked fine