rust-analyzer: [VSCode] Request textDocument/semanticTokens/full failed.

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.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 12
  • Comments: 16 (5 by maintainers)

Most upvoted comments

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.

I think WSL has to be updated separately.

On Wed, Sep 16, 2020, 7:58 PM fuyu notifications@github.com wrote:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rust-analyzer/rust-analyzer/issues/5998#issuecomment-693727336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBACRG6ACBIMWQ6QAYF2NDSGFGJXANCNFSM4RLRFMRA .