sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer
MIT License
70 stars 11 forks source link

InlayHints broken after change to rust-analyzer #63

Closed chriswolfram closed 2 years ago

chriswolfram commented 2 years ago

After a recent update, inlayHints don't appear for me, and I can see this message in the logs:

rust-analyzer: [ERROR rust_analyzer::dispatch] unknown request: Request { id: RequestId(I32(5)), method: "rust-analyzer/inlayHints", params: Object({"textDocument": Object({"uri": String("file:///Users/christopher/git/bitcoin-rs-experiments/src/main.rs")})}) }

I posted a question on the Rust forum, and got a response from somebody who appears to work on rust-analyzer who said: "Rust-analyzer moved from it's own extension for inlay hints to the upstream LSP support for inlay hints. The rust extension for Sublime Text will need to be updated for this."

See https://users.rust-lang.org/t/unknown-request-rust-analyzer-inlayhints-in-sublime/74418

Just posting to make sure this issue is known by the LSP-rust-analyzer developers.

chriswolfram commented 2 years ago

Fixed by v.1.0.4 which reverts rust-analyzer to a version that doesn't use the new interface for type hints.