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

changing the language of a "scratch" buffer panics #1995

Closed
smason opened this issue Apr 6, 2022 · 1 comment
Closed

changing the language of a "scratch" buffer panics #1995

smason opened this issue Apr 6, 2022 · 1 comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue

Comments

@smason
Copy link

smason commented Apr 6, 2022

Summary

changing the language of a "scratch" buffer causes helix to panic

Reproduction Steps

hx
:lang python

every language I've tried this with does the same, as does creating a new scratch buffer via the "Create a new scratch buffer" command.

Helix log

backtrace
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', helix-view/src/editor.rs:479:31
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
   2: core::panicking::panic
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:48:5
   3: helix_view::editor::Editor::launch_language_server
   4: helix_term::commands::typed::language
   5: helix_term::commands::typed::command_mode::{{closure}}
   6: <helix_term::ui::prompt::Prompt as helix_term::compositor::Component>::handle_event
   7: helix_term::compositor::Compositor::handle_event
   8: helix_term::application::Application::handle_terminal_events
   9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  10: tokio::park::thread::CachedParkThread::block_on
  11: tokio::runtime::thread_pool::ThreadPool::block_on
  12: tokio::runtime::Runtime::block_on
  13: hx::main

Platform

linux

Terminal Emulator

foot

Helix Version

22.05-dev (b03421a)

@smason smason added the C-bug Category: This is a bug label Apr 6, 2022
@sudormrfbin
Copy link
Member

Duplicate of #1994.

@sudormrfbin sudormrfbin added the R-duplicate Duplicated issue: please refer to the linked issue label Apr 6, 2022
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 R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants