bazelbuild / bazelbuild/rules_rust

VSCode integration: the last "check" diagnostic lingers after getting fixed.

Open
#3,846 2 comments 1 reaction 0 assignees View on GitHub
awaiting-response expert-needed rust-analyzer
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

I'm using rules_rust in a cargoless setup with VSCode as the editor.

I generate rust-project.json using .vscode/tasks.json.

I also want "check" warnings such as "symbol unused". I've set that up with

```
{
"rust-analyzer.check.overrideCommand": [
"bazel",
"build",
"//...",
"--@rules_rust//:error_format=json",
]
}
```

This works well. However, when there is a single diagnostic and I fix it, that diagnostic keeps being reported. The only ways to make it go away are to:
* restart the editor
* add a new issue -- that will replace the lingering one, but that will linger in turn!

You can find a full repro + a video showcasing the issue at https://github.com/brunal/bazel-rust-analyzer-test/tree/master.

I wonder if, in the absence of issues, a "all is fine" message should be emitted.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.