Repository navigation
Releases
Releases · clojure-emacs/cider
CIDER 2.0.1
Changes
- #4116: Bump the injected
cider-nreplto 0.62.2, so a dead trace/tap subscriber no longer breaks every traced evaluation, and the debugger no longer shadows the enlighten middleware's evaluator. - #4037: Stop calling the private
sesman--linked-sessions, using the publicsesman-sessionsAPI instead, so REPL font-locking doesn't break if that internal changes acrosssesmanversions.
Bugs fixed
- #4128: Fix
cider-load-buffer/cider-load-filepotentially freezing Emacs on a huge last-form result, by honoring the print settings (notablycider-print-quota) forload-filerequests, asevalrequests already do. - #4124: Fix evaluation failing with "No linked CIDER sessions" after jumping to a dependency's source via
xref-find-references(M-?): out-of-project reference buffers are now pinned to the originating REPL, likexref-find-definitionsalready was. - #4126: Fix the "No REPLs in current session" errors showing an empty session name when raised in a buffer pinned to a session (e.g. a dependency's source).
- #4120: Fix evaluation, debugging and inspecting in a dependency's source buffer still erroring with "No linked CIDER sessions":
cider-ensure-sessionnow honors the pinned REPL (andcider-default-session) like the rest of the REPL resolution does, instead of only checking sesman's linked sessions. - #4118: Fix
xref-find-definitions(M-.) onto a dependency's source breaking session linking: the opened buffer is now pinned to the REPL it was navigated from, so evaluation there no longer errors with "No linked CIDER sessions". - #4115: Fix inline macro stepping (
cider-macrostep): pressinge/RETright aftern/pnow expands the operator you jumped to, instead of erroring with "No sexp before point to expand". - #4114: Fix
cider-enlighten-modenever lighting anything up: theenlightenflag was dropped from eval requests built in source buffers (a 1.22 regression), and the value overlays were discarded because enlighten events carry no source text to verify against. - #4111: Fix the macroexpansion commands refusing to expand
let,fn,loopandletfn(macros that double as special forms), restore the no-op expansion of non-macro forms (useful for normalizing reader syntax like::auto/kwand#(...)), and stop gatingcider-macroexpand-allon the top-level operator (a fully-recursive expansion can reach macros in nested sub-forms).
CIDER 2.0 ("Terceira")
New features
- Transient menus everywhere:
- #4048: Each command group now opens a transient menu instead of a bare prefix keymap (
cider-eval-menuatC-c C-v,cider-doc-menuatC-c C-d, and likewise for test, ns, insert, macroexpand, profile, trace and references), plus a top-levelcider-menudispatch; existing keybindings are preserved. - #4061: The jack-in/connect keybindings are a transient menu too (
cider-start-menu,C-c C-x), with flags for aliases (-a), the ClojureScript REPL type (-l) and editing the command before running (-e) (#3317). - Add a transient menu to the debugger (
cider-debug-menu,?during a debug session) - its single-key commands are proper named commands now (e.g.cider-debug-next), soM-xworks too - and to the inspector (cider-inspector-menu,m). - Add per-invocation flags to several menus: the printer (
--print-fn=) in the pretty-print menu (#4065), test selectors (--include=/--exclude=) in the test menu (#4063), refresh modes (--all/--clear/--inhibit-fns) in the ns menu and expansion display (--ns=/--meta) in the macroexpand menu (#4062).
- #4048: Each command group now opens a transient menu instead of a bare prefix keymap (
- Rich content in evaluation results:
- #2476: Interactive evaluations now honor content types too: a result carrying rich content (e.g. an image) renders per the new
cider-eval-rich-content-destination-inline(the default, in the result overlay at point),repl,popupornil(plain values, the previous behavior). - Render fetched
text/htmlcontent as formatted text (viashr), and make an external-content result's URL a clickable link; remote images inside that HTML are never fetched, so rendering a result never makes a network request on its own.
- #2476: Interactive evaluations now honor content types too: a result carrying rich content (e.g. an image) renders per the new
- New code-exploration commands under
C-c C-w, presented as expandable trees:- #3995:
cider-who-calls(c) andcider-who-is-called(d), SLIME-style browsers for a function's callers and callees. - #3997, #3998, #4000, #4001:
cider-who-implements(i), browsing a protocol's implementing types (inlinedefrecord/deftypeincluded) or a multimethod's dispatch values, with jumps to each implementation's source. - #3999:
cider-type-protocols(t), listing the protocols a type implements, andcider-protocols-with-method(p), listing the protocols that declare a given method. - #3996:
cider-who-macroexpands(m), finding a macro's use sites by searching the project's source.
- #3995:
- #3994:
xref-find-references(M-?) now finds references by searching the project's source files, covering code that hasn't been loaded into the REPL yet (configurable viacider-xref-references-mode). - Tracing and enlighten:
- #3990, #3992, #3993: Add
cider-trace, a dedicated buffer that streams the calls and return values of traced functions live (instead of interleaving them into the REPL), with foldable calls,n/pnavigation and jump-to-definition. - #3989: Add
cider-list-tracedto show what's currently traced andcider-untrace-allto clear all tracing at once. - #3988, #3991: Add
cider-enlighten-defun-at-point(enlighten a single form without the global mode),cider-enlighten-clearandcider-enlighten-stop(turn enlightenment off at once).
- #3990, #3992, #3993: Add
- Inline macro stepping (#3970, #3976, #3977, #3978, #3985): add
cider-macrostep-expand(cider-macrostep-mode), expanding macros in place step by step, with the further-expandable sub-forms highlighted, gensyms colorized, full expansion in one step (a) and a popup-buffer variant (cider-macrostep-expand-in-buffer). - Eval-to-comment improvements:
- #3965: Add
cider-send-to-comment(C-c C-j c), copying the form at point into the namespace's richcommentblock, andcider-jump-to-comment(C-c C-j v) to visit it. - #3964: Add
cider-comment-style(line,discardorcomment) to control how the inserted results are formatted. - #4018: Successive eval-to-comment calls now update the inserted result in place instead of stacking stale ones.
- #3965: Add
- #4044, #4045: Add
cider-tap, a buffer that streams the values sent totap>and lets you inspect them withRET(ClojureScript taps stream too, but aren't inspectable). - #4094: Add
cider-doctor, which checks your Emacs setup (and the active nREPL session, if any) for common problems and shows a copy-pasteable report. - Add an
orchardvalue forcider-print-fn, selecting cider-nrepl'sorchard.pp-backed pretty-printer - significantly faster than the defaultclojure.pprintand it doesn't realize lazy seqs while printing. - #4108:
C-c C-dat the stdin prompt sends end-of-input, so code reading to EOF can be satisfied interactively instead of only by interrupting the evaluation. - #4026: Run ClojureScript tests (asynchronous ones included) with the regular test commands when a ClojureScript REPL is active, instead of refusing them.
- #4025: Mark each
deftestwith a green (passed) or red (failed) fringe indicator after a test run;cider-fringe-indicatorsnow also accepts a list of kinds (eval,test) (#3721). - #3973, #3980: Indicate namespace load-state: a mode-line (and optional fringe) marker when the buffer's namespace isn't loaded into the REPL or is stale (
cider-ns-load-state-display), and per-form fringe markers that turn amber when an evaluated form is edited (cider-mark-stale-after-edit); the load, reload and refresh commands all keep them in sync. - #4023:
cider-auto-inspect-after-evalnow acceptsinteractive,replorall, so a visible inspector can also be refreshed after REPL evaluations (#3636). - #4057: Show an animated spinner overlay at the form being evaluated instead of the mode-line spinner, when result overlays are enabled (#3516).
- #4060: Hint at jack-in time when no Clojure CLI aliases are set, so newcomers discover aliases like
:dev/:test; setcider-clojure-cli-aliasesto:nil-no-warnto silence it (#3317). - #4055: Add
cider-clojure-cli-powershell-optionsto pass extra options to the PowerShell executable used for jack-in on Windows (#2879). - #4004: Add
cider-browse-spec-tree, which browses a spec and the specs it references as an expandable tree. - #3969: Show ClojureDocs examples inline in the
*cider-doc*buffer (eto toggle,cider-doc-show-clojuredocs-examplesto always show them). - #3963: Attach
cider-scratchbuffers to a specific session (one scratchpad per session), with a configurable eval destination. - #3966: Add
cider-set-eval-destinationandcider-cycle-eval-destination(C-c C-M-d) to override, per buffer, which REPL type evaluations dispatch to.
Bugs fixed
- #4107: Route stdin input (and a cancel's interrupt) to the exact connection that requested it, so reads no longer misroute when several connections are active.
- #4106: Cancelling a stdin prompt now interrupts the evaluation, instead of sending a value nREPL treated as EOF and letting the evaluation continue.
- #4093: Fix a crash (
wrong-type-argument stringp nil) when a REPL result is truncated by the print middleware. - #4089: Fix
cider-macroexpand-undofailing with a read-only error in the macroexpansion buffer. - #4085: Res...
CIDER 1.22.2
Bugs fixed
- #3958: Fix
cider-stacktracecrashing on ClojureScript errors whose cause has no exception class. - #3959: Emit stdout (e.g. the
timemacro's "Elapsed time" line) when pretty-printing an eval result to a comment. - #3960: Browse single-segment namespaces (e.g.
user) fromcider-browse-ns-allinstead of opening their docs. - #3961: Recognize
?and!in symbols forcider-find-dwim(e.g.teardown!).
Changes
- #3919: Rename the
cider-jack-in-toolsregistry key:universal-prefix-argto:dispatch-prefix-arg, to avoid clashing with the Emacs universal-argument (C-u) terminology.
CIDER 1.22 ("São Miguel")
New features
- #3645: Show a spinner in the mode line while tests are running.
- #3865: Add default session feature to bypass sesman's project-based dispatch (
cider-set-default-session,cider-clear-default-session). - #3930: Inspector: add help message with keybindings.
- #3884: Introduce
cider-jack-in-toolsandcider-register-jack-in-toolso third-party packages can register new project tools forcider-jack-inandcider-jack-in-universal. - #3888: Cache the result of
cider--running-nrepl-paths(used bycider-locate-running-nrepl-ports) forcider-running-nrepl-paths-cache-ttlseconds (default 5). Repeatedcider-connectcompletions no longer re-spawn a fresh round ofps/lsofsubprocesses each time.cider-clear-running-nrepl-paths-cachediscards the cache on demand. - #3890: New
nrepl-make-eval-handlerwith a keyword-arg API:- Keyword slots:
:on-value,:on-stdout,:on-stderr,:on-done,:on-eval-error,:on-content-type,:on-truncated. - Sub-handlers no longer take a buffer argument; they close over whatever they need.
nrepl-make-response-handler, the legacy 7-positional-arg form, is preserved as an obsolete shim that adapts the old(buffer x)lambdas to the new(x)lambdas, so existing extensions keep working.
- Keyword slots:
- #3929: Keyword-argument forms for several low-level request APIs, so callers no longer pad arguments with
nilto reach a later one. In every case the legacy positional function is kept as a thin shim that delegates to the new one, so existing callers (including third-party packages) keep working unchanged:- Eval requests:
nrepl-send-eval-request(shim:nrepl-request:eval) andcider-nrepl-send-eval-request(shim:cider-nrepl-request:eval), with:ns,:line,:column,:additional-params, plus:toolingat the nREPL level and:connectionat the CIDER level. - Sync requests:
nrepl-sync-request(shim:nrepl-send-sync-request) andcider-nrepl-sync-request(shim:cider-nrepl-send-sync-request), with:abort-on-input,:tooling/:connection, and:callback. - Op helpers:
cider-info-request(shim:cider-sync-request:info),cider-eldoc-request(shim:cider-sync-request:eldoc),cider-apropos-request(shim:cider-sync-request:apropos), andcider-load-file-request(shim:cider-request:load-file).
- Eval requests:
- #3921: New
cider-repl-history-doctorcommand: walkscider-repl-input-historylooking for entries whose parens don't balance under Clojure syntax, shows each in a side buffer, and asks whether to delete it. When done, rewritescider-repl-history-fileif one is configured. Useful for cleaning up history after a typo got committed that breakscider-repl-historyrendering (see #3915). - #3926: Recognize let-go (a Clojure dialect implemented in Go) as a known nREPL runtime.
cider-runtimereturnslet-gofor these connections and the connection info line shows the runtime version, e.g.CLJ project@localhost:2137 (let-go 1.0). - #3892: Decouple the nREPL transport layer from CIDER's UI layer (closes #1099):
nrepl-make-eval-handleris now CIDER-agnostic. It no longer referencesnrepl-namespace-handler-function,nrepl-err-handler-function,nrepl-need-input-handler-function, or any hardcoded UI strings.- New
:on-nsand:on-statuskeyword slots let any consumer wire up their own namespace tracking and status handling. - The editor-level
cider-make-eval-handlerwraps it with CIDER's UI behavior (ns tracking, default error handler, need-input prompt, "Evaluation interrupted." / "Namespace not found." messages). In-tree callers all use it.
- #3927: New nREPL message log commands:
nrepl-show-messagespops up the messages buffer (prompting when there are multiple connections), andcinnrepl-messages-moderuns the newnrepl-clear-messagesto wipe the buffer. Auto-follow on new entries now leaves windows alone if you've scrolled back to read history; only windows already at end-of-buffer get scrolled to the latest message.
New features
cider-eval-commands-map(C-c C-vprefix) now binds five eval commands that previously had no entry under the prefix:cider-eval-last-sexp-to-repl(j/C-j)cider-eval-print-last-sexp(p/C-p)cider-read-and-eval(:)cider-eval-defun-to-comment(;)cider-pprint-eval-last-sexp-to-repl(f j e)
Bugs fixed
- #3937:
cider-find-keywordno longer opens the result in another window on a single prefix argument; only-or a double prefix does, matching the othercider-find-*commands. - #3938: Disabling
cider-modenow removes its reader-conditional font-lock keywords instead of re-adding them, so fontification no longer lingers and repeated toggling no longer stacks duplicate keywords. - #3939: Fix the malformed Clojure Interaction mode menu, where "Eval and print last sexp" rendered as an empty submenu instead of a working command.
- #3941: REPL history insertion with the mouse no longer risks inserting the wrong entry; the overlay lookup now honors the clicked position instead of point.
- #3942:
cider-log: apply the consumer's own filters when initializing a session, fix the brokencider-log-infoautoload, and honor a caller-supplied logger prompt. - #3953: Fix the cider-debug "Forced move out of sexp" menu entry erroring with a void variable, and an off-by-one in the cider-xref no-backing-file references fallback.
- #3933: Fix severe editor lag in Clojure buffers when no REPL is linked. Friendly-session matching no longer scans the project classpath (or the buffer's namespace) on every redisplay; it now just checks whether the buffer's file is under a session's project directory. Dependency sources jumped to via
cider-find-varare pinned to their originating session instead. cider-browse-spec-mode,cider-browse-spec-view-mode, andcider-browse-spec-example-modeeach have aneasy-menunow, exposing the drill/browse-all/generate-example commands that previously had no menu affordance.cider-repl-history-modenow has aneasy-menu("REPL History") covering insert, navigation, search/filter, refresh/delete/undo, and quit.cider-log-modenow has aneasy-menu("CIDER Log") covering event inspect/print, navigation, and the framework/appender/consumer/event management commands previously only reachable via theC-c M-lprefix.cider-macroexpansion-mode,cider-repl-history-mode, andcider--debug-modedocstrings now include\\{...-map}, soC-h m(describe-mode) lists the active key bindings instead of just a one-line description.cider-repl-mode-menunow listscider-repl-history("Browse REPL input history",C-c M-p) alongside the other Browse entries.cider-test-menunow listscider-test-rerun-test("Rerun the last test",a/C-aincider-test-commands-map) andcider-test-toggle-fail-fast(rendered as a:style togglereflectingcider-test-fail-fast).cider-browse-ns-mode-menunow lists "Operate at point" (RET) and dedicated "Filter" and "Group by" submenus that expose theh p/t/m/f/vandg t/vchords. Previously the menu showed only 3 of the 11+ bound commands.cider-inspector-mode-menunow exposes the inspector's full command surface: sibling navigation, max-nested-depth, the three view toggles (pretty-print / sort-maps / only-diff, rendered as:style toggle), the object/normal view toggle, tap/print/analytics, andcider-inspect-expr-from-inspector. Previously ~13 bound commands were menu-invisible.cider-mode-eval-menunow listscider-pprint-eval-defun-at-point("Eval top-level sexp in popup buffer",C-c C-f),cider-read-and-eval(C-c M-:),cider-undef(C-c C-u), andcider-undef-all(C-c C-M-u). All were bound but menu-invisible.cider-sesman-browser-mapno longer bindsC-c C-itocider-describe-connection.C-iisTABon terminals, so the binding shadowedTABwhile point was on a REPL entry in the sesman browser.C-c C-dandC-c M-dstill invoke the command, alongside thej d/j ichords.- Fix
cider-macroexpansion-modemenu's "Go to Javadoc" entry callingcider-docview-javadoc(the doc-buffer-only helper) instead of the generalcider-javadoccommand bound tojin the same map. - Fix two "ClojureScript" submenu entries in
cider-mode-menuthat pointed at long-renamed commands: "Connect to a ClojureScript REPL" calledcider-connect-clojurescript(gone, nowcider-connect-cljs) and "Create a ClojureScript REPL from a Clojure REPL" calledcider-jack-in-sibling-clojurescript(never existed; the right command iscider-connect-sibling-cljs). - Fix Xref menu entries "Find fn dependencies" / "Find fn dependencies and select" in
cider-mode-menuthat called the non-existentcider-xref-fn-defs/cider-xref-fn-defs-select. They now corre...
CIDER 1.21 ("Gràcia")
Changes
- #3854: Use buttons for items in
cider-ns-browserto allow clicking and evil'sRETto navigate. - Drop support for Emacs 27.
- This was prompted by upstream deps dropping support for it.
- Remove deprecated
cider-*-global-opts. - Move Emacs Lisp code under
lisp/folder to improve the structure of the repo.- That's not a user-visible change, but might affect the packaging depending on how you're installing CIDER.
Bugs fixed
- #3853: Fix mangling of printed representations.
- This was caused by a bug in nREPL, that was addressed in nREPL 1.5.2
CIDER 1.20 ("Lanzarote")
New features
- #3847: Inspector: tidy up namespaced-qualified keywords.
Changes
- Bump the injected
nreplto 1.5.1.-
- nrepl#385: Preserve filename in functions compiled during regular eval.
-
- Bump the injected
piggiebackto 0.6.1. - Bump the injected
cider-nreplto 0.58.0.-
- cider-nrepl#951: Debug: correctly process
#dbgtag duringload-file.
- cider-nrepl#951: Debug: correctly process
-
- #3834: Change
cider-ns-refreshto always use Clojure REPL.
Bugs fixed
- #3832: Fix
nrepl--eval-requestsending duplicate info. - #3837: Fix broken stacktrace response when
C-c C-pthrows an exception. - orchard#353: Stacktrace: flag Clojure functions as duplicate.
- orchard#355: Java: resolve source files for non-base JDK classes.
- #3834: Fix
cider-ns-refreshthrowing an error when a Clojure REPL exists, butcider-current-repldoes not support the required operations. - #3848: Format: fix
cider-formatcrashing when format options are set.
CIDER 1.19 ("Skiathos")
1.19.0 (2025-07-10)
New features
- #3359: Add customizable default connection params (see
cider-connect-default-paramsandcider-connect-default-cljs-params). - #3828: Inspector: diff mode.
- #3828: Inspector: sorting maps by keys.
Changes
- Bump the injected
cider-nreplto 0.57.0.- cider-nrepl#941: Stop vendoring Fipp dependency.
- cider-nrepl#943: Reduce debugger instrumentation bytecode footprint.
- orchard#342: Inspector: add hexdump view mode.
- orchard#349: Inspector: add ability to sort maps by key.
- orchard#350: Inspector: add diff mode and
orchard.inspect/diff.
- #3816: (Breaking) Remove enrich-classpath support from cider-jack-in.
- #3817: Enable
cider-download-java-sourcesby default.
CIDER 1.18 ("Athens")
New features
- #3802: Inspector analytics.
- #3802: Inspector table view-mode.
- #3813: Inspector pretty-printing mode.
- #3810: Inspector:
C-c C-pto pretty-print the currently inspected value. - orchard#320: Info: recognize printed Java classes/methods and munged Clojure functions in stacktrace outputs.
Changes
- #3782: Drop official support for Emacs 26.
- #3812: (Breaking) Remove support for Boot.
- #3793: (Breaking) Remove features that relied on printed exception parsing:
cider-stacktrace-analyze-stringandcider-stacktrace-analyze-at-pointfunctions.- Automatic stacktrace parsing in log viewer.
- Bump the injected
cider-nreplto 0.55.7.- compliment#122: Completion: sort candidates by priority.
- Inspector: add dedicated view for Exceptions.
- Stop vendoring Haystack dependency.
- Stop vendoring Puget dependency. You can still use
pugetpretty-printer in CIDER, but you need to depend on Puget explicitly. If Puget is not found on the classpath, CIDER will revert toclojure.pprint/pprintfor pretty-printing.
- #3777: Inspector no longer displays parsed Javadoc for Java classes and members.
- #3790: Stacktrace: show messages and data for all exception causes by default.
- #3807: Stacktrace: make exception data individually inspectable.
- #3789: Refactor and simplify exception handling.
- #3789: Completion: disable client-side sorting (defer to backend-provided candidate order).
- #3797: Completion: enable
cider-completion-styleby default (this enables richer completion suggestions where candidates don't have to strictly match the prefix). - #3803: Enable dynamic indentation for
clojure-ts-mode. - #3805: Profiler: update to latest profiling middleware.
- #3806: Add client info to
cloneop request.
Bugs fixed
CIDER 1.17 ("Cologne")
1.17.0 (2025-02-17)
New features
- Automatic downloading of third-party Java sources for better Java documentation and jump-to-definition functionality. See Obtaining source JARs.
- CIDER History: Add a command to delete history item at point.
Changes
- Bump the injected nREPL version to 1.3.1.
- Bump the injected
cider-nreplto 0.52.0. - #3574: New value
per-projectforcider-repl-history-fileto save the history on a per-project basis.