-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Crash when force closing a buffer that was deleted on disk #2624
Comments
That block: helix/helix-view/src/editor.rs Lines 620 to 626 in fa2eecc
|
@dead10ck did your write fixes address this issue? |
I don't believe so. After poking around a bit, I'm not sure that deleting the file externally has anything to do with the crash. This seems to be a case where after closing the document, there's still a view in memory whose document was the one we just closed—thus the "no entry found for key" error, which appears to be coming from this line in particular. helix/helix-view/src/editor.rs Line 623 in fa2eecc
The question is how this is happening |
I am pretty certain that #4888 fixes the underlying issue here. I am closing this issue as there is no reproduction case to confirm. If you are still having this problem feel free to open a new issue or reopen this one |
Summary
I had deleted the file of an open buffer on disk. I then tried to force close it
:buffer-close!
. It crashed.Reproduction Steps
In the middle of coding; can’t recreate now as I don’t want to lose my flow :)
Helix log
Platform
Linux (Fedora Silverblue 36)
Terminal Emulator
GNOME Console
Helix Version
helix 22.05 (fc8c488)
The text was updated successfully, but these errors were encountered: