juxt

conan 2019-05-17T14:37:30.017800Z

I'm having trouble running an edge repl, I always get this error:

Syntax error (FileNotFoundException) compiling at (dev_extras.clj:1:1).
Could not locate clojure/tools/deps/alpha/repl__init.class, clojure/tools/deps/alpha/repl.clj or clojure/tools/deps/alpha/repl.cljc on classpath.
I notice that edge uses a fork of tools.deps.alpha, so I've checked that i'm not pulling in the clojure version of it from anywhere. I've also tried adding the same dependency:
org.clojure/tools.deps.alpha {:git/url "<https://github.com/SevereOverfl0w/tools.deps.alpha.git>"
                                                            :sha "a4173975e22e5a41cc3be85270729ed102be3917"
                                                            :exclusions [org.slf4j/slf4j-nop]}
Even with that in there, I still get the same error. Any ideas?

dominicm 2019-05-17T15:00:23.018600Z

Does this happen from the cli? What if you -Sforce?

conan 2019-05-17T15:00:39.018800Z

let me try

conan 2019-05-17T15:06:22.019300Z

no, it doesn't seem to happen from the cli (although i get an unrelated missing class in jetty there)

conan 2019-05-17T15:07:45.019500Z

i'm not sure how i would run -Sforce

conan 2019-05-17T15:07:48.019700Z

i'm using cursive

conan 2019-05-17T15:11:00.020100Z

for some reason the classpath the repl runs with has the wrong version of tools.deps.alpha

conan 2019-05-17T15:17:18.020500Z

any ideas on how to import an edge project into cursive correctly? i always end up with missing deps

conan 2019-05-17T15:17:53.021200Z

the best way i've found is to import the application's deps.edn, and to check the dev, dev/build and build aliases in the clojure deps tool window

conan 2019-05-17T15:30:55.021600Z

I think it's cursive that adds tools.deps.alpha to the classpath

conan 2019-05-17T15:31:06.022100Z

i don't know how to avoid this, is there a way to run edge without using the fork?

conan 2019-05-17T16:03:34.023400Z

ok i've found a workaround in cursive. it seems that cursive adds tools.deps.alpha from the :deps alias, which you can override by adding an empty :deps alias to your deps.edn. You could probably put this in your ~/.clojure/deps.edn to avoid having it in the project, but i haven't tried it.

dominicm 2019-05-17T16:29:32.023800Z

Sounds like there's a bug report for Colin there

conan 2019-05-17T17:25:03.024200Z

yeah i've posted in #cursive, will see if anything comes back and raise a ticket if not