Skip to content
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

[VSCode] Request textDocument/semanticTokens/full failed. #5998

Closed
owen-hope opened this issue Sep 14, 2020 · 17 comments
Closed

[VSCode] Request textDocument/semanticTokens/full failed. #5998

owen-hope opened this issue Sep 14, 2020 · 17 comments

Comments

@owen-hope
Copy link

Just updated my vscode to the August 1.49v and now I am getting this error show up every time I open a file or try to type in one:

[ERROR rust_analyzer::dispatch] unknown request: Request { id: RequestId(U64(71)), method: "textDocument/semanticTokens/full", params: Object({"textDocument": Object({"uri": String("file:///Users/ohope/develop/fresnel/fresnel-code/trace/packet-handling-rust-logic/src/parasitic_trace.rs")})}) } [Error - 8:18:37 AM] Request textDocument/semanticTokens/full failed. Message: unknown request Code: -32601

This is on a mac.

@lnicola
Copy link
Member

lnicola commented Sep 14, 2020

That's a mismatch between the Code extension and the LSP binary. Did you build rust-analyzer from source? You might have an older version floating around.

@owen-hope
Copy link
Author

@lnicola Nope, I downloaded the extension right from vscode.

@guzongmin
Copy link

Same issue

1 similar comment
@shenshouer
Copy link

Same issue

@hammypants
Copy link

hammypants commented Sep 15, 2020

Mine is not failing on Windows, but with Sept 14th nightly it has gotten to be extremely slow. On the order of 5-15s per request for semanticTokens/full and codeAction.

I should note it did not do this on nightly of Sept 13.

In my case I got to try this on an older VSCode setup and it still is still very slow, so I opened a diff issue.

@kjeremy
Copy link
Contributor

kjeremy commented Sep 15, 2020

@owen-hope Can you post the extension and server version numbers? You say you have the latest version of rust-analyzer extension but do you have the latest server binary?

@fuyumatsuri
Copy link

I'm seeing the same thing on windows with current version of the extension (0.2.313, stable channel) and the server binary that was auto downloaded/included.

~\AppData\Roaming\Code\User\globalStorage\matklad.rust-analyzer 
> .\rust-analyzer-windows.exe --version
rust-analyzer ac4b134

@kjeremy
Copy link
Contributor

kjeremy commented Sep 16, 2020

ac4b134 is the 2020-08-30 release of the rust-analyzer binary. The semantic tokens change for both client and server was merged in after that in #5930.

@fuyumatsuri
Copy link

It seems in my case, state.serverVersion was somehow set to 0.2.313 even though the server binary wasn't actually updated. I forced the extension to download an updated version anyways, and that has fixed it for me.

I'm not really sure how I got in this state, but one "suspicious" thing might be that before updating my vscode from last weeks version, I installed WSL and installed the vs code extension in it. Using the extension under WSL does seem to have a separate globalState than using it under the host windows, so that shouldnt be the cause, but you never know.

@kjeremy
Copy link
Contributor

kjeremy commented Sep 17, 2020 via email

@owen-hope
Copy link
Author

The issue seemed to be resolved when I quit vscode and had a new update for the rust-analyze to v0.2.313

@kjeremy
Copy link
Contributor

kjeremy commented Sep 17, 2020

@shenshouer @fuyumatsuri @guzongmin

Do you still see this?

@guzongmin
Copy link

@shenshouer @fuyumatsuri @guzongmin

Do you still see this?
Thanks. It works now.

@shenshouer
Copy link

It worked after I reinstall rust-analyzer

@Joneyao
Copy link

Joneyao commented Jul 13, 2022

It also worked just restart rust-analyzer.

@briankung
Copy link

briankung commented Dec 29, 2023

I've been getting this error for the past few weeks. I've tried restarting and reinstalling rust analyzer as well as updating VS Code. I'm on a Mac.

@towry
Copy link

towry commented Jul 14, 2024

Keep getting this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants