Skip to content

Releases

CIDER 2.0.1

Choose a tag to compare

@bbatsov bbatsov released this 23 Jul 15:25

Changes

  • #4116: Bump the injected cider-nrepl to 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 public sesman-sessions API instead, so REPL font-locking doesn't break if that internal changes across sesman versions.

Bugs fixed

  • #4128: Fix cider-load-buffer/cider-load-file potentially freezing Emacs on a huge last-form result, by honoring the print settings (notably cider-print-quota) for load-file requests, as eval requests 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, like xref-find-definitions already 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-session now honors the pinned REPL (and cider-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): pressing e/RET right after n/p now expands the operator you jumped to, instead of erroring with "No sexp before point to expand".
  • #4114: Fix cider-enlighten-mode never lighting anything up: the enlighten flag 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, loop and letfn (macros that double as special forms), restore the no-op expansion of non-macro forms (useful for normalizing reader syntax like ::auto/kw and #(...)), and stop gating cider-macroexpand-all on the top-level operator (a fully-recursive expansion can reach macros in nested sub-forms).

CIDER 2.0 ("Terceira")

Choose a tag to compare

@bbatsov bbatsov released this 15 Jul 13:13

New features

  • Transient menus everywhere:
    • #4048: Each command group now opens a transient menu instead of a bare prefix keymap (cider-eval-menu at C-c C-v, cider-doc-menu at C-c C-d, and likewise for test, ns, insert, macroexpand, profile, trace and references), plus a top-level cider-menu dispatch; 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), so M-x works 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).
  • 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, popup or nil (plain values, the previous behavior).
    • Render fetched text/html content as formatted text (via shr), 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.
  • New code-exploration commands under C-c C-w, presented as expandable trees:
    • #3995: cider-who-calls (c) and cider-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 (inline defrecord/deftype included) or a multimethod's dispatch values, with jumps to each implementation's source.
    • #3999: cider-type-protocols (t), listing the protocols a type implements, and cider-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.
  • #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 via cider-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/p navigation and jump-to-definition.
    • #3989: Add cider-list-traced to show what's currently traced and cider-untrace-all to clear all tracing at once.
    • #3988, #3991: Add cider-enlighten-defun-at-point (enlighten a single form without the global mode), cider-enlighten-clear and cider-enlighten-stop (turn enlightenment off at once).
  • 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 rich comment block, and cider-jump-to-comment (C-c C-j v) to visit it.
    • #3964: Add cider-comment-style (line, discard or comment) 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.
  • #4044, #4045: Add cider-tap, a buffer that streams the values sent to tap> and lets you inspect them with RET (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 orchard value for cider-print-fn, selecting cider-nrepl's orchard.pp-backed pretty-printer - significantly faster than the default clojure.pprint and it doesn't realize lazy seqs while printing.
  • #4108: C-c C-d at 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 deftest with a green (passed) or red (failed) fringe indicator after a test run; cider-fringe-indicators now 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-eval now accepts interactive, repl or all, 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; set cider-clojure-cli-aliases to :nil-no-warn to silence it (#3317).
  • #4055: Add cider-clojure-cli-powershell-options to 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 (e to toggle, cider-doc-show-clojuredocs-examples to always show them).
  • #3963: Attach cider-scratch buffers to a specific session (one scratchpad per session), with a configurable eval destination.
  • #3966: Add cider-set-eval-destination and cider-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-undo failing with a read-only error in the macroexpansion buffer.
  • #4085: Res...
Read more

CIDER 1.22.2

Choose a tag to compare

@bbatsov bbatsov released this 17 Jun 13:05

Bugs fixed

  • #3958: Fix cider-stacktrace crashing on ClojureScript errors whose cause has no exception class.
  • #3959: Emit stdout (e.g. the time macro's "Elapsed time" line) when pretty-printing an eval result to a comment.
  • #3960: Browse single-segment namespaces (e.g. user) from cider-browse-ns-all instead of opening their docs.
  • #3961: Recognize ? and ! in symbols for cider-find-dwim (e.g. teardown!).

Changes

  • #3919: Rename the cider-jack-in-tools registry key :universal-prefix-arg to :dispatch-prefix-arg, to avoid clashing with the Emacs universal-argument (C-u) terminology.

CIDER 1.22 ("São Miguel")

Choose a tag to compare

