-
-
Notifications
You must be signed in to change notification settings - Fork 912
LSP :: invalid config value rust-analyzer #4768
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
Comments
cargo.extraEnv has been a map since its introduction (rust-lang/rust-analyzer@c407cc5). The definition in lsp-mode didn't match since then, but the mismatch was silently ignored. From rust-lang/rust-analyzer@46ce474, rust-analyzer started showing a warning message on configuration error, which we are seeing. With the diff below, the definition for cargo.extraEnv should match and the warning message is not displayed anymore, but I'm not sure if this is a proper fix. Please check if this is OK.
|
Looks like the patch is OK? I'll open a PR if no one objects. |
…lsp#4768) In rust-analyzer, cargo.extraEnv has been a map since its introduction (rust-lang/rust-analyzer@c407cc5). The definition in lsp-mode hasn't matched since then, but the mismatch has been silently ignored. From rust-lang/rust-analyzer@46ce474, rust-analyzer started showing a warning message on configuration error which we are seeing. With this change, the definition for cargo.extraEnv should match and the warning message is not displayed.
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
Latest version of rust-analyzer produces warnings
Steps to reproduce
Install latest version of rust-analyzer and lsp-mode. Open a Rust project and see the warnings
Expected behavior
No warning messages
Which Language Server did you use?
rust-analyzer
OS
Linux
Anything else?
Possibly this type has changed on the server side
The text was updated successfully, but these errors were encountered: