Skip to content

Autocompletion values change as you hover over them #18536

@CosmicSyntax

Description

@CosmicSyntax

rust-analyzer version: (ba56d9b 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

Activity

changed the title [-]Autocompletion values changes are you hover over them[/-] [+]Autocompletion values change are you hover over them[/+] on Nov 19, 2024
changed the title [-]Autocompletion values change are you hover over them[/-] [+]Autocompletion values change as you hover over them[/+] on Nov 19, 2024
dianqk

dianqk commented on Nov 19, 2024

@dianqk
Member

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

yayakame

yayakame commented on Nov 19, 2024

@yayakame

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

GloopShlugger commented on Nov 19, 2024

@GloopShlugger

having the same issue with Helix

dianqk

dianqk commented on Nov 20, 2024

@dianqk
Member

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.

CosmicSyntax

CosmicSyntax commented on Nov 22, 2024

@CosmicSyntax
Author

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

I can also confirm this works for me as well. I'll go ahead and close this issue. Thanks for all your help!

tgross35

tgross35 commented on Nov 25, 2024

@tgross35
Contributor

I don't think this should have been closed - requiring a config update to avoid broken behavior doesn't seem right.

I opened #18547 before having seen this.

jrmoulton

jrmoulton commented on Dec 2, 2024

@jrmoulton

This same issue exists in Helix

night-kat

night-kat commented on Dec 5, 2024

@night-kat

i have the same issue in nvchad. for me i just did :MasonInstall rust-analyzer@2024-09-30
to install an older version as a temp fix. i might try the fix suggested above

added a commit that references this issue on Dec 9, 2024
added a commit that references this issue on May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dianqk@jrmoulton@tgross35@CosmicSyntax@yayakame

        Issue actions

          Autocompletion values change as you hover over them · Issue #18536 · rust-lang/rust-analyzer