theia: Activating extension rust-analyzer failed: vscode.languages.registerDocumentSemanticTokensProvider is not a function.

Description

The rust-analyzer extension requires functions that are not yet implemented by Theia

Reproduction Steps

Download rust-analyzer.vsix from https://github.com/rust-analyzer/rust-analyzer/releases/tag/2020-04-13

Copy it to the plugins folder in theia’s git tree

Also download the rust-analyzer-linux binary and name it rust-analyzer and make sure it’s in Theia’s server process PATH variable

run: $ yarn start:browser

Open http://localhost:3000 in your browser

Open a rust project, e.g. cargo init in a folder

Or clone some Rust project such as: https://github.com/yewstack/yew

OS and Theia version:

a187f0141015f3e00e0844bec10dd9c97414b7ec Fedora on ppc64le (architecture not relevant to the bug, don’t worry)

Diagnostics:

An error message appears on the bottom right:

“Activating extension rust-analyzer failed: vscode.languages.registerDocumentSemanticTokensProvider is not a function.”

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I’m not sure if I can help with upgrade Monaco this time - I have scheduled issues for the nearest sprint…

@RomanNikitenko No, we don’t. I am just brining attention that some stuff does not work without latest Monaco. Personally I’m preparing to work on https://github.com/eclipse-theia/theia/issues/7100 But I am not sure when it happens, so if in the meantime someone wants to make the upgrade old way it is fine.

ok, we will investigate later, thank you for reporting!

But it seems to work anyways, maybe it tries to register it twice.