Fork me on GitHub
#tools-deps
<
2019-10-29
>
Johan05:10:12

Hello, did anyone successfully use nRrpl and repl-y together to be launched via a clojure -A:repl ?

seancorfield05:10:54

@johan178 Something like this?

clj -Sdeps '{:deps {reply {:mvn/version "RELEASE"}}}' -e "((requiring-resolve,'nrepl.server/start-server))" -m reply.main
That will start an nREPL server on a random port (and report it) as well as starting REPL-y.

👍 4
seancorfield05:10:05

Then you can connect into that server from other clients. I just tried connecting in with Leiningen to check it worked.

seancorfield05:10:33

You could provide a specific port number if you wanted in the call to start-server.

Johan06:10:54

:nrepl {:extra-deps {nrepl {:mvn/version "RELEASE"}
                                reply {:mvn/version "RELEASE"}
                                cider/cider-nrepl {:mvn/version "RELEASE"}}
                   :main-opts ["-e" "((requiring-resolve,'nrepl.server/start-server))"
                               "-m" "reply.main"] }
I got an alias working. Trying to get nrepl midlerware (cider-nrepl) working

borkdude11:10:56

(fwiw I don't start a REPL in terminal, I just connect to it from my editor)