Fork me on GitHub
#emacs
<
2023-03-15
>
Carlo11:03:29

What's your workflow for starting a repl in another machine and connecting to it? I started the repl in the other machine via the invocation cider shows at startup, and then connected to it using cider-connect, but I received an error message saying that the source files couldn't be found on the classpath. This might be because the remote machine doesn't have the source files. However, I would like to avoid moving files to the remote machine if possible. Any suggestions on how to achieve this? Thanks!

Dimitar Uzunov12:03:53

How do you ship your application? If the remote machine doesn’t have the source file it needs to have .jars or java classes there

Carlo12:03:36

Thanks @ULE3UT8Q5 this is not about shipping yet, I want to evaluate my code in the other computer as I have a GPU there. As a workaround, I'm using sshfs to mount my code folder over there, I just wondered if there's a better option

Dimitar Uzunov12:03:12

that could work @UA7E6DU04, you can also build an uberjar and use scp to copy it on the other computer

Dimitar Uzunov12:03:43

that is the way I do it at least to answer your original question 🙂

Carlo12:03:26

yes, thanks, is there a way to generate an uberjar easily using deps.edn or do I need to write a build script?

Dimitar Uzunov12:03:32

I’m actually still using https://github.com/seancorfield/depstar but that page refers to tools.build now

practicalli-johnny14:03:52

Once you have the source code, there is some useful information about SSH and remote REPL connections at https://docs.cider.mx/cider/basics/up_and_running.html#working-with-remote-hosts

jakemcc16:03:39

This doesn't solve your problem of not wanting the source files over to the remote machine but if you're willing to do that, I've had great success with https://mutagen.io/ for doing making remote development feel like local with the way it does file syncing.