rksm / emacs-rust-config

emacs.d files for making Emacs a Rust development environment
MIT License
93 stars 28 forks source link

LSP Error on startup #11

Open worikgh opened 1 year ago

worikgh commented 1 year ago

emacs: 30.0.50, packages updated, Raspberry Pi 4

Recreate:

Create a new project Open the main.rs LSP :: Error from the Language Server: waiting for cargo metadata or cargo check (Unknown error) [8 times]

More detail:

cd /tmp
cargo new test_issue
emacs -nw -q --load ~/emacs-rust-config/standalone.el /tmp/test_issue/src/main.rs

In the *Messages* buffer the following LSP messages:

LSP :: Connected to [rust-analyzer:11070/starting /tmp/test_issue].
LSP :: rust-analyzer found 1 invalid config value:
/inlayHints/reborrowHints/enable: data did not match any variant of untagged enum ReborrowHintsDef
LSP :: rust-analyzer:11070 initialized successfully in folders: (/tmp/test_issue)
LSP :: Error from the Language Server: waiting for cargo metadata or cargo check (Unknown error) [8 times]

So there is misconfiguration with rust-analyzer. I have not changed any thing there.

worikgh commented 1 year ago

This is an issue over at rust-analyzer https://github.com/rust-lang/rust-analyzer/issues/10910