Skip to content

No paths shown in completion pop-up with rust-analyzer #4672

Closed
@traviscross

Description

@traviscross

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

When used with rust-analyzer, lsp-mode does not show the paths to items in the completion pop-up. E.g.:

lsp-mode

Comparatively, eglot does, and this is the behavior I would expect. E.g.:

eglot

This is testing with the latest current commit of lsp-mode and the latest commit of rust-analyzer.

Prior to this rust-analyzer PR, lsp-mode does exhibit the correct behavior:

But, of course, eglot and other clients seem to work after that commit.

Steps to reproduce

With the most recent commit of rust-analyzer and the most recent commit of lsp-mode, start Emacs with a minimal configuration and open a Rust file. Edit it to contain:

fn main() {
    Pin// <-- Cursor here.
}

Expected behavior

The paths to completion items should be displayed.

Which Language Server did you use?

lsp-rust

cc @dfireBird @wyuenho @kiennq

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