@bbatsov bbatsov released this 16 Jun 13:45

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-tools and cider-register-jack-in-tool so third-party packages can register new project tools for cider-jack-in and cider-jack-in-universal.
  • #3888: Cache the result of cider--running-nrepl-paths (used by cider-locate-running-nrepl-ports) for cider-running-nrepl-paths-cache-ttl seconds (default 5). Repeated cider-connect completions no longer re-spawn a fresh round of ps/lsof subprocesses each time. cider-clear-running-nrepl-paths-cache discards the cache on demand.
  • #3890: New nrepl-make-eval-handler with 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.
  • #3929: Keyword-argument forms for several low-level request APIs, so callers no longer pad arguments with nil to 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) and cider-nrepl-send-eval-request (shim: cider-nrepl-request:eval), with :ns, :line, :column, :additional-params, plus :tooling at the nREPL level and :connection at the CIDER level.
    • Sync requests: nrepl-sync-request (shim: nrepl-send-sync-request) and cider-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), and cider-load-file-request (shim: cider-request:load-file).
  • #3921: New cider-repl-history-doctor command: walks cider-repl-input-history looking for entries whose parens don't balance under Clojure syntax, shows each in a side buffer, and asks whether to delete it. When done, rewrites cider-repl-history-file if one is configured. Useful for cleaning up history after a typo got committed that breaks cider-repl-history rendering (see #3915).
  • #3926: Recognize let-go (a Clojure dialect implemented in Go) as a known nREPL runtime. cider-runtime returns let-go for 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-handler is now CIDER-agnostic. It no longer references nrepl-namespace-handler-function, nrepl-err-handler-function, nrepl-need-input-handler-function, or any hardcoded UI strings.
    • New :on-ns and :on-status keyword slots let any consumer wire up their own namespace tracking and status handling.
    • The editor-level cider-make-eval-handler wraps 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-messages pops up the messages buffer (prompting when there are multiple connections), and c in nrepl-messages-mode runs the new nrepl-clear-messages to 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-v prefix) 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-keyword no longer opens the result in another window on a single prefix argument; only - or a double prefix does, matching the other cider-find-* commands.
  • #3938: Disabling cider-mode now 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 broken cider-log-info autoload, 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-var are pinned to their originating session instead.
  • cider-browse-spec-mode, cider-browse-spec-view-mode, and cider-browse-spec-example-mode each have an easy-menu now, exposing the drill/browse-all/generate-example commands that previously had no menu affordance.
  • cider-repl-history-mode now has an easy-menu ("REPL History") covering insert, navigation, search/filter, refresh/delete/undo, and quit.
  • cider-log-mode now has an easy-menu ("CIDER Log") covering event inspect/print, navigation, and the framework/appender/consumer/event management commands previously only reachable via the C-c M-l prefix.
  • cider-macroexpansion-mode, cider-repl-history-mode, and cider--debug-mode docstrings now include \\{...-map}, so C-h m (describe-mode) lists the active key bindings instead of just a one-line description.
  • cider-repl-mode-menu now lists cider-repl-history ("Browse REPL input history", C-c M-p) alongside the other Browse entries.
  • cider-test-menu now lists cider-test-rerun-test ("Rerun the last test", a/C-a in cider-test-commands-map) and cider-test-toggle-fail-fast (rendered as a :style toggle reflecting cider-test-fail-fast).
  • cider-browse-ns-mode-menu now lists "Operate at point" (RET) and dedicated "Filter" and "Group by" submenus that expose the h p/t/m/f/v and g t/v chords. Previously the menu showed only 3 of the 11+ bound commands.
  • cider-inspector-mode-menu now 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, and cider-inspect-expr-from-inspector. Previously ~13 bound commands were menu-invisible.
  • cider-mode-eval-menu now lists cider-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), and cider-undef-all (C-c C-M-u). All were bound but menu-invisible.
  • cider-sesman-browser-map no longer binds C-c C-i to cider-describe-connection. C-i is TAB on terminals, so the binding shadowed TAB while point was on a REPL entry in the sesman browser. C-c C-d and C-c M-d still invoke the command, alongside the j d / j i chords.
  • Fix cider-macroexpansion-mode menu's "Go to Javadoc" entry calling cider-docview-javadoc (the doc-buffer-only helper) instead of the general cider-javadoc command bound to j in the same map.
  • Fix two "ClojureScript" submenu entries in cider-mode-menu that pointed at long-renamed commands: "Connect to a ClojureScript REPL" called cider-connect-clojurescript (gone, now cider-connect-cljs) and "Create a ClojureScript REPL from a Clojure REPL" called cider-jack-in-sibling-clojurescript (never existed; the right command is cider-connect-sibling-cljs).
  • Fix Xref menu entries "Find fn dependencies" / "Find fn dependencies and select" in cider-mode-menu that called the non-existent cider-xref-fn-defs / cider-xref-fn-defs-select. They now corre...
