clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.55k stars 645 forks source link

[inspector] Fix def-current-value selecting wrong REPL #3757

Closed alexander-yakushev closed 2 weeks ago

alexander-yakushev commented 2 weeks ago

Inspector's cider-inspector-def-current-val (hotkey d) behaves incorrectly if multiple REPLs are connected. It rebinds our carefully managed cider-inspector--current-repl with (cider-current-repl) which returns whatever in non-file and non-REPL buffers.

Perhaps, this is another reminder to make a generic "we know this buffer is associated with this REPL" variable and account for it in (cider-current-repl).

bbatsov commented 2 weeks ago

Perhaps, this is another reminder to make a generic "we know this buffer is associated with this REPL" variable and account for it in (cider-current-repl).

Agreed.