-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
rust-analyzer version: rust-analyzer 1.84.0-nightly (b19329a 2024-11-21)
rustc version: rustc 1.84.0-nightly (b19329a 2024-11-21)
editor or extension: helix 24.7 (079f5442)
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)
repository link (if public, optional): reproduced in multiple repositories
code snippet to reproduce: working on minimal repro
Since about the past week I have been dealing with an issue where autocomplete suggestions change when I highlight them. This video explains it better:
The video shows the following:
- I type
let mut px = PCt - Arrow down to the suggested and expected
PCtx - Once the suggestion is highlighted in the dropdown, it replaces my
PCtwithPCtxwhich is expected. However, it deletes the space between=andPCt- that is weird. - I hit escape to cancel, which deletes
PCt* - I start typing
PCtagain. RA again suggestsPCtx - I arrow down and highlight
PCtxin the dropdown. RA replaces it correctly this time - However, after about a half second, the suggested
PCtxin the dropdown has changed toEither. This is completely random and makes no sense in the context (though what it suggests does seem to be consistent) - I hit escape to cancel. For some reason, it replaces
PCtxwithEither
My only RA config is pretty minimal:
[language-server.rust-analyzer.config]
diagnostics.disabled = [ "inactive-code", "unlinked-file" ]I am assuming this came from an RA update since it started somewhat recently (past week or two) and Helix hasn't had an update in a few months, but I haven't yet had a chance to see if it still happens with older versions. This problem happens pretty consistently across multiple repos.
Edit: this happens with other kinds of autocomplete suggestions too, it is doing things like changing some_func to panic!().
