Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
traviscross opened this issue Jan 5, 2025 · 1 comment
Open
3 tasks done

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

traviscross opened this issue Jan 5, 2025 · 1 comment
Labels

Comments

@traviscross
Copy link

traviscross commented Jan 5, 2025

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

@traviscross traviscross added the bug label Jan 5, 2025
@traviscross
Copy link
Author

traviscross commented Jan 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant