-
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…3567 Fixes `cider-jack-in-clj` in tramp buffers throwing: ``` Could not start nREPL server: %s (%S) bash: /remote/path/to/cider/clojure.sh: No such file or directory\n" "exited abnormally with code 127") ``` in cases where cider is not installed in the same directory on the remote. To fix this, we create temporary copy of the enrich-classpath script named `.cider__<clojure.sh|lein.sh>__<random>` on the remote before starting the server. The possible locations of the script are, in this order: - tramp-tempdir (usually "/tmp") - clojure-project-dirj - default-directory If the script can't be created for any reason, the server is started with `cider-enrich-classpath` set to nil. Note: the temporary script will remove itself after use, but stick around when something goes wrong before the remote process is started.
- Loading branch information
Showing
3 changed files
with
149 additions
and
35 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