]> git.lizzy.rs Git - rust.git/commit
Log the command flycheck runs to debug misconfigurations
authorVeetaha <veetaha2@gmail.com>
Tue, 11 Aug 2020 00:12:09 +0000 (03:12 +0300)
committerVeetaha <veetaha2@gmail.com>
Tue, 11 Aug 2020 00:12:09 +0000 (03:12 +0300)
commit4f386afb16297f588484ff24e2b4693218893a94
tree53828b0727e1fb77af2b97b9cf5131e390820c29
parentb050937c1071e68a4ade69375f1f17b703cafb02
Log the command flycheck runs to debug misconfigurations

Without this users have no clue why flycheck fails to run.
This is what is printed to the output channel:
```
[ERROR rust_analyzer::main_loop] cargo check failed: Cargo watcher failed,the command produced no valid metadata (exit code: ExitStatus(ExitStatus(25856)))
```

I stumbled with this figuring out that rust-analyzer adds `--all-features` which is not intended
for some crates in the workspace (e.g. they have mutually-exclusive features.
Having the command rust-analyzer ran should help a lot
crates/flycheck/src/lib.rs