-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popups about language server requests failing #15957
Comments
The same error happens when working on the open-source
|
+1 to @mmastrac Looks like my server is panicking when trying to execute a query for
|
That is a known issue (we still haven;t found the root cause), usually happens when you add a new dependency. It should suffice to restart the server when you encounter that. (therefor rebasing can definitely cause this as well) |
It may also happen if you start typing right after opening a project. |
It doesn't seem to help. This has been happening repeatedly for weeks. |
Then we'll need to see a repro, to us this is only known as the bug I've described so far. |
I keep having this issue (and restarting the language server or vscode doesn't help). It seems to be possibly related to generated files from prost (a library that generates bindings for protobuf/grpc files). At least rust-analyzer isn't able to complete anything from within those generated files. However rust seems unable to show the hover docs box even for some built in types (specifically But unfortunately the code base is closed source, I will try to find some time to make a smaller test case though. Probably won't happen for a couple of weeks though. |
Actually I did a quick try and you don't need much to get the issues. Attached is a tar.gz of a project that causes the issues. Open the project with vscode and Rust-Analyzer and observe the issues described in comments in main.rs. Notes:
System info
$ code --version
1.85.1
0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
x64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ uname -a
Linux ubuntu-tmgarn 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ cat ~/.cargo/config.toml
[net]
git-fetch-with-cli = true
[build]
rustc-wrapper = "/home/tmgarn/.cargo/bin/sccache"
Finally, here is the project: reproducer.tar.gz |
@Veykril Hi! Did you have time to look at the repro I uploaded? Would be good to know if it reproduces the issue for you too, and that it is not just an issue on my computer. |
I can't reproduce the first two issues. The third one happens for me, but it's unrelated (looks like we can't find But I suspect the second one is timing-dependent. |
@lnicola Ouch, such issues are annoying.
This was actually the first major problem (apart from the error popups) that I noticed from this case. It worked just fine in early november, so it broke since then. But you are saying that is a separate bug apart from the error popups? But the issue doesn't happen in a project without prost generating files, so I would say it is deeply related. |
I think there were some changes (improvements?) to |
There is a known regression wrt to |
The main issue reported is likely the known salsa issue, the include one has been fixed |
now have same question :Request textDocument/inlayHint failed. 😭 |
Every few minutes I keep getting popups in VSCode about
textDocument/documentHighlight
,textDocument/inlayHint
etc failing. The log shows the following:I don't know what exactly I'm doing to make it happen. I think possibly it happens when rebasing things in git in another terminal window sometimes? Sometimes when I'm reading documentation and not doing anything with the code. Sometimes when I'm writing or refactoring code.
It doesn't seem to me like anything is actually broken in the user experience. Apart from the popups themselves that is.
Unfortunately the code base I'm working on that is causing this is not open source (so I can't link it), but it is basically a graph QL micro service that makes GRPC requests as it's backend. It uses axum, tonic, prost, tower, async-graphql and tracing.
rust-analyzer version: 0.3.1740-standalone
rustc version: rustc 1.74.0 (79e9716c9 2023-11-13) (installed with rustup)
OS: Ubuntu 22.04, using KDE Plasma as my desktop environment
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)I am using the following workspace config (this is a mixed language project, only a small part is Rust currently, most of it is legacy C++ with CMake) as there is no Cargo.toml in the workspace root:
In the user level VSCode settings I have:
(the former makes a lot of sense since I tend to write code bottom up and it gets annoying otherwise)
The text was updated successfully, but these errors were encountered: