syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.66k stars 4.89k forks source link

LSP + Rust layer: no syntax check, `rust-analyzer` loaded but inactive #16291

Closed stradicat closed 7 months ago

stradicat commented 7 months ago

Description :octocat:

LSP + Rust layer: no syntax check, rust-analyzer loaded but inactive. Running lsp-rust-analyzer-run ends up in error:

Timeout while waiting for response. Method: experimental/runnables

When trying to switch the Rust backend with SPC m s s, the following warning shows up right at SPC m s:

which-key: there are no keys to show

Other LSP-enabled layers such as javascript, c-c++ and go are working without problems after this week's updates.

Could this be related ot the helm-descbinds vs which-key problem arised during the past few days?

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart:

Expected behaviour: :heart: :smile:

System Info :computer:

stradicat commented 7 months ago

Enabling lsp-io-mode and reloading the Rust file shows the following warning:

Suspicious state from syntax checker rustic-clippy: Flycheck checker rustic-clippy returned 101, but its output contained no errors: error: could not find 'Cargo.toml' in '/Users/my_user/Documents/project_directory' or any parent directory

This hasn't happened before when opening Rust files in their own directories.

stradicat commented 7 months ago

After the last lsp-mode update, it seems to be working again. Closing.