-
-
Notifications
You must be signed in to change notification settings - Fork 649
Description
I've just upgraded my Emacs to 30.2 and with it the CIDER version. The following issue has appeared which wasn't there in the version prior to the upgrade (I'm not sure how to retrieve that version.)
Expected behavior
If I am in a namespace within a ClojureScript REPL, unless I switch to another namespace, either by calling (in-ns new-namespace), or by pressing C-u C-c C-z, the REPL namespace should never change.
Actual behavior
If I type anything at the REPL, and I mean literally anything, the namespace switches to cljs.user. This happens every time.
Steps to reproduce the problem
I have opened both a Clojure and ClojureScript REPL. The Clojure REPL using C-c M-j, and the ClojureScript REPL using Figwheel's figwheel.main.api/start.
If I open the file code_nodes_test.cljs, which defines the namespace entmorph.editor.code-nodes-test, and press C-u C-c C-z, the ClojureScript REPL switches to that namespace, as it should.
If I then type anything at the REPL, e.g.
entmorph.editor.code-nodes-test> nil
nil
cljs.user> it returns the value nil, but then as you can see it switches back to the cljs.user namespace.
Environment & Version information
CIDER version information
;; CIDER 1.20.0-snapshot (package: 20250806.1944), nREPL 1.3.1
;; Clojure 1.11.1, Java 17.0.16
Clojure CLI version
Clojure CLI version 1.12.1.1561
Emacs version
GNU Emacs 30.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.50,
cairo version 1.18.4)
Operating system
ArchLinux 6.16.3-arch1-1
JDK distribution
openjdk version "17.0.16" 2025-07-15
OpenJDK Runtime Environment (build 17.0.16+8)
OpenJDK 64-Bit Server VM (build 17.0.16+8, mixed mode, sharing)