rust-lang / rust-lang/rust-analyzer

Blocking waiting for file lock on package cache when using cargo after hung rust-analyzer process

Open
#14,351 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.