Skip to content

Crashes every time in a specific project (VSCode) #5125

Closed
@Dzejkop

Description

@Dzejkop

Every single time rust-analyzer starts for this project it displays the notification

The Rust Analyzer Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.

and in the logs there appear a bunch of entries like this one:

thread 'main' panicked at 'expected absolute path, got ', crates/paths/src/lib.rs:63:36
stack backtrace:
   0: <unknown>
   1: core::fmt::write
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: std::panicking::begin_panic_fmt
   8: <unknown>
   9: paths::AbsPathBuf::assert
  10: ra_project_model::cargo_workspace::CargoWorkspace::from_cargo_metadata
  11: ra_project_model::ProjectWorkspace::load
  12: <unknown>
  13: <unknown>
  14: rust_analyzer::main_loop::main_loop
  15: <unknown>
  16: <unknown>
  17: std::rt::lang_start_internal
  18: <unknown>
  19: __libc_start_main
  20: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Error - 4:56:35 PM] Connection to server got closed. Server will not be restarted.

Funny enough thisonly seems to affect one specific project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions