rust-lang / rust-lang/rust-analyzer

Go to definition on std types locks rustc

Open
#14,428 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

rust-analyzer version: rust-analyzer 1 (825833c26 2023-03-19)

rustc version: rustc 1.62.1 (e092d0b6b 2022-07-16)

relevant settings: defaults

When I use go to definition on something like Mutex, cargo run and cargo check does not work anymore and it prints this message only: Blocking waiting for file lock on package cache. I'm assuming that rust-analyzer keeps running even after closing the editor and blocks the package cache?

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

Reproduce the issue by using Go to Definition on a standard type such as Mutex with rust-analyzer 825833c26 and rustc 1.62.1, then run cargo check or cargo run. Investigate why the package cache file lock remains blocked after the editor is closed; done means these commands work normally after the navigation action.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.