You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
Adding the default
lib.rs
file in a binary project and importing from it withuse
frommain.rs
reports anunresolved import
error from RLS.Steps to reproduce
cargo init proj_name
main.rs
(RLS initializes)lib.rs
(optionally add a public test function in it)use proj_name::*
(or pub fn name) tomain.rs
What happens
RLS reports
unresolved import 'proj_name'
, whilecargo build
passes without warning.Must
Reload Window
in VSCode to resolve the reported error.What should happen
The import to the project library is resolved. The new file is recognized or
lib.rs
existence is checked onuse <crate name>
Versions
Rust & rls:
1.39.0
&1.39.0 (80a1d34)
VSCode RLS extension:
0.7.0
Platform
Win 10 + WSL2 (RLS on Ubuntu 18.04)
The text was updated successfully, but these errors were encountered: