rust-lang / rust-lang/rust-analyzer
Blocking waiting for file lock on package cache when using cargo after hung rust-analyzer process
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
rust-analyzer version: rust-analyzer version: 0.3.1435-standalone (f1e51afa4 2023-03-12)
rustc version: rustc 1.68.0 (2c8cc3432 2023-03-06)
relevant settings: I just installed rust on my M1 Macbook, so everything is default
There seems to be a bug with the background process for cargo triggered by the rust analyzer extension. The process launches buts seems to never be finished and is blocking my use of cargo build
See https://users.rust-lang.org/t/blocking-waiting-for-file-lock-on-package-cache/72620 as reference, same error.
I could bypass this by killing the cargo processes from macOS' Activity Monitor, but this bug can reoccur and could be tracked for a fix.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is identified in the issue. Start by reproducing the rust-analyzer background cargo process on the reported macOS setup, then inspect how it leaves the package-cache lock held; done means a subsequent cargo build is no longer blocked after the background process finishes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100