Skip to content

Path attribute showing "unresolved module" #6425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Dhs92 opened this issue Oct 31, 2020 · 2 comments
Closed

Path attribute showing "unresolved module" #6425

Dhs92 opened this issue Oct 31, 2020 · 2 comments

Comments

@Dhs92
Copy link

Dhs92 commented Oct 31, 2020

#[cfg_attr(windows, path = "os/windows.rs")]
#[cfg_attr(target_os = "linux", path = "os/linux.rs")]
mod os;

Is showing unresolved module, while the program compiles without error using cargo build

rust-analyzer version: v0.2.360
Visual Studio Code version: 1.50.1

@Dhs92
Copy link
Author

Dhs92 commented Nov 4, 2020

Still occurring on v0.2.368

#[path="foo.rs"] appears to work as intended, but conditional paths do not.

Edit: Here's a verbose trace from loading the project
https://hastebin.com/xudesuyojo.log

@flodiebold
Copy link
Member

Duplicate of #5548.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants