Fork me on GitHub
#off-topic
<
2024-03-23
>
Karol Wójcik17:03:30

Hey folks 👋 I’m trying to share my REPL port my coworker, so that he could connect to it. Do you have some tips and tricks how to do it? Preferably with Calva 😇

seancorfield17:03:49

Seems like this would be an on-topic question for the #CBE668G4R or #C6H9FUNET channels -- but as @UNST81B9P said, take a look at the LiveShare stuff in VS Code -- that's good for pairing etc.

👍 1
p-himik18:03:41

If you prefer a more manual approach, you can create a .nrepl.env file with something like this as its contents:

{:bind "0.0.0.0"
 :port 12345}
Then start the REPL in Calva, make sure that your firewall allows that port through, share your IP address and that port with your coworker, tell them to configure their nREPL to connect to that address, and that should be it.

👍 1
til 1
jjttjj18:03:22

An ancient but effective way is to share a tmux session with some editor/repl environment. Edit: sorry I misread, I see now you just want to open up a repl port, not share a coding session

Karol Wójcik19:03:50

I think doing exactly what @U2FRKM4TW mentioned is a way to go for me. Liveshare seems also pretty cool, though I didn’t use it extensively yet. Many thanks all for replies!

p-himik19:03:27

I've tested it very briefly and there's one thing worth noting - the REPL clients share the state but they don't share the code that's being executed and the results. So the REP part of "REPL" isn't shared at all.

p-himik19:03:32

There might be a configuration that tells an nREPL server/client to behave differently. But it's as unknown of a territory for me as it is to you.

👍 1
Ramon Rios17:03:22

There is a share plugin in vscode

👍 1
seancorfield17:03:04

Please use threads for replies instead of the main channel.

Ramon Rios17:03:35

And I think with this you can share REPL

Ramon Rios17:03:55

LiveShare if I’m not wrong