Skip to content

No code actions available - Insert mod cows; - extension functionality regression #19797

Closed
@TeamDman

Description

@TeamDman

Rust-analyzer is broken and no longer suggests to add mod statements.

Expected

Image

Currently failing with latest extension version

Image

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

Activity

TeamDman

TeamDman commented on May 15, 2025

@TeamDman
Author

Temporary fix: switch to previous version

Image

pick 0.3.2449

Image

ChayimFriedman2

ChayimFriedman2 commented on May 15, 2025

@ChayimFriedman2
Contributor

Works fine for me.

ZhangXiChang

ZhangXiChang commented on May 17, 2025

@ZhangXiChang

I have the same problem

ChayimFriedman2

ChayimFriedman2 commented on May 18, 2025

@ChayimFriedman2
Contributor

Can you try disabling all other extension? (Just a guess).

EnderHane

EnderHane commented on May 24, 2025

@EnderHane

I have the same problem

TeamDman

TeamDman commented on Jun 20, 2025

@TeamDman
Author

Latest version working fine :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @TeamDman@ChayimFriedman2@EnderHane@ZhangXiChang

        Issue actions

          No code actions available - Insert `mod cows;` - extension functionality regression · Issue #19797 · rust-lang/rust-analyzer