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

Same workspace projects not detecting changes (maybe unrelated to workspace) #498

Open
@jamesmahler

Description

@jamesmahler

Something seems overly cached and isn't picking up changes.

Make lib project A. in lib.rs, put a pub enum ASDF with ONE and TWO. Make a pub BOTH: [ONE, TWO].

Make project B with dependency to ../libproject in cargo.toml. in main.rs, for loop over &BOTH.

Open with VS code, putting both in workspace.

goto lib.rs, change to BOTH = &[ONE, TWO]
goto main.rs, change for loop to loop over BOTH

This builds fine with cargo. The for loop BOTH will have red squiggle and will show up in problems view.

If you close code, and restart it... it will no longer be marked red or a problem. If you then remove the & in lib and add in main, it will be red again until restart, but cargo commands will still be successful.

This could be unrelated to workspace, and just be a general problem with doing dependency with ../libproject. Maybe RLS stuff assumes dependencies can't change after startup?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions