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

Panic when running vsplit: filename #3148

Closed
Woolworths opened this issue Jul 22, 2022 · 3 comments
Closed

Panic when running vsplit: filename #3148

Woolworths opened this issue Jul 22, 2022 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@Woolworths
Copy link

Woolworths commented Jul 22, 2022

Summary

cd into my dotfiles directory.

Running :vs README.md panics and crashes helix.

Reproduction Steps

I tried this:

  1. cd dotfiles
  2. hx
  3. :vs README.md

I expected this to happen:
File opens in a vertical split.

Instead, this happened:
Helix panics.

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

2022-07-22T22:59:31.931 helix_view::editor [ERROR] Failed to initialize the LSP for source.md { LSP not defined }
2022-07-22T23:00:08.416 helix_view::editor [ERROR] Failed to initialize the LSP for source.md { LSP not defined }
2022-07-22T23:02:42.602 helix_view::editor [ERROR] Failed to initialize the LSP for source.md { LSP not defined }

RUST_BACKTRACE=1 hx:

thread 'main' panicked at 'no entry found for key', helix-view/src/document.rs:956:10
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic_display
   3: core::panicking::panic_str
   4: core::option::expect_failed
   5: helix_view::view::View::offset_coords_to_in_view
   6: helix_view::editor::Editor::_refresh
   7: helix_view::editor::Editor::open
   8: helix_term::commands::typed::vsplit
   9: helix_term::commands::typed::command_mode::{{closure}}
  10: <helix_term::ui::prompt::Prompt as helix_term::compositor::Component>::handle_event
  11: helix_term::compositor::Compositor::handle_event
  12: helix_term::application::Application::handle_terminal_events
  13: helix_term::application::Application::event_loop_until_idle::{{closure}}
  14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  15: std::thread::local::LocalKey<T>::with
  16: tokio::park::thread::CachedParkThread::block_on
  17: tokio::runtime::thread_pool::ThreadPool::block_on
  18: tokio::runtime::Runtime::block_on
  19: hx::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Platform

macOS

Terminal Emulator

Alacritty

Helix Version

helix 22.05 (19e51c8)

@Woolworths Woolworths added the C-bug Category: This is a bug label Jul 22, 2022
@sonicrules1234
Copy link

I got this bug too, but on Arch Linux.

@AceofSpades5757
Copy link
Contributor

I have this issue on Windows running version 22.05 (19e51c82)

@AceofSpades5757
Copy link
Contributor

AceofSpades5757 commented Jul 22, 2022

It looks like the bug was introduced with this commit: 19b7864
The version before didn't have this issue.

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

4 participants