-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
[transaction.rs] Positions [(18, Before)] are out of range for changeset len 0! #11291
Comments
The issue was not present on b0cf86d. |
I have also stumbled upon this panic while editing some Rust code and trying to select an item from context menu which appears when you want to instantiate a new variable with a value of SpecificType:: ... |
I think it was introduced in this commit #10559. It's the only significant update which also makes changes in lsp module. The autocompletion for lsp commands does not work anymore, when the completion happens at the end of the line and there is only new line ( EDIT: Actually it seem to be rather random. It seems to happen also when autocompleting in between other characters, but sometimes it brakes, and sometimes it doesn't. EDIT2: Can confirm issue is gone, when dropping above mentioned commit. Looks related to #11269 |
Is there a reliable way to reproduce this even if it takes a few tries to trigger the panic? For example a Rust file or project and a specific edit that can cause it. I would be surprised if #10559 caused this: it updates |
@the-mikedavis I will try to come up with some reproducible example. There was either an inherent error in the lsp servers I'm using which were exposed by #10559 or the commit is the culprit. There doesn't seem to be other explanation I can think of. I tested behaviour on fresh helix compiles on commits from 22/7 and 23/7. |
I have a reproducable example:
helix inputs to reproduce: 53 gg gl a (Return) to (Tab)
|
I can reproduce it, thanks for the concrete case! The issue is we update the view positions in a block that we might run if we're applying a transaction with an empty changeset: helix/helix-view/src/document.rs Lines 1246 to 1250 in 7c5e5f4
(introduced in #10559). The reason I don't see this locally is that I'm also running #9801 which refactors |
Summary
Crash on double
tab
.Reproduction Steps
I can not consistently reproduce the issue. Out of nowhere, it crashes when I press
tab
quickly to traverse the suggestion list.Helix log
helix.log
Platform
Linux (NixOS)
Terminal Emulator
kitty 0.35.2 from nixpkgs unstable
Installation Method
nixpkgs (but commit rev is overriden)
Helix Version
24.7 (4c18355)
The text was updated successfully, but these errors were encountered: