-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
:reload-all
crashes with thread 'main' panicked at 'Position 5541 is out of range for changeset len 4994!', helix-core/src/transaction.rs:397:13
#4958
Comments
Just had the same panic (macOS, also Kitty, 22.08.1-501-ge6dad960), but in the middle of |
Ah wait, this could also be a symptom of |
@archseer just from the backtrace without a reproduction step this difficult to disect. It's possible that I missed something in the reload implementation. I will take a look again. I have been experiencing similar crashes but these should be fixed by #4912. I will switch to the latest master and stresstest a bit in the hopes of reproducing this |
I apologise for my confused previous comments, the char_idx <-> byte_idx conversion errror was in my fuzzing setup and not in the code itself. However as I mentioned I initially taught I had reproduced the bug because I got the exact same panic message as shown above. That happend because I was using a bytes instead of a char bounds check in the fuzzer which lead to producing a position that was past the end of the original text. I suspect something similar is happening here so the problem is actually the selection that is being transformed with However I have been unable to narrow this down further without any reproduction steps. I tried reproducing by doing a bunch of reloads but nothing happens. |
Ah, I reproduced this. I don't think it's related to the diffing change.
The issue is that |
Summary
While editing, I ran
:reload-all
and Helix crashed with:Reproduction Steps
I don't have exact steps to reproduce. I had a few files open, and a vertical split. The file on the left had focus, and was changed outside of Helix, so I was expecting that file to update after
:reload-all
.Helix log
No response
Platform
Linux
Terminal Emulator
Kitty
Helix Version
5a3ff74
The text was updated successfully, but these errors were encountered: