This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-07
Channels
- # aleph (4)
- # announcements (9)
- # babashka (44)
- # beginners (6)
- # cider (8)
- # clj-kondo (5)
- # clojars (10)
- # clojure (10)
- # clojure-berlin (1)
- # clojure-dev (9)
- # clojure-europe (20)
- # clojure-gamedev (1)
- # clojure-miami (2)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (5)
- # clojurescript (12)
- # conjure (1)
- # cursive (19)
- # data-science (2)
- # datahike (10)
- # etaoin (5)
- # events (3)
- # fulcro (14)
- # gratitude (2)
- # honeysql (8)
- # humbleui (1)
- # hyperfiddle (60)
- # introduce-yourself (7)
- # jobs-discuss (27)
- # juxt (2)
- # kaocha (7)
- # lsp (23)
- # malli (9)
- # missionary (2)
- # off-topic (48)
- # pathom (24)
- # releases (1)
- # shadow-cljs (256)
- # sql (46)
- # xtdb (19)
Can I automatically avoid using a dead repl buffer and kill it every time I do cider-connect?
I found cider-reuse-dead-repls
which I could customize (set to nil
?) but it seems it doesn't kill the dead buffers.
I run the repl in a terminal and then connect to it from cider-connect
.
To terminate I simply interrupt the repl process inside the terminal.
Ideally disconnect Emacs Cider from the external REPL started in the terminal, before terminating the REPL process in the terminal. This will avoid a 'dead' repl connection.
sesman-quit
emacs command
Or , m q q
Spacemacs key binding
The dead REPL is simply a CIDER connect that has lost its repl. So you can safely use a dead repl as the state is only what the terminal REPL state has.
Or you could automattically reuse any relevant repls in the Emacs config or a .dir-locals.el
for a specific project
(setq cider-reuse-dead-repls 'auto)
FYI.. as of more recent versions, the repl will ask you if you want to delete the "dead" repl if you chose to create one.
ah apologies 😉 I just recently updated and saw this change. This new change worked for me. I had this little helper function that would just remove all cider repl buffers before connecting to clean up any unused once before I reconnected.