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
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
VSCode
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)
See below
repository link (if public, optional): (eg. rust-analyzer)
After painfully slow full RA server restart, RA complain.
error[E0433]: failed to resolve: could not find `wasm32` in `arch`
--> src/lib.rs:39:17
|
39 | core::arch::wasm32::unreachable();
| ^^^^^^ could not find `wasm32` in `arch`
loynoir
changed the title
rust analyzer handle multi target_arch incorrectly
rust analyzer handle multi target_arch incorrectly, and should provide reload config command
Feb 12, 2025
rust-analyzer only considers the first target, it is unlikely that we will ever be able to support multiple targets in a workspace due to how cfgs work in Rust.
rust analyzer handle multi target_arch incorrectly
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 1.86.0-nightly (b3b368a 2025-01-05) [/home/vscode/.rustup/toolchains/nightly-2025-01-06-x86_64-unknown-linux-gnu/bin/rust-analyzer]
rustc version: (eg. output of
rustc -V
)rustc 1.86.0-nightly (b3b368a18 2025-01-05)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
VSCode
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)See below
repository link (if public, optional): (eg. rust-analyzer)
code snippet to reproduce:
Given code
Given layout and vscode config
When
path/to/wasm/crate/.cargo/config.toml
Given code works fine.
When
path/to/wasm/crate/.cargo/config.toml
changed toAfter painfully slow full RA server restart, RA complain.
Change back to
After painfully slow full RA server restart, RA does not complain.
Given code works fine.
Conclusion
RA should handle multi target_arch correctly
RA should also provide reload config command, because fully restart server is painfully slow
The text was updated successfully, but these errors were encountered: