Fork me on GitHub
#spacemacs
<
2018-10-22
>
kommen05:10:32

@mathpunk I have spiral installed and occasionally use it. though I too use cider for most of the time, I’m a big fan of the unrepl approach. I mostly use spiral to connect to already running instances where injecting nrepl tooling is not possible

mathpunk15:10:47

@kommen :thinking_face: So, you have an ns in your application somewhere that runs a repl, and you connect to it over a network somehow?

kommen16:10:57

@mathpunk yes, just instead of having an ns which launches the repl, we use the -Dclojure.server flag when starting the instance as documented here: https://www.clojure.org/reference/repl_and_main#_launching_a_socket_server

mathpunk16:10:31

Thank you, I knew this was possible but wasn't sure where to start reading about it. Just to make sure I understand, you use spiral to connect --- your editor is the client--- much like the example connection is made by telnet. Have I got that right?

kommen16:10:06

yep, that’s right

4