This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-15
Channels
- # babashka (4)
- # beginners (136)
- # calva (63)
- # clerk (7)
- # clj-kondo (8)
- # clojure (43)
- # clojure-boston (1)
- # clojure-europe (37)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (3)
- # clojurescript (6)
- # clr (1)
- # code-reviews (16)
- # cursive (45)
- # datomic (2)
- # docker (32)
- # emacs (10)
- # events (2)
- # exercism (1)
- # fulcro (3)
- # hugsql (1)
- # hyperfiddle (47)
- # leiningen (3)
- # lsp (30)
- # malli (39)
- # missionary (1)
- # off-topic (24)
- # pathom (2)
- # portal (14)
- # practicalli (5)
- # rdf (13)
- # reagent (18)
- # reitit (18)
- # releases (7)
- # remote-jobs (1)
- # sci (2)
- # shadow-cljs (45)
- # sql (7)
- # tools-build (11)
- # xtdb (13)
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!
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
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
that could work @UA7E6DU04, you can also build an uberjar and use scp to copy it on the other computer
that is the way I do it at least to answer your original question 🙂
yes, thanks, is there a way to generate an uberjar easily using deps.edn
or do I need to write a build script?
I’m actually still using https://github.com/seancorfield/depstar but that page refers to tools.build now
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
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.