Skip to content

fix: Stale diagnostics when a custom check command is configured#21738

Open
Wilfred wants to merge 1 commit intorust-lang:masterfrom
Wilfred:custom_check_command_stale_diagnostics
Open

fix: Stale diagnostics when a custom check command is configured#21738
Wilfred wants to merge 1 commit intorust-lang:masterfrom
Wilfred:custom_check_command_stale_diagnostics

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Mar 3, 2026

We can't use the flycheck scope, because that value varies depending on how the flycheck was triggered. See also #21571, which was reverted due to issues with scope.

Instead, treat empty diagnostics as a flycheck for the entire workspace, add comments explaining the JSON diagnostic format, and add an integration test.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 3, 2026
@rustbot

This comment has been minimized.

@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 350b5c3 to 6acb298 Compare March 3, 2026 14:19
@rustbot

This comment has been minimized.

@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 6acb298 to 601f76c Compare March 3, 2026 14:21
@rustbot

This comment has been minimized.

We can't use the flycheck scope, because that value varies depending
on how the flycheck was triggered. See also rust-lang#21571, which was reverted
due to issues with scope.

Instead, treat empty diagnostics as a flycheck for the entire
workspace, add comments explaining the JSON diagnostic format, and add
an integration test.
@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 601f76c to 9b636b4 Compare March 3, 2026 14:28
@rustbot
Copy link
Collaborator

rustbot commented Mar 3, 2026

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

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

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants