forked from clojure-emacs/cider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nrepl-client not connecting to ssh-remote after cider-jack-in
Calling cider-jack-in from a tramp buffer on a ssh-remote would throw: "error in process filter: Wrong type argument: stringp, nil" This happened because nrepl--ssh-tunnel-connect is trying to string-match on (buffer-file-name) which returns nil, because the execution context is the nrepl buffer. To work around this, we pass down the buffer from which cider-jack-in was called. Considerations: - This should be reverted if the cause of this feature breaking is found and fixable. It seemed to have worked before, see: clojure-emacs#3264 - In nrepl-client.el the param name "jack-in-buffer" seems a bit too specific. But, as long as this workaround is its only usecase, I consider it reasonable for discoverability. - This should be refactored as soon as there's a more general way to convey contextual information to lower level functions. Fixes: clojure-emacs#3541 clojure-emacs#3303 (partially)
- Loading branch information
Showing
3 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters