-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Working with a remote REPL does not enable cider-mode when opening local files #2520
Comments
My use case could be helped by #2506, I am not sure, if this would fix the issue of not enabling cider-mode, as described here. |
Just a quick check, is the value of |
I did not change it, so I assume yes. |
I looked into it in more detail, and it seems to be related to the fact, that I call "cider-connect" non-interactive. I saw as well that after the remote repl is started, my clojure-mode-hook indeed misses the "cider-mode". So somehow the non interactive call of "cider-connect" fails to add the cider-mode into the clojure-mode-hooks |
I figured out the problem. The described behavoiur happens only when the active buffer , while I run cider-connect, is not a project file. When I run the cider-connect, while for example project.clj is open, it works as expected. This is maybe a bit confusing, I would say When connecting to a remote repl it is not obvious, why the current active buffer should have any influence... Specially because I need to set the ":project-dir" explicitly. I would find it rather "normal" that I can connect to a remote repl, without having any file open in emacs. So my assumption would be that all clojure files in :project-dir are "automatically" associated with the repl |
I tried the PR #2506 and it would indeed solve my problem, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
Expected behavior
Opening a local clj file, while connected to a remote repl, should enable cider mode automatically . And after this the evaluation of code should work and happen on the remote REPL.
Actual behavior
Cider-mode does not get enabled, it stays in clojure-mode only. And therefore the "cider eval" commands are not working.
Typying manually "cider-mode" in the buffer does work and the code evaluation works as expected
Steps to reproduce the problem
This establishes the connection and the repl can be used.
CIDER Sessions:
1: sources/expertDossier:serveo.net:35868
linked-to: proj(~/Dropbox/sources/expertDossier/)
objects: cider-repl %s(clj)
(running "cider-mode" by hand does work and enable it and it shows the connection information in the mode line)
Environment & Version information
CIDER version information
Lein/Boot version
Leiningen 2.8.1 on Java 1.8.0_192 OpenJDK 64-Bit Server VM
Emacs version
emacs 26.1
Operating system
arch linux
The text was updated successfully, but these errors were encountered: