-
-
Notifications
You must be signed in to change notification settings - Fork 651
Closed
Description
Expected behavior
When:
- we set the local clojure version (using asdf);
- we do not set any global clojure version (again, using asdf);
- we call
cider-jack-inon a clojure project;
the REPL should be started.
Actual behavior
The REPL is not started and the we get the following messages:
[nREPL] Starting server via bash /home/marcel/.config/emacs/elpa/cider-20231006.659/clojure.sh /home/marcel/.asdf/shims/clojure -Sdeps \{\:deps\ \{nrepl/nrepl\ \{\:mvn/version\ \"1.0.0\"\}\ cider/cider-nrepl\ \{\:mvn/version\ \"0.39.0\"\}\ refactor-nrepl/refactor-nrepl\ \{\:mvn/version\ \"3.9.0\"\}\}\ \:aliases\ \{\:cider/nrepl\ \{\:main-opts\ \[\"-m\"\ \"nrepl.cmdline\"\ \"--middleware\"\ \"\[refactor-nrepl.middleware/wrap-refactor\,cider.nrepl/cider-middleware\]\"\]\}\}\} -M:cider/nrepl
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: ("exited abnormally with code 126")
error in process sentinel: Could not start nREPL server: ("exited abnormally with code 126")
Steps to reproduce the problem
- Install and configure asdf (see https://asdf-vm.com/).
- Create a folder for a project.
- Create an empty
deps.ednfile into this folder. - Set the local clojure version to any version available. This will create a
.tool-versionsfile into the project folder. - Make sure that there is no global clojure version set, i.e., that there is no
.tool-versionsfile into your home folder or if there is one, that there is not a clojure versions declared in it. - Try to launch a REPL (
cider-jack-in) for this project.
Environment & Version information
CIDER version information
;; CIDER 1.8.0-snapshot (package: 20231009.1715), nREPL 1.0.0
;; Clojure 1.11.1, Java 17.0.8.1
Lein / Clojure CLI version
Clojure CLI version 1.11.1.1413
Emacs version
GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)
Operating system
Arch Linux
JDK distribution
openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment Temurin-20.0.2+9 (build 20.0.2+9)
OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (build 20.0.2+9, mixed mode, sharing)
Metadata
Metadata
Assignees
Labels
No labels