-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Panics on failed to send a message: SendError
#18055
Comments
All of those are follow up errors, the original cause isn't in that log (something panicked outside a catch_unwind) |
#18055 should remove some of the noise |
fix: Don't panic lsp writer thread on dropped receiver Should reduce the noise a bit (#18055). This removes the panic (and a follow up panic) when the server incorrectly shuts down, turning it into a proper late exit error.
What I see in the code is that |
|
This is the error I get now: Interestingly the file does seem to exist, it's just not a rust file?
|
It doesn't look for the file but whether it has been intended from what I've seen, so I think you're onto something there. |
Ah okay, we are returning an error in a notification handler (which exits the main loop) hence all the other panics due to dropping channels unexpectedly |
The only handler exerting this behavior is for rust-analyzer/crates/rust-analyzer/src/main_loop.rs Lines 211 to 242 in 77e1969
(now we still shouldnt exit here because of this either) |
Sorry about that, and thanks for the fix! Let me see if we can figure out why that regressed on our end. |
fix: Don't panic lsp writer thread on dropped receiver Should reduce the noise a bit (rust-lang/rust-analyzer#18055). This removes the panic (and a follow up panic) when the server incorrectly shuts down, turning it into a proper late exit error.
fix: Faulty notifications should not bring down the server Fixes rust-lang/rust-analyzer#18055, if a client sends us an unregistered document path in a did save notification it would force us to exit the thread. That is obviously not great behavior, we should be more fallible here
We've noticed when using rust analyzer on the zed codebase that it crashes every 10-30 minutes:
We have also seen a few users reporting this (presumably on their own projects) at zed-industries/zed#17376.
The text was updated successfully, but these errors were encountered: