-
-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line arguments to repl/rebel-remote don't work #82
Comments
After investigating a bit more I think I've found the "real" cause of the problem: The remote NREPL gets registered with the host localhost (see the printed out nrepl://localhost:44947): When i execute a netcat command I can't reach the service: So I think I have to startthe nrepl-Server with the actual host name. The |
Ah yes, I remember the ❯ clojure -M:repl/rebel --bind 192.168.0.212 --port 44445
WARNING: abs already refers to: #'clojure.core/abs in namespace: clojure.test.check.generators, being replaced by: #'clojure.test.check.generators/abs
nREPL server started on port 44445 on host 192.168.0.212 - nrepl://192.168.0.212:44445
[Rebel readline] Type :repl/help for online help info
user=> When connecting via the Its quite easy to get The nrepl docs provide some other options, including defining a configuration file. |
Update: sorry, I forgot that I believe the clojure -M:repl/rebel-remote --connect --host hostname --port 8083 I dont have a remote setup at the moment to test. If the above doesnt work, then try using nrepl directly as a remote REPL client |
I have only managed to get a remote connection by first establishing an SSH forwarding connection. This only seems to work with nrepl connect command locally, using the Remote serverStart the REPL process on the remote machine, specifying the port clojure -M:repl/basic --port 1234 SSH tunnelCreate an ssh local forward tunnel to the remote machine ssh -L :1234:192.168.0.212:1234 practicalli@192.168.0.238 -N -v This will prompt for the user password, e.g. practicalli is the name of the user account on the remote machine.
Local connectionOn the local machine (in a separate terminal prompt), connect to the local port and and nrepl commands will be sent via SSH to the REPL process running on the remote server. clojure -M:repl/basic --connect --host localhost --port 1234 TestingAt the REPL prompt on the remote server, define a var, e.g. (def remote-value 42) At the REPL prompt on the local server, evaluate the var name remote-value This should display the value 42 in the local repl prompt.
|
If using Emacs Cider as the local REPL connection, define a local SSH connection in the
In Emacs, run the Enter the port, e.g 1234 Emacs cider should connect to the remote repl state. |
Thanks for the thorough testing! But in summary we can definitely say that Which is fine for me if I know the limitations but on the other hand the command is misleading as it implies that it is possible to connect to a remote REPL. |
Marked the alias as DEPRECATED and will move to the deps-deprecated.edn file by the next release |
The same command line args as applied to repl/remote do not work with repl/rebel-remote.
--host and --port do not have any effect.
The text was updated successfully, but these errors were encountered: