Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rust-analyzer): skip stderr for cargo metadata (neovim#1235)
Vim's `system` output includes both STDOUT and STDERR, which means it may contain all sorts of debug output, especially if the user is using custom rustup toolchains. This change ignores STDERR output for parsing the metadata output to fix rust_analyzer in those contexts. This change also moves to `jobstart`/`jobwait` over `system`, which avoids pitfalls related to shell argument parsing and escaping, and allows finer-grained control over output redirection.
- Loading branch information