-
-
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
'Position ... is out of range for changeset len ....!' panic on ~23.03 when saving a file #6752
Comments
I am working on the steps to reproduce, for now here is a backtrace of a similar case when changing views.
|
@trink what you are running into seems to be #5632. I am not sure if that's the same crash as this issue (and can currently not be fixed). Thanks for looking into this regardless! The issue as originally reported could be anything as this is the basic "something went wrong" crash but without a backtrace or reproduction case we have no idea what. @bcspragu are you saving in insert mode with a keybinding? That tends to cause crashes like this |
In this case I just switched buffers using 'ga', there were no splits or prompts open. Isolating where/when things got out of sync is proving challenging but I am not clear on why it cannot be fixed... should I just move on to investigating my next panic? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
The fact that you were using However The cause for the crash you ran into happens even earlier (just before the function that would cause the other bug is called). We call The same bug exists for anything that edits multiple views (almost always the LSP) since only the focused view can be assumed to be up to date, so we need to fix those other instances too. For example in |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
Helix Version: 23.05 on Linux : I think i was renaming a fn with LSP (with unsaved changes before it in file containing the fn and some other file using it. Also had a vertical split view showing both unsaved files, the one using the fn was on the left and the one containing the fn on the right). It probably panicked on save with Relevant LSP related items from my config before panic : [editor]
auto-pairs = false
auto-info = false
auto-format = false
[editor.lsp]
display-messages = true
display-signature-help-docs = false Though these are unlikely the cause, judging by the description above. EDIT: |
I've hit this one a few times over the past few days on
Specifically, I use It might also have happened on |
I described what causes this bug and how to fix it. I personally just haven't got the time to implement that myself |
This might be related but not sure if it's the same. I was using I don't think I wrote
I will clone the latest version and run with full backtrace and return if I find a reproducible case |
Apologies, that'll teach me to refresh my memory of a thread before commenting. A semi-related new piece of data: I hit what I believe is this crash again when running A crash is disruptive, but completely erasing a file is much worse. I was able to recover ~80% of my work by grepping my drive for a known string, but it definitely wasn't a pleasant experience. It sounds like the complexity of this issue is above my Rust/Helix paygrade, but I'll take a look and see if I can contribute a patch here, as this issue has probably lost me 10+ hours of work this past month. |
Summary
Helix panicked on a recent build while saving a file, with error:
I was saving some combination of Go + Vue 2 files at the time
Reproduction Steps
Unfortunately I don't have a reproducible use case, this is the first panic I've had since updating to something around 23.03
Helix log
The
helix.log
didn't have anything useful, just LSP-related errors that aren't actually problems.Platform
Linux
Terminal Emulator
alacritty / tmux
Helix Version
helix 23.03 (3cf0372)
The text was updated successfully, but these errors were encountered: