-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
"unresolved import" #6278
Comments
Looks like |
https://github.com/bitshifter/glam-rs/blob/d1b83da533c5ddb161f2da4d76faa33607d59c67/build.rs#L16 That |
Shouldn't they work by https://github.com/rust-analyzer/rust-analyzer/blob/1b3b8c7/crates/project_model/src/cargo_workspace.rs#L314-L326 (if |
@tigregalis can you try enabling |
It enables build script support, which makes those |
Ok, thanks. I'll close the issue. It could be worth documenting though. |
Could you please tell me how to enable this? |
It's called |
I'm using Windows 10 Home version 1903, and Visual Studio Code 1.50.0, and rust-analyzer VS code extension version 0.2.344. I wasn't able to work out how to find the version of ra_lsp_server that's running.
I've seen this problem in a clone of the bevy repo at https://github.com/bevyengine/bevy . I'm seeing the below error in my "Problems" pane, but the project compiles fine (and using
cargo check
in the terminal doesn't warn us about anything).bevy_math::Vec4
is ultimately a re-export ofglam::f32::Vec4
, but it sits alongsidebevy_math::Vec3
which is ultimately a re-export ofglam::f32::Vec3
which it doesn't have a problem resolving.I've tried:
use
lines to trigger a re-check - doesn't fix it, which means it doesn't look like these are "stale" as per VS Code problem list is stale, even after "Rust Analyzer: Restart Server" #4073, but thatcargo check
is finding a problem in rust-analyzer, but not in the terminalVec4
vsVec3
to trigger a re-check - rust-analyzer continues to point toVec4
being unresolved, now in its new position, confirming this isn't "stale"crates\bevy_render\color.rs
and saved it, which reproduced this behaviourHaving opened my local copy of the
glam
source in my.cargo
, I'm now seeing the behaviour there.Other issues that may or may not be related: #6258, #6063, #6038
I was able to trivially reproduce this - see repo https://github.com/tigregalis/glam-breaks-ra:




The text was updated successfully, but these errors were encountered: