File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
doc/modules/ROOT/pages/repl Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,26 @@ for details.
265
265
Alternatively, you can toggle this behaviour on and off using kbd:[M-x cider-repl-toggle-content-types]
266
266
or the REPL shortcut `toggle-content-types`.
267
267
268
+ == REPL type detection
269
+
270
+ Normally CIDER would detect automatically the type of a REPL (Clojure or ClojureScript), based
271
+ on information it receives from the `track-state` middleware, that's part of `cider-nrepl`.
272
+
273
+ In some rare cases (e.g. a bug in `cider-nrepl` or `shadow-cljs`) this
274
+ auto-detection might fail and return the wrong type (e.g. Clojure instead of
275
+ ClojureScript). You can disable the auto-detection logic like this:
276
+
277
+ [source,lisp]
278
+ ----
279
+ (setq cider-repl-auto-detect-type nil)
280
+ ----
281
+
282
+ Afterwards you can use `cider-repl-set-type` to set the right type manually.
283
+
284
+ IMPORTANT: Using `cider-repl-set-type` without disabling
285
+ `cider-repl-auto-detect-type` won't do much, as the REPL type will constantly be
286
+ reset automatically by the `track-state` middleware.
287
+
268
288
== REPL history
269
289
270
290
* To make the REPL history wrap around when CIDER reaches the end:
You can’t perform that action at this time.
0 commit comments