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

Errors should move when editing the document #197

Closed
erikschul opened this issue Feb 23, 2024 · 2 comments
Closed

Errors should move when editing the document #197

erikschul opened this issue Feb 23, 2024 · 2 comments

Comments

@erikschul
Copy link

After editing a document, the errors will still show on the previous line number, instead of moving.

Would it be possible to detect line changes and shift the errors?

Example: before
image

Example: after
Expected: error should show on line 17
image

@usernamehw
Copy link
Owner

I would need steps to reproduce the issue (to fix). Decorations usually follow errors properly.

@usernamehw usernamehw closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@stefnotch
Copy link

@erikschul I believe this is a rust-analyzer issue. This happens when rust-analyzer executes cargo check and reports the errors in the UI. Then, when editing the file, rust-analyzer only has the old cargo check results to work with.

rust-lang/rust-analyzer#4056

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

No branches or pull requests

3 participants