rust-lang / rust-lang/rust-analyzer

Cancel Clippy/Check When Running Test

Open
#18,515 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-cargo C-feature
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

When using VS Code, I regularly find myself in a workflow where I'm writing tests, making adjustments, and running the tests. In this scenario I regularly find myself in a situation where my test run is temporarily blocked by Cargo because a cargo check or cargo clippy is still running.

If my understanding is correct, both the request for running the test and the request for Clippy is submitted by Rust Analyzer. Would it be possible for Rust Analyzer to prioritize the test run so I don't have to wait for Clippy to finish first? I would even be content if it means killing the Clippy request and restarting it when the test run is complete.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Rust Analyzer schedules requests for running tests, cargo check, and cargo clippy. Determine where a test request waits on an active check or Clippy request, then verify that tests can run without that blockage and that Clippy resumes or restarts afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.