Adding the default lib.rs file in a binary project and importing from it with use from main.rs reports an unresolved import error from RLS.
cargo init proj_namemain.rs (RLS initializes)lib.rs (optionally add a public test function in it)use proj_name::* (or pub fn name) to main.rsRLS reports unresolved import 'proj_name', while cargo build passes without warning.
Must Reload Window in VSCode to resolve the reported error.
The import to the project library is resolved. The new file is recognized or lib.rs existence is checked on use <crate name>
Rust & rls: 1.39.0 & 1.39.0 (80a1d34)
VSCode RLS extension: 0.7.0
Platform Win 10 + WSL2 (RLS on Ubuntu 18.04)
Failed to reproduce on rls nightly-2019-12-12.
Is this fixed in 0.7.0 or will we need to wait for another update? I'm still experiencing this issue.
Still experiencing issue in v0.7.8, reload still corrects issue.
Same here, reloading fixes the issue.
Most helpful comment
Is this fixed in 0.7.0 or will we need to wait for another update? I'm still experiencing this issue.