Fork me on GitHub
#cider
<
2024-01-04
>
Jim Newton17:01:00

has anyone else noticed emacs freezing when editing clojure code after the upgrade to emacs 29.1 ?

Jim Newton17:01:30

it seems to freeze about once per week for me. I have to kill emacs and restart.

vemv17:01:15

I'd recommend staring emacs with nrepl-log-messages set to t When the freezing happens, send SIGUSR2 to the emacs process (this is a well-documented technique) to abort whatever it was doing. Share the *nrepl-log-<your repl name>* buffer contents afterwards It also could be anything else besides from cider e.g. clojure-mode, clojure-lsp if you use it

Jim Newton17:01:17

I'm making a note of this.. will give it a try next time.

🙌 1
vemv17:01:28

It also is wise to favor cider-connect over cider-jack-in workflows, so that Emacs can be killed and you can reconnect to the same repl which is useful for: • not losing your state • maybe, debugging your issue

Jim Newton17:01:17

I don't know the cider-connect workflow

vemv17:01:51

https://docs.cider.mx/cider/basics/up_and_running.html#connect-to-a-running-nrepl-server The idea is to create a repl process from your terminal, then Emacs becomes sort of a thin client to it

Jim Newton17:01:18

when I say freeze, I mean cursor stops working, cannot move cursor, cannot insert text, cannot switch buffers.

Jim Newton17:01:17

I'm making a note of this.. will give it a try next time.

🙌 1