helix icon indicating copy to clipboard operation
helix copied to clipboard

Crash with Deno LSP on Windows when searching project symbols

Open bpollack opened this issue 6 months ago • 4 comments

Summary

When I open a Deno project, using the Deno LSP, and attempt to navigate to a symbol (i.e. <Space>S) on Windows, Helix crashes with the following error:

thread 'main' panicked at helix-term\src\commands\lsp.rs:184:44:
called `Result::unwrap()` on an `Err` value: ()

The stack trace with RUST_BACKTRACE set full doesn't yield any symbols (it's just memory addresses bottoming out at BaseThreadInitHunk)

Reproduction Steps

I tried this:

  1. Set up a Deno project with Helix. You can use https://git.sr.ht/~bmp/hayom if you want one that's already set up
  2. Open any file in the project
  3. Hit <Space>S to open the workspace symbol picker
  4. Helix will crash

Note that this does not happen on macOS or Linux, just Windows.

I'm using Deno 1.45.4 for this test.

Helix log

Backtrace:

thread 'main' panicked at helix-term\src\commands\lsp.rs:184:44:
called `Result::unwrap()` on an `Err` value: ()
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

(Running with RUST_BACKTRACE=full, as noted, just prints out memory addresses with no symbols.)

~/.cache/helix/helix.log

I can't fit the log here; it's over the length limit with the above repro steps due to the symbol dump getting in there. I'm happy to provide it on request.

Platform

Windows

Terminal Emulator

Windows Terminal

Installation Method

scoop

Helix Version

24.7

bpollack avatar Jul 31 '24 14:07 bpollack