Failing Rust Analyzer; no more type nor function def in editor!
When switching tabs, with each tab containing a different programming language (ex. Rust and GLSL), the rust analyzer seems to stop working.
Observed issues
When hovering over a function or a type or anything in rust, no feedback is received, and no definition is provided.
When trying to {Command + Click} functions, nothing happens.
The issue appears either when I use the terminal, to cargo run --release for instance, or when I switch tabs containing different languages.
Behavior before/after
I started noticing this issue recently, maybe after the 0.151.1 or 0.151.2 update
Before, i had seen rust analyzer say something like "failed to autoupdate," but it never caused the described issues. This is now rare to see, but now i get the described issues; maybe there's a link?
Workarounds
The only workaround i found is to restart Zed and stay in one file. This is extremely annoying, as you can imagine.
Environment
Model Name: MacBook Air
Model Identifier: Mac14,2
Model Number: MLY13LL/A
Chip: Apple M2
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 8 GB
System Firmware Version: 10151.140.19
OS Loader Version: 10151.140.19
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Note: I have a similar problem, restarting the language server works until it fails again (I'm using a C+Rust+Python repository, mostly switching between C and Rust).
restart via Ctrl-Alt-P and "editor: restart language server" (I'm on linux)
Check for existing issues
Describe the bug / provide steps to reproduce it
Failing Rust Analyzer; no more type nor function def in editor!
When switching tabs, with each tab containing a different programming language (ex. Rust and GLSL), the rust analyzer seems to stop working.
Observed issues
cargo run --release
for instance, or when I switch tabs containing different languages.Behavior before/after
Workarounds
Environment
Model Name: MacBook Air Model Identifier: Mac14,2 Model Number: MLY13LL/A Chip: Apple M2 Total Number of Cores: 8 (4 performance and 4 efficiency) Memory: 8 GB System Firmware Version: 10151.140.19 OS Loader Version: 10151.140.19
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log