Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

RLS Crashing #381

Closed
Closed
@xogeny

Description

@xogeny

I'm currently running rustc 1.20.0-nightly (fc9ccfdbe 2017-06-25). I've run all of the following commands:

$ rustup install nightly
$ rustup default nightly
$ rustup component add rls
$ rustup component add rust-analysis
$ rustup component add rust-src

While running the vscode extension by @KalitaAlexey, I see RLS: Analysis Started followed by RLS: Analysis finished followed by RLS: Crashed.

In the output window I see:

thread '<unnamed>' panicked at 'could not run cargo: CargoError(Internal(Msg("failed to stat `/Users/mtiller/Source/my_proj/target/rls/debug/.fingerprint/rust-fmu-6371c09f679c0ce2/dep-bin-rust_fmu-6371c09f679c0ce2`")), State { next_error: Some(Error { repr: Os { code: 2, message: "No such file or directory" } }), backtrace: Some(stack backtrace:
   0:        0x10a26b2ae - backtrace::backtrace::trace::h50dae19105635900
   1:        0x10a26b44c - backtrace::capture::Backtrace::new::h29841072e5e6e49b
   2:        0x10a26a62d - error_chain::make_backtrace::hcffe27b0755719f7
   3:        0x10a1ad49e - cargo::ops::cargo_rustc::fingerprint::Fingerprint::update_local::ha46d83db51567a2d
   4:        0x10a1b5fd0 - _$LT$F$u20$as$u20$cargo..ops..cargo_rustc..job..FnBox$LT$A$C$$u20$R$GT$$GT$::call_box::h08ed6a3606a529e4
   5:        0x10a1b7345 - _$LT$F$u20$as$u20$cargo..ops..cargo_rustc..job..FnBox$LT$A$C$$u20$R$GT$$GT$::call_box::h9475d96ef80031bf
   6:        0x10a1c3c6e - cargo::ops::cargo_rustc::job_queue::JobQueue::run::_$u7b$$u7b$closure$u7d$$u7d$::h2d10942c5424dabd
   7:        0x10a089673 - _$LT$F$u20$as$u20$crossbeam..FnBox$GT$::call_box::hac838a5c59ecefc8
   8:        0x10a08bd9f - std::panicking::try::do_call::h683e73cdf03313f2
   9:        0x1102d5b5c - __rust_maybe_catch_panic
  10:        0x10a0cda8f - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::h48add3badff46f6a
  11:        0x1102cf6fb - std::sys::imp::thread::Thread::new::thread_start::he5c82b73fbbeead1
  12:     0x7fffa7cfc93a - _pthread_body
  13:     0x7fffa7cfc886 - _pthread_start) })', src/libcore/result.rs:860
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
   1: std::panicking::default_hook::{{closure}}
   2: std::panicking::default_hook
   3: std::panicking::rust_panic_with_hook
   4: std::panicking::begin_panic
   5: std::panicking::begin_panic_fmt
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::result::unwrap_failed
Missing change, aborting. Found 2, expected Some(4)
[Error - 3:26:24 PM] Connection to server got closed. Server will not be restarted.

I've tried removing my target directory completely and rerunning vscode. I still get the same error. BTW, the error message is correct, the file /Users/mtiller/Source/my_proj/target/rls/debug/.fingerprint/rust-fmu-6371c09f679c0ce2/dep-bin-rust_fmu-6371c09f679c0ce2 does not exist. That seems to bring everything crashing down.

Frankly, given all the unique semantics of Rust, I find it nearly impossible to work with it without good IDE support. I simply don't (yet) use it regularly enough to keep all this stuff in my head. This is basically stopping me dead in my tracks. 😢

Any ideas?

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