juxt

R.A. Porter 2021-03-12T19:41:35.004200Z

QUESTION ABOUT EDGE We’re building a OneJar and deploying it in Docker, starting it up passing in -Dclojure.server.myrepl='{:port 50505 :accept juxt.edge.server.pretty-repl/repl}' . I have been trying, with no success, to connect an nrepl client to it. I was able to add a log to juxt-edge.server.pretty-repl/repl and see that when my client connects, it triggers the log, but the repl gets no prompt and is unusuable. My assumption is that it has something to do with the output (and possibly also the input) not being correctly attached. I’m trying many different paths to try to get more debugging info out but having no success.

☝️ 2
dominicm 2021-03-19T12:22:21.005600Z

As mentioned, the socket repl isn't a nrepl. You need to us nc instead.

R.A. Porter 2021-03-12T19:42:01.004400Z

I have taken Docker out of the testing equation, just running my onejar at the command line; that behaves the same.

Alex Whitt 2021-03-12T20:19:10.005200Z

We've tried several different REPL clients, including leiningen, tools-deps, and cider. Cider is the only one so far that gives some kind of feedback: nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1)

2021-03-12T22:10:32.005500Z

Looking at the edge docs and the cider docs, it seems edge runs a socket repl which cider doesn't support https://docs.cider.mx/cider/faq.html#will-cider-eventually-support-the-clojure-1-8-socket-repl https://juxt.land/edge/docs/socket-repl.html

2021-03-12T22:18:17.005700Z

can you try and do:

nc localhost 50505

2021-03-12T22:18:56.005900Z

https://lambdaisland.com/guides/clojure-repls/clojure-repls#org259d775 has a bit about connecting the socket repl, but it's not edge specific

R.A. Porter 2021-03-12T23:43:17.006300Z

We finally worked around it for now but starting up our own nrepl server in our code. As for the port…we were definitely opening it, as evidenced by the fact that a log message I stuck in the juxt edge repl printed. It’s no longer a blocker, even if I don’t love the solution.