Why does CIDER ask if I want to re-use buffers for dead REPLs? I've been answering "yes", but I'm not sure why. Could CIDER have an opinion on the matter for me?
Interested in this as well. Most of the time it feels like a decision I don't make consciously, and it doesn't matter that much.
yep, I’d also prefer if the default was yes here
I always say no, cause I want it clean lol
Yes, exactly why I am asking: I don't even know what the ramifications are. Hence my initial (non-rethorical) question. Why does it ask me?
there's a defcustom for this - cider-reuse-dead-repls
I’d also be fine with defaulting to not re-use a buffer (though I personally prefer reusing it as I can still clear it and I’ve never had the need to look up things from a dead repl buffer) but find being asked as a default often an unhelpful interruption.
Yeah, my preferred setting is auto , but I decided to keep the preexisting behaviour as default when introducing it in https://github.com/clojure-emacs/cider/pull/3354
If this is a popular opinion feel free to open an issue for changing the default :)
I'd be fine with changing the default. Originally the assumption was that people won't encounter this very often, so it was fine to prompt them when this happened.
I rarely restart connections, so this almost never happens to me. 😄
Yeah, I'd go long periods without encountering it too, but once you're dealing with a bug that crashes the JVM (breaking the connection with Cider 'unexpectedly') and having to restart the REPL every couple of minutes, then it becomes an annoyance having to answer the prompts on every reconnect and/or manually clean up all those 'dead REPL' buffers.
Just so, yuhan. My suggestion would be to change the default to auto.
I get this prompt a lot 😂 Use case: connect to a local repl, do stuff. Disconnect and connect to a remote repl, then disconnect and reconnect to local.