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

Autocompletion values change as you hover over them #18536

Closed
CosmicSyntax opened this issue Nov 19, 2024 · 8 comments
Closed

Autocompletion values change as you hover over them #18536

CosmicSyntax opened this issue Nov 19, 2024 · 8 comments
Labels
C-bug Category: bug

Comments

@CosmicSyntax
Copy link

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

@CosmicSyntax CosmicSyntax added the C-bug Category: bug label Nov 19, 2024
@CosmicSyntax CosmicSyntax changed the title Autocompletion values changes are you hover over them Autocompletion values change are you hover over them Nov 19, 2024
@CosmicSyntax CosmicSyntax changed the title Autocompletion values change are you hover over them Autocompletion values change as you hover over them Nov 19, 2024
@DianQK
Copy link
Member

DianQK commented Nov 19, 2024

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

@yayakame
Copy link

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
Copy link

having the same issue with Helix

@DianQK
Copy link
Member

DianQK commented Nov 20, 2024

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
Copy link
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
Copy link

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
Copy link

This same issue exists in Helix

@night-kat
Copy link

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

yadokani389 added a commit to yadokani389/nixvim-config that referenced this issue Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

7 participants