Skip to content

Zombie error messages after deleting the file that was a source of these errors. #7004

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

Closed
staninprague opened this issue Dec 22, 2020 · 0 comments · Fixed by #12383
Closed
Labels
A-diagnostics diagnostics / error reporting S-actionable Someone could pick this issue up and work on it right now

Comments

@staninprague
Copy link

At some moment I had a genuine "Unresolved module" error reported by rust-analyzer in the "PROBLEMS" window for my file with name mod.rs. I was doing "pub mod xyz" where xyz did not exist.
I deleted the mod.rs file, but error stayed in the PROBLEMS pane and tapping on it was producing a message "Unable to open 'mod.rs'. See attached screenshot.
I'm not sure if this is a common problem with errors for a file not being cleared on file deletion or this is just some particular instance I ran into.

Restarting VSCode clears the error.

rust-analyzer-zombie-errror-on-file-deletion

@lnicola lnicola added the S-actionable Someone could pick this issue up and work on it right now label Dec 22, 2020
@lnicola lnicola added the A-diagnostics diagnostics / error reporting label Jan 22, 2021
@bors bors closed this as completed in c13f04d May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics diagnostics / error reporting S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants