-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
prblems launching CIDER through Podman TRAMP integration #3303
Comments
It'd be nice to run the command generated by |
Actually, after reading the second time it seems that nREPL actually starts, but the SSH tunnel doesn't work, right? Still, it'd be nice to see what's the underlying error.
I have to admit that I don't know what Podman is, so I'd definitely appreciate the help of someone familiar with it. :-) |
I didn't had this problem anymore so I'll close it for now. Will reopen it if I find ways to reproduce it |
I just ran into the stringp-error while trying to play with my new raspberry pi. No docker / podman.
The problem is that
Is this expected / did something change since this feature was introduced (#3264)? To confirm, I tried - (let* ((current-buf (buffer-file-name))
+ (let* ((current-buf (or (buffer-file-name)
+ (buffer-file-name (window-buffer (selected-window))))) ... which works, but only if one doesn't switch windows while cider is booting up. A less flaky approach would be to just pass down the buffer from which Versions: |
Please create a new issue reflecting the same info / any other that the template suggests |
Expected behavior
In the upcoming Emacs 29, it will be possible to use TRAMP to edit files inside Docker and Podman containers. When editing a such file, the path looks like this:
I'd expect CIDER to work the same way how it works when editing files over SSH on the remote machine, however, upon calling
cider-jack-in
an error occurs.Actual behavior
Toggling the debug on error, shows me the following stack trace:
So it appears, cider issues an ssh connection to a Podman container.
There's also another error that can appear when connection is issued via Podman:
I'm not sure what's causing one or another.
Steps to reproduce the problem
To easily create a container, use distrobox:
distrobox create -i ubuntu:20.04 -n ubuntu
It will make it possible to access your home directory in the container, so all your projects are available there.
distrobox enter ubuntu
to initialize containerC-x C-f /podman:ubuntu:path/to/file.clj
M-x cider-jack-in
Environment & Version information
CIDER version information
Include here the version string displayed when
CIDER's REPL is launched. Here's an example:
Lein / Clojure CLI version
Leiningen 2.9.10 on Java 17.0.5 OpenJDK 64-Bit Server VM
Emacs version
GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-12-19
Operating system
Fedora 37
The text was updated successfully, but these errors were encountered: