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 only compiles the first member of a Cargo workspace #876

Closed
rust-lang/cargo
#5830
@jnicholls

Description

@jnicholls

I open my Cargo workspace into VSCode (just as a directory, not as an official project or workspace or anything) and RLS will compile and check all members of the Cargo workspace as its first action. However after that, with code changes et al, only the first member of the workspace is inspected. That is, I only see in the bottom left status the first member get recompiled, but not any of the other members including the ones into which I am writing intentional syntax errors to test :) If I do syntax errors in the first member, RLS picks them up and reports them accordingly.

I am also seeing this output regularly:

thread 'request-worker-1' panicked at 'called `Result::unwrap()` on an `Err` value: DoesNotExist("undefined/lib/rustlib/src/rust/src")', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'request-worker-4' panicked at 'Once instance has previously been poisoned', libstd/sync/once.rs:315:21
thread 'request-worker-2' panicked at 'Once instance has previously been poisoned', libstd/sync/once.rs:315:21

I get those request-worker-N panicked messages a lot, every time I type and RLS tries to do type completion it seems.

Also these every time I type:

error: expected one of `,` or `as`, found `::`
 --> bogofile:2:13
  |
2 | 	collections::HashMap,
  | 	           ^^

error: expected one of `,` or `as`, found `::`
 --> bogofile:2:13
  |
2 | 	collections::HashMap,
  | 	           ^^

error: expected one of `,` or `as`, found `::`
 --> bogofile:2:13
  |
2 | 	collections::HashMap,
  | 	           ^^

error: expected one of `,` or `as`, found `::`
 --> bogofile:2:13
  |
2 | 	collections::HashMap,
  | 	           ^^

error: expected one of `,` or `as`, found `::`
 --> bogofile:2:13
  |
2 | 	collections::HashMap,
  | 	           ^^

error: expected one of `,` or `as`, found `::`
 --> bogofile:2:13
  |
2 | 	collections::HashMap,

The RLS that is running is from the nightly toolchain, installed today. Any ideas why I would be seeing these issues? The workspace itself is not that large or special. I am surprised these problems aren't being seen by others as they seem fundamental and are happening on a fresh install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions