When calling completion and selecting e.g. the item Type1 {…}, rust-analyzer inserts literal Type1 {…} where it previously would have correctly inserted Type1 { field }. Rust-analyzer 1.82.0 installed via rustup does not exhibit this behaviour, it expands correctly.
Note: I believe this was more easily reproducible on the 2024-11-04 version of RA, but I had updated in hope this had been fixed, and now I also get random symbols like panic! completed instead of the one I've selected (I'm guessing that's related to #18536).
rust-analyzer version: rust-analyzer 0.0.0 (ba56d9b9b 2024-11-17) installed via Homebrew
rustc version: rustc 1.82.0 (f6e511eec 2024-10-15) installed via rustup
editor or extension: NeoVim using
neovim/nvim-lspconfig
andhrsh7th/nvim-cmp
withhrsh7th/cmp-nvim-lsp
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)repository link (if public, optional): N/A
code snippet to reproduce: (
|
represents cursor position)When calling completion and selecting e.g. the item
Type1 {…}
, rust-analyzer inserts literalType1 {…}
where it previously would have correctly insertedType1 { field }
. Rust-analyzer 1.82.0 installed via rustup does not exhibit this behaviour, it expands correctly.Note: I believe this was more easily reproducible on the 2024-11-04 version of RA, but I had updated in hope this had been fixed, and now I also get random symbols like
panic!
completed instead of the one I've selected (I'm guessing that's related to #18536).