Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RA error remains on commented-out line #18856

Closed
reisnera opened this issue Jan 6, 2025 · 2 comments
Closed

RA error remains on commented-out line #18856

reisnera opened this issue Jan 6, 2025 · 2 comments
Labels
C-bug Category: bug

Comments

@reisnera
Copy link

reisnera commented Jan 6, 2025

rust-analyzer version: rust-analyzer version: 0.4.2248-standalone [/home/alex/.vscode/extensions/rust-lang.rust-analyzer-0.4.2248-linux-x64/server/rust-analyzer]

rustc version: rustc 1.83.0 (90b35a623 2024-11-26)

editor or extension: VSCode extension 0.4.2248

relevant settings: "rust-analyzer.check.command": "clippy"

code snippet to reproduce:

fn go() -> Vec<u32> {
    let v: Vec<u32> = Vec::new();
    // v.iter()
    v
}

If I take the above snippet and uncomment the commented line, I understandably get an error. If I recomment it without saving, it goes away. If I uncomment the line and then save, the RA error persists no matter what I do, and I would have to re-comment the line and reload RA to get it to return to normal.

I think I'm hitting this error extremely frequently in more complicated cases that don't involve commented lines, but I'm starting here...

@reisnera reisnera added the C-bug Category: bug label Jan 6, 2025
@mrijken
Copy link

mrijken commented Jan 6, 2025

I have got the same issue. Downgrading to 0.3.2247 does not work. Downgrading to 0.3.2237 fixes the issue

@ChayimFriedman2
Copy link
Contributor

Duplicate of #18854.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants