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

Deno LSP is reliably crashing #25643

Open
ghost opened this issue Sep 15, 2024 · 1 comment
Open

Deno LSP is reliably crashing #25643

ghost opened this issue Sep 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working correctly lsp related to the language server

Comments

@ghost
Copy link

ghost commented Sep 15, 2024

Version: Deno 1.46.3

Here is the full backtrace.

Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos aarch64
Version: 1.46.3
Args: ["/Users/scrappydev/.deno/bin/deno", "lsp"]

thread '<unnamed>' panicked at cli/lsp/diagnostics.rs:741:46:
called `Result::unwrap()` on an `Err` value: ParseError { index: 56, kind: UnexpectedChar }
stack backtrace:
   0:        0x105cbb998 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h41035ce174e31160
   1:        0x104dd84ec - core::fmt::write::h7e946826fce7616b
   2:        0x105c8c834 - std::io::Write::write_fmt::he3645adfefb23e4a
   3:        0x105cbe358 - std::sys_common::backtrace::print::h2efe9ae66fda73dc
   4:        0x105cbdc70 - std::panicking::default_hook::{{closure}}::hd27200b4fbd3bf40
   5:        0x105cbd878 - std::panicking::default_hook::hb8656334461229c8
   6:        0x104cd351c - deno::setup_panic_hook::{{closure}}::he4fff95b29e31606
   7:        0x105cbec48 - std::panicking::rust_panic_with_hook::h10171cf76e1aed15
   8:        0x105cbe6cc - std::panicking::begin_panic_handler::{{closure}}::h9344de43a47cae21
   9:        0x105cbe634 - std::sys_common::backtrace::__rust_end_short_backtrace::h55013ada3ab9c4e8
  10:        0x105cbe628 - _rust_begin_unwind
  11:        0x104dd69c8 - core::panicking::panic_fmt::h0b16bb09366e1f01
  12:        0x104ddd2ac - core::result::unwrap_failed::h0a2eea50cb43dc63
  13:        0x104937a8c - <core::iter::adapters::filter_map::FilterMap<I,F> as core::iter::traits::iterator::Iterator>::next::hc596babae87904b6
  14:        0x1049349f4 - <core::iter::adapters::filter_map::FilterMap<I,F> as core::iter::traits::iterator::Iterator>::next::h0e9ebc4d1d01c3a5
  15:        0x104b8bc0c - deno::lsp::diagnostics::generate_ts_diagnostics::{{closure}}::h5c8b7132239f4f74
  16:        0x10490cda0 - <deno_unsync::tokio::task::MaskFutureAsSend<F> as core::future::future::Future>::poll::hfd7b5f55694216df
  17:        0x104a62230 - tokio::runtime::task::raw::poll::h6fafa884a8852268
  18:        0x1049a04b0 - std::sys_common::backtrace::__rust_begin_short_backtrace::h89ee2edb543ece40
  19:        0x1049b1a8c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4610c64a5f413727
  20:        0x105cc1bd0 - std::sys::pal::unix::thread::Thread::new::thread_start::hb184f2abd415aef7
  21:        0x198bf1f94 - __pthread_joiner_wake
[Error - 6:09:44 AM] The Deno Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
@ghost
Copy link
Author

ghost commented Sep 15, 2024

I was going to try to localize the change, but changed something while the LSP was down, reloaded my editor, and now things are working again.

Next time I encounter something like this, I'll make a commit right away so we have a reproducible state.

Hopefully, the trace is helpful.

@lucacasonato lucacasonato added bug Something isn't working correctly lsp related to the language server labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly lsp related to the language server
Projects
None yet
Development

No branches or pull requests

2 participants