Closed
Description
Rust-analyzer is broken and no longer suggests to add mod statements.
Expected
Currently failing with latest extension version
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.2457-standalone (2bafe9d 2025-05-10)
rustc version: (eg. output of rustc -V
)
rustc 1.88.0-nightly (d6c1e454a 2025-04-21)
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)
WORKS
Name: rust-analyzer
Id: rust-lang.rust-analyzer
Description: Rust language support for Visual Studio Code
Version: 0.3.2449
Publisher: The Rust Programming Language
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
FAILS
Name: rust-analyzer
Id: rust-lang.rust-analyzer
Description: Rust language support for Visual Studio Code
Version: 0.3.2457
Publisher: The Rust Programming Language
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
Name: rust-analyzer
Id: rust-lang.rust-analyzer
Description: Rust language support for Visual Studio Code
Version: 0.4.2461
Publisher: The Rust Programming Language
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
relevant settings: (eg. client settings, or environment variables like CARGO
, RUSTC
, RUSTUP_HOME
or CARGO_HOME
)
repository link (if public, optional): (eg. rust-analyzer)
code snippet to reproduce:
Summary
\repos\rust-analyzer-fail\src\main.rs
fn main() {
println!("Hello, world!");
}
\repos\rust-analyzer-fail\Cargo.toml
[package]
name = "rust-analyzer-fail"
version = "0.1.0"
edition = "2024"
[dependencies]
\repos\rust-analyzer-fail\src\cows\mod.rs
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
TeamDman commentedon May 15, 2025
Temporary fix: switch to previous version
pick
0.3.2449
ChayimFriedman2 commentedon May 15, 2025
Works fine for me.
ZhangXiChang commentedon May 17, 2025
I have the same problem
ChayimFriedman2 commentedon May 18, 2025
Can you try disabling all other extension? (Just a guess).
EnderHane commentedon May 24, 2025
I have the same problem
TeamDman commentedon Jun 20, 2025
Latest version working fine :D