simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

/imports/granularity/group: unknown variant `last`, expected one of `preserve`, `item`, `crate`, `module` #275

Closed winkee01 closed 1 year ago

winkee01 commented 1 year ago

Hello, when I open a *.rs file, I encountered this error.

LSP[rust_analyzer][Warning] rust-analyzer found 1 invalid config value:
/imports/granularity/group: unknown variant `last`, expected one of `preserve`, `item`, `crate`, `module`
LSP[rust_analyzer][Warning] rust-analyzer found 1 invalid config value:
/imports/granularity/group: unknown variant `last`, expected one of `preserve`, `item`, `crate`, `module`
CleanShot 2022-10-29 at 13 46 56@2x
simrat39 commented 1 year ago

What's your rust-tools setup, nvim version and rust-analyzer version?

winkee01 commented 1 year ago

I pull the lastest commit and the error suddenly disappeared.