flycheck / flycheck-rust

Better Rust/Cargo support for Flycheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspicious state from syntax checker rust-cargo: Flycheck checker rust-cargo returned 101, but its output contained no errors: error: no library targets found in package

andrewbanchich opened this issue · comments

Since Monday I've been experiencing rust-analyzer crashing when working on Rust projects. It starts up successfully in lsp-mode, I see the correct red squigglies and diagnostics, but after a few seconds it crashes and Emacs displays:

Server rust-analyzer:70245 exited with status signal(check corresponding stderr buffer for details). Do you want to restart it? (y or n) 

The *Messages* buffer shows:

LSP :: Connected to [rust-analyzer:70245/starting].
LSP :: rust-analyzer:70245 initialized successfully in folders: (REDACTED)
LSP :: rust-analyzer has exited (abort trap: 6)
Server rust-analyzer:70245 exited with status signal(check corresponding stderr buffer for details). Do you want to restart it? (y or n) y
Suspicious state from syntax checker rust-cargo: Flycheck checker rust-cargo returned 101, but its output contained no errors: error: no library targets found in package `my-rust-project`

Try installing a more recent version of rust-cargo, and please open a bug report if the issue persists in the latest release.  Thanks!
❯ cargo --version
cargo 1.67.0 (8ecd4f20a 2023-01-10)