Read more

CIDER 1.21 ("Gràcia")

Choose a tag to compare

@bbatsov bbatsov released this 07 Feb 19:47

Changes

  • #3854: Use buttons for items in cider-ns-browser to allow clicking and evil's RET to 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")

Choose a tag to compare

@bbatsov bbatsov released this 05 Nov 09:34

New features

  • #3847: Inspector: tidy up namespaced-qualified keywords.

Changes

  • Bump the injected nrepl to 1.5.1.
      • nrepl#385: Preserve filename in functions compiled during regular eval.
  • Bump the injected piggieback to 0.6.1.
  • Bump the injected cider-nrepl to 0.58.0.
  • #3834: Change cider-ns-refresh to always use Clojure REPL.

Bugs fixed

  • #3832: Fix nrepl--eval-request sending duplicate info.
  • #3837: Fix broken stacktrace response when C-c C-p throws 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-refresh throwing an error when a Clojure REPL exists, but cider-current-repl does not support the required operations.
  • #3848: Format: fix cider-format crashing when format options are set.

CIDER 1.19 ("Skiathos")

Choose a tag to compare

@bbatsov bbatsov released this 10 Jul 08:11

1.19.0 (2025-07-10)

New features

  • #3359: Add customizable default connection params (see cider-connect-default-params and cider-connect-default-cljs-params).
  • #3828: Inspector: diff mode.
  • #3828: Inspector: sorting maps by keys.

Changes

  • Bump the injected cider-nrepl to 0.57.0.
  • #3816: (Breaking) Remove enrich-classpath support from cider-jack-in.
  • #3817: Enable cider-download-java-sources by default.

CIDER 1.18 ("Athens")

Choose a tag to compare

@bbatsov bbatsov released this 30 Apr 07:25

New features

  • #3802: Inspector analytics.
  • #3802: Inspector table view-mode.
  • #3813: Inspector pretty-printing mode.
  • #3810: Inspector: C-c C-p to 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-string and cider-stacktrace-analyze-at-point functions.
    • Automatic stacktrace parsing in log viewer.
  • Bump the injected cider-nrepl to 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 puget pretty-printer in CIDER, but you need to depend on Puget explicitly. If Puget is not found on the classpath, CIDER will revert to clojure.pprint/pprint for 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-style by 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 clone op request.

Bugs fixed

  • #3784: Inspector: make point less erratic when navigating between inspector screens.
  • #3786: Sort dictionaries by key in nrepl-bencode
  • #3779: cider-find-keyword doesn't work with clojure-ts-mode.
  • #3791: Missing font-lock when cider-font-lock-dynamically is enabled for clojure-ts-mode.

CIDER 1.17 ("Cologne")

Choose a tag to compare

@bbatsov bbatsov released this 17 Feb 14:36

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-nrepl to 0.52.0.
  • #3574: New value per-project for cider-repl-history-file to save the history on a per-project basis.

Bugs fixed

  • #3763: Fix cider-docview-render completion popup error when symbol being completed does not have a docstring.
  • #3774: Fix overlay hangup when evaluating huge values.

CIDER 1.16.1

Choose a tag to compare

@bbatsov bbatsov released this 03 Dec 22:58
588c579

Changes

  • Bump the injected cider-nrepl to 0.50.3.
  • #3753: Add cider-log-show-frameworks command to show available log frameworks in a buffer.
  • #3746: Bring back cider completion style for activating backend-driven completion.

Bugs fixed

  • #3742: Restore syntax highlighting of result in the minibuffer.
  • #3747: Fix errors when docstring is nil.
  • #3757: Fix inspector's def-current-value selecting wrong REPL when multiple are connected.
  • #3754: Fix regex in cider-ns-from-p.