cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-04-01T00:31:11.132500Z

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&gt; 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&gt; 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

cfleming 2021-04-01T00:32:06.132700Z

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.

alexmiller 2021-04-01T00:36:12.133300Z

#_ is not valid edn

alexmiller 2021-04-01T00:36:41.134Z

And deps.edn is read with the the edn reader

alexmiller 2021-04-01T00:36:48.134400Z

Not sure if that’s a clue

cfleming 2021-04-01T00:36:54.134600Z

Oh, interesting, I had forgotten that. Shouldn’t that produce a read error then?

alexmiller 2021-04-01T00:39:29.135100Z

Actually I’m wrong!

alexmiller 2021-04-01T00:39:44.135600Z

The discard sequence is part of edn

alexmiller 2021-04-01T00:43:00.136300Z

I don’t recognize that error, don’t know what that is

cfleming 2021-04-01T00:43:33.136500Z

Ok, I’ll try to debug this later and report back.

cfleming 2021-04-01T01:50:22.136700Z

@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.

cfleming 2021-04-01T01:53:43.136900Z

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.

cfleming 2021-04-01T01:58:12.137100Z

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

alexmiller 2021-04-01T02:00:03.138200Z

The error was about Maven so that doesn’t match up

alexmiller 2021-04-01T02:02:00.139500Z

That deps.edn above is wrong - missing the outer map with :deps key

onetom 2021-04-01T02:10:37.139900Z

in the original message the map had a quote, so i assumed it wasn't the whole deps.edn

cfleming 2021-04-01T02:29:59.140100Z

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.

helios 2021-04-01T06:55:13.140400Z

yes, sorry, it wasn't the whole deps.edn 🙂

helios 2021-04-01T06:55:26.140600Z

was just the culprit part of a larger deps.edn that worked fine