Skip to content
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

Crash while navigating jumplist after reload-all #13149

Open
jonner opened this issue Mar 20, 2025 · 0 comments
Open

Crash while navigating jumplist after reload-all #13149

jonner opened this issue Mar 20, 2025 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@jonner
Copy link

jonner commented Mar 20, 2025

Summary

I was making some modifications to some code. I had a bunch of buffers open with a lot of changes, and I had been navigating through the code for quite some time. At some point I decided to abandon the changes, so from another terminal, I ran git stash to revert all of my uncommitted changes. Then from within helix, I did :reload-all to revert the state of the open files within the editor to match the state of the files on disk. But when I navigated the jumplist by pressing ctrl+o a couple times, I got a crash.

thread 'main' panicked at /usr/share/cargo/registry/ropey-1.6.1/src/slice.rs:360:41:
called `Result::unwrap()` on an `Err` value: Char index out of bounds: char index 12298, Rope/RopeSlice char length 9098
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reproduction Steps

I tried this:

  1. hx
  2. Edit a bunch of files, navigate the code via jumping to symbol definitions via lsp, etc
  3. git stash
  4. :reload-all
  5. ctrl-o several times

I expected this to happen:
navigate backwards in jumplist stack

Instead, this happened:
crash

Helix log

~/.cache/helix/helix.log I'm not sure any of this is relevant, but this is all that exists from the log from today's date
2025-03-20T08:34:59.466 helix_lsp::transport [ERROR] gopls <- ServerError(0): no type definition for libocp
2025-03-20T08:35:56.583 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(1125)), original request likely timed out
2025-03-20T08:36:01.395 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(1130)), original request likely timed out

Platform

Linux

Terminal Emulator

vte/gnome terminal

Installation Method

fedora package

Helix Version

helix 25.01.1 (e7ac2fc)

@jonner jonner added the C-bug Category: This is a bug label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant