rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.31k stars 1.62k forks source link

Autocompletion values change as you hover over them #18536

Open CosmicSyntax opened 2 days ago

CosmicSyntax commented 2 days ago

rust-analyzer version: (ba56d9b9b5 2024-11-17) rustc version: rustc 1.82.0 (f6e511eec 2024-10-15)

editor or extension: Neovim

The latest version of Rust-Analyzer is displaying some weird behavior with autocomplete. When you hover over the values, they change. As depicted below:

Image

DianQK commented 2 days ago

Can you try to modify cmp.select_next_item() to cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })?

yayakame commented 2 days ago

Can you try to modify cmp.select_next_item() to cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })?

I've been having the same issue for a while, the above fixed it for me.

GloopShlugger commented 2 days ago

having the same issue with Helix

DianQK commented 2 days ago

having the same issue with Helix

Ha, I can also reproduce: After typing pr, wait for the autocomplete suggestions to appear, then press i. Once the new autocomplete suggestions appear, press Tab.