Skip to content

lens-mode / inlayHints broken with rust-analyzer since 2022-03-04 #3403

Closed
@rksm

Description

@rksm

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

No inlay hints are displayed when using lsp-mode + lsp-lens-mode with rust-analyzer since rust-lang/rust-analyzer#11445. lsp-log reports

[Trace - 06:19:24 PM] Received response 'rust-analyzer/inlayHints - (204)' in 23ms.
Result: {
  "message": "unknown request",
  "code": -32601
}

as the inlayHints method was renamed to experimental/inlayHints and has apparently gotten some semantic changes.

Steps to reproduce

install latest lsp-mode + rust-analyzer,

    let x = 123;

should have a type annotation.

Expected behavior

inlay hints are shown.

Which Language Server did you use?

rust-analyzer

OS

MacOS

Error callstack

[Trace - 06:19:24 PM] Received response 'rust-analyzer/inlayHints - (204)' in 23ms.
Result: {
  "message": "unknown request",
  "code": -32601
}

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions