-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Request textDocument/semanticTokens/full/delta failed. #17017
Comments
CC @dfireBird |
@dfireBird hovering basically anything here in main crashes it immediately: https://github.com/CryZe/livesplit-icon-generator |
Thanks I was able to get the error now. |
Thanks to that I was able to create minimal code to reproduce: pub struct Writer {}
pub trait Value {}
impl Writer {
pub fn tag_with_content<
'a,
I: IntoIterator<Item = (&'a str, impl Value)>,
>(
&mut self,
tag: &str,
attributes: I,
) {
}
}
fn foo() {
let writer: Writer = Writer;
writer.tag_with_content(tag, attributes);
//^ the r-a panics here while inferring this method call
} and I also found the reason why the error happens, it's because of improper index set for lifetimes and generics (both have same index when it should be different). Unfortunately, I don't have a solution yet, once I do I'll try to create a PR. |
I am also getting this (pretty much constantly) but my stack is a bit different:
rust-analyzer version: 0.4.1909-standalone |
Can you please provide a minimal code where the error/panic happens? |
Unfortunately that's going to be pretty difficult to do but I think it's reasonable to assume it's the same root cause as the other stack which you've already got a repro for. |
I too am getting the
error constantly. Stack trace below, same file and line/col numbers for origination at least but that might just be a common entry point or something. Where @Edgeworth's stack trace is from "highlighting", mine seems to be on "diagnostics". Reproducible code might be a problem as it's occurring in a proprietary/closed-source repository.
|
I installed |
Yes, the issue can be triggered by a variety of server features, a fix is work in progress so if this impacts you please downgrade to an earlier version for the time being. |
I bisected this to: #16805
rust-analyzer version: 0.3.1906-standalone (e4a405f 2024-03-31)
rustc version: rustc 1.77.0 (aedd173a2 2024-03-17)
editor or extension: VSCode
repository link (if public, optional): https://github.com/LiveSplit/livesplit-core
code snippet to reproduce:
I don't have a particular code snippet. I'll try to minimize it soon.
Panic:
The text was updated successfully, but these errors were encountered: