Skip to content

Crash with Deno LSP on Windows when searching project symbols #11391

Open
@bpollack

Description

@bpollack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-commandArea: CommandsC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions