Skip to content

Fix the inspect commands never opening the inspector#139

Merged
bbatsov merged 2 commits into
masterfrom
fix-tree-inspect
Jul 16, 2026
Merged

Fix the inspect commands never opening the inspector#139
bbatsov merged 2 commits into
masterfrom
fix-tree-inspect

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 16, 2026

Copy link
Copy Markdown
Member

The tree and buffer inspect commands (c i) were calling cider-inspect with an expression string, an API that's been gone from CIDER for years - the value got def'd server-side as $s/* but the inspector never opened. They now go through cider-inspect-expr, and signal a proper error when there's no value at point instead of inspecting garbage.

Also bumps the required CIDER to the just-released 2.0.

Reported on Slack.

bbatsov added 2 commits July 16, 2026 13:03
sayid-tree-inspect and sayid-buf-inspect-at-point passed an expression
string to cider-inspect, an API CIDER dropped long ago - the value got
def'd as $s/* but the pcase on the prefix arg silently matched nothing.
Go through cider-inspect-expr instead, via a shared helper.

Also stop defing and inspecting garbage when there's no value at point
(or nothing is selected at the prefix-arg prompt) - signal a clear
user-error instead.

Reported on Slack.
Now that CIDER 2.0 is out, make it the baseline for the Emacs client.
Also fixes the stale CIDER 1.0+ claim in the README, which had fallen
behind the actual 1.23 requirement.
@bbatsov
bbatsov merged commit 241fa2d into master Jul 16, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant