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
When a file is opened that belongs to a project but iscfg-disabled on the current configuration, RA shows a warning:
"This rust file does not belong to a loaded cargo project. It looks like it might belong to the workspace at /home/r/src/rust/compiler-builtins/Cargo.toml, do you want to add it to the linked Projects?"
However clicking the "yes" button does not help; it will add the project and then still show the same warning again next time. It will even show the warning when that exact project file has already been added, or when it is the "root" project file that is added by default when the list is empty.
This is easily reproduced for instance in the compiler-builtins crate, in files like src/mem/impls.rs or src/arm_linux.rs.
Maybe it would make sense to do a quick check whether the Cargo.toml file it suggests is already loaded, and only show the warning when it is not?
@Veykril so this should be closed I guess if the notification does not appear any more?
OTOH, the bug in "untracked files" tracking may still be present and it seems worth keeping a record of that somewhere.
When a file is opened that belongs to a project but is
cfg
-disabled on the current configuration, RA shows a warning:"This rust file does not belong to a loaded cargo project. It looks like it might belong to the workspace at /home/r/src/rust/compiler-builtins/Cargo.toml, do you want to add it to the linked Projects?"
However clicking the "yes" button does not help; it will add the project and then still show the same warning again next time. It will even show the warning when that exact project file has already been added, or when it is the "root" project file that is added by default when the list is empty.
This is easily reproduced for instance in the compiler-builtins crate, in files like src/mem/impls.rs or src/arm_linux.rs.
Maybe it would make sense to do a quick check whether the Cargo.toml file it suggests is already loaded, and only show the warning when it is not?
rust-analyzer version: rust-analyzer version: 0.3.1748-standalone
rustc version: rustc 1.76.0-nightly (b10cfcd65 2023-11-29)
relevant settings: -
The text was updated successfully, but these errors were encountered: