-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support path attributes that don't end with .rs
#17089
Comments
Relevant docs: https://doc.rust-lang.org/reference/items/modules.html?highlight=%23%5Bpath%20%3D#the-path-attribute and wow I didn't know all of the specifications of the |
I think the issue is not that rust-analyzer doesn't understand such paths. I tried it and got the error but the moment I open the The fix is probably to make R-A request files in |
Yep, it happens here: rust-analyzer/crates/rust-analyzer/src/main_loop.rs Lines 173 to 177 in 55d9a53
|
Workaround for people ending up here
Editors that correctly implement the LSP spec should pick it up and send it to R-A. You'll have to do it each and every time you restart R-A though (quitting and opening the editor will do it for example) |
For example:
rustc main.rs
can compile successfully, but ra will report errors:The text was updated successfully, but these errors were encountered: