Skip to content

"No cljs REPLs in current session ..." after recent upgrade #3914

@Outrovurt

Description

@Outrovurt

The Issue, Expected behaviour and how to reproduce it

I run Emacs CIDER with two REPLs, one Clojure, one ClojureScript via Figwheel.

I recently upgraded CIDER to the latest version, and now when I start the Figwheel build/REPL, the REPL buffer opens up (with the "cljs.user >" prompt), it connects to a JS runtime (I can evaluate any js/* commands from the REPL), but when I try to evaluate any code from a .cljs buffer, I get the message which is the title of this issue.

One clue as to what the problem might be is that the ClojureScript REPL buffer is still reporting * cider-repl dev/.... (clj)* at the bottom instead of (cljs).

I have included information on all nREPL middleware versions being used below.

I put this into Claude and actually got some useful information out:

"CIDER normally auto-detects the REPL type (Clojure or ClojureScript) based on information received from the track-state middleware in cider-nrepl. In some cases — such as a bug in cider-nrepl or a version mismatch — this auto-detection can fail and return clj instead of cljs. When that happens, CIDER has no cljs REPL in the session as far as it's concerned, and C-c C-z from a .cljs buffer gives the "No cljs REPLs in current session" error. "

Now I have been able to workaround this by running M-x cider-set-repl-type and selecting cljs, which I was very happy about when I eventually discovered it. But wondering has something changed recently and is there anything I need to update in any config to take this into account?

Environment & Version information

CIDER version information

;; CIDER 1.22.0-snapshot (package: 20260510.755), nREPL 1.7.0
;; Clojure 1.11.1, Java 21.0.8

nREPL middleware versions

cider/cider-nrepl
    {:mvn/version "0.59.0"}

    refactor-nrepl/refactor-nrepl
    {:mvn/version
      "3.11.0"}

    cider/piggieback
    {:mvn/version "0.6.1"}

Lein / Clojure CLI version

Clojure CLI version 1.12.1.1561

Emacs version

GNU Emacs 30.2

Operating system

Arch Linux

JDK distribution

openjdk version "21.0.8" 2025-07-15
OpenJDK Runtime Environment (build 21.0.8+9)
OpenJDK 64-Bit Server VM (build 21.0.8+9, mixed mode, sharing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions