You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I've experienced editor crash for the first time due to panic in helix-core, lost some amount of unsaved work.
I'm trying to reproduce it, but no luck so far. I do have a panic message:
thread 'main' panicked at helix-core/src/transaction.rs:499:9:
Positions [(1125, BeforeSticky)] are out of range for changeset len 1124!
Now, regardless of if this error could have been handled more gracefully, I don't think it's good idea for editor we depend on to have no handling of unsaved buffers.
A simple solution is to add a panic hook and save any unsaved buffers to a new directory where helix is running, e.g.: .hx-crash-{timestamp} and then user can decide what do do with them.
This discussion was converted from issue #12844 on February 12, 2025 15:52.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Today I've experienced editor crash for the first time due to panic in helix-core, lost some amount of unsaved work.
I'm trying to reproduce it, but no luck so far. I do have a panic message:
Now, regardless of if this error could have been handled more gracefully, I don't think it's good idea for editor we depend on to have no handling of unsaved buffers.
A simple solution is to add a panic hook and save any unsaved buffers to a new directory where helix is running, e.g.:
.hx-crash-{timestamp}
and then user can decide what do do with them.Beta Was this translation helpful? Give feedback.
All reactions