-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent state after some misterious crash. Had to use eglot--managed-mode #115
Comments
I agree to the first part, though I don't fully understand the second. Let's keep this open and mark the |
By the way, you can try killing RLS or otherwise making it crash on purpose. Eglot should recover automatically, if it doesn't please report here. |
For example, in my case I think I found that the eglot function that is attached to If I reproduce this again I will be sure to attach more information to this bug. |
Or |
…mehow hangs * eglot.el (eglot--signal-textDocument/didClose): Use with-demoted-errors.
…mehow hangs * eglot.el (eglot--signal-textDocument/didClose): Use with-demoted-errors.
* eglot.el (eglot--signal-textDocument/didClose): Use with-demoted-errors. #115: joaotavora/eglot#115
* eglot.el (eglot--signal-textDocument/didClose): Use with-demoted-errors. GitHub-reference: close joaotavora/eglot#115
I was using eglot with Rust and "something" happened -- I don't know exactly what but I assume that RLS crashed.
After this, eglot ended up in a state where I could do very little. For example, I could not
M-x revert-buffer
, because some eglot hook function errored (due IIRC the process being dead). I couldn't kill eglot-managed buffers, either.M-x eglot-shutdown
did not help.In the end I skimmed through the eglot source and did
M-x eglot--managed-mode
.I think eglot should be more careful about process failures and avoid allowing exceptions to unwind past the boundaries of hook functions.
The text was updated successfully, but these errors were encountered: