-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Rust analyzer showing non existent errors #20962
-
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments · 10 replies
-
|
Is your project public on the internet or could you share rust-analyzer output logs and your cargo configs( |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
My .cargo dir has no config.toml file This is rust-analyzer output when running VS Code Language server output: rust-analyzer extension output: |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Seems like a similar issue with #20813 |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Managed to find the cargo config tried setting the target for rust-analyzer in settings.json but no success |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
BTW, RustRover and IntelliJ Rust Plugin are different things from rust-analyzer. Are you having the same problem with rust-analyzer? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
When i use another editor that uses rust-analyzer the same thing happens |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Could you let me know your environments like editor, rust-analyzer version and rust toolchain version and could you share your project if possible? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
i put everything here: https://github.com/ZoutigeWolf/s40-hardware VS Code |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
|
Thanks! I'll look into it! |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Thank you! |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@ShoyuVanilla Apparently all errors happened because my code was located in |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
That's great. But since the previous project structure built well I'll check whether that is a bug in rust-analyzer anyway 😅 |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I dont think its a bug. The build still worked because my target points to main.rs, which includes the submodules via it will only fail when running just |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1


@ShoyuVanilla Apparently all errors happened because my code was located in
src/bin/, moving all files to justsrc/fixed all errors.