nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
flowthing 2019-04-27T06:27:51.014400Z

Yes, but if the Drawbridge endpoint is e.g. at http://localhost:3001/repl, host and port isn't enough, need to pass the /repl bit as well. And anyway, connecting to a Drawbridge endpoint is done via nrepl/url-connect, whereas nrepl.cmdline currently uses nrepl/connect.

pez 2019-04-27T12:14:34.025Z

OK. So I am doing something wrong, but can’t figure out what it is. Maybe someone in here can see some pattern that I am missing so that I can start looking at the right place for the source of error. In my little test project I could get things to work (see above), but in Calva, I still have something lurking. The symptoms are: 1. Everything seems to be dandy with CLJ repls. 1. In CLJS repls things go wrong if I try to do something as simple as (println 1). 1. Evaluating things in general, works. 1. Things go wrong liks this: 1. I get an ex message back class java.lang.IllegalArgumentException. I’ll post the stacktrace in a separate snippet. 1. I get an exception in the terminal/process I started the repl from. I’ll post that as a seperate snippet too.

pez 2019-04-27T12:15:30.025100Z

pez 2019-04-27T12:16:10.025400Z

dpsutton 2019-04-27T14:47:12.025900Z

@pez how are you starting it up?

pez 2019-04-27T14:53:39.026600Z

The Clojure REPL is started like so for a cli/deps project:

clojure -Sdeps "{:deps {nrepl {:mvn/version \"0.6.0\"} cider/cider-nrepl {:mvn/version \"0.21.1\"} cider/piggieback {:mvn/version \"0.4.0\"} figwheel-sidecar {:mvn/version \"0.5.18\"}}}" -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware cider.piggieback/wrap-cljs-repl]"

pez 2019-04-27T14:56:47.027700Z

Then it depends on project type for the cljs repl, but for figwheel:

(do (require 'figwheel-sidecar.repl-api) (if (not (figwheel-sidecar.repl-api/figwheel-running?)) (figwheel-sidecar.repl-api/start-figwheel!)) (figwheel-sidecar.repl-api/cljs-repl))

dpsutton 2019-04-27T15:10:03.028100Z

does figwheel sidecar and the old figwheel work with clojure?

pez 2019-04-27T15:25:01.029100Z

Yes. And I have the same problems with Leiningen. 😃

bozhidar 2019-04-27T17:59:00.029700Z

@pez I’m on the road with very bad internet for a few days. I’d suggesting pinging @cichli in private about this.

pez 2019-04-27T18:34:55.032700Z

Thanks, @bozhidar , but I'm pretty sure this is not a fault with nrepl or other tooling. It's me getting lost in async calls and not being able to read the signs. I long for that facepalm, even if it's going to hurt.