Fork me on GitHub
#cider
<
2016-06-09
>
michaeldrogalis01:06:46

Is it possible to open a repl that connects to multiple networked repl servers and broadcasts commands in parallel to each of them? e.g. I have a local repl connect to servers A and B, run (defn foo [] :bar), evaluate, and foo is available in the repl for servers A and B.

richiardiandrea01:06:01

@michaeldrogalis: not authorative answer, this feature is not in cider at the moment

michaeldrogalis01:06:18

@richiardiandrea: Cool, thanks! Figured as much. It's an odd-ball use case.

richiardiandrea01:06:29

yeah 😉 it reminds me of testing multiple mobile devices, it would be cool to have though, especially if, like in your case I guess, you have a cluster of apps exposing a repl

michaeldrogalis01:06:28

I suppose you can use Clojure 1.8's socket repl and iterate over a sequence of connections. Making it smooth with the editor is a bit of work though.

malabarba02:06:31

You could iterate over regular nrepl connections too.

malabarba02:06:42

Nothing prevents you simple_smile

malabarba02:06:59

It's just not implemented in cider

malabarba02:06:23

But it wouldn't take a lot of elisp code to put together some hack for personal use

michaeldrogalis03:06:34

@malabarba: Awesome! Great to know. Thanks!

ddellacosta14:06:06

thanks @aengelberg and @richiardiandrea for your responses re: retaining/loading namespaces in repl

rickmoynihan14:06:51

@michaeldrogalis: I've heard that figwheel has a broadcast repl for interacting with multiple browsers/devices/environments at the same time

rickmoynihan14:06:07

but it may be cljs only

michaeldrogalis14:06:45

@rickmoynihan: I'll poke around and find out. 🙂

rickmoynihan14:06:51

cool - it'd be interesting to know how it works... A quick and dirty emacs keyboard macro could probably get you most of the way there too though 🙂

aaelony15:06:47

@zane I think at least partially retrying the cider upgrade a few times did resolve it, though not 100% certain, since I got pulled into a number of other projects and don't recall the details on that (other) machine. Will get back to it eventually