rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.27k stars 1.61k forks source link

Go to definition on std types locks rustc #14428

Open daalfox opened 1 year ago

daalfox commented 1 year ago

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?

ayangweb commented 5 months ago

rust-analyzer version: rust-analyzer 1 (825833c 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?

Hey, did you solve this problem? If you solved it, is it convenient to share the solution?

Veykril commented 5 months ago

Invoking go to definition does not invoke any rustc/cargo process so that causing the lock to be taken is unlikely