Skip to content

Commit

Permalink
Ignore cargo messages like Blocking waiting for ...
Browse files Browse the repository at this point in the history
Whenever Cargo tries to build a project while there is another build in
progress, Cargo will wait for the other build to finish, and print
messages like this:

```
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on build directory
```

Those messages were not ignored, and were therefore included in the
quickfix, making it look like there were some issues even if the build
succeeded.

This commit configures `&errorformat` to ignore those messages and avoid
including them in the quickfix.

Closes rust-lang#499 .
  • Loading branch information
dimonomid authored and Notgnoshi committed Dec 27, 2023
1 parent 889b9a7 commit a3f180e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/cargo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ CompilerSet errorformat+=
\%-G%\\s%#Checking%.%#,
\%-G%\\s%#Compiling%.%#,
\%-G%\\s%#Finished%.%#,
\%-G%\\s%#Blocking\ waiting%.%#,
\%-G%\\s%#error:\ Could\ not\ compile\ %.%#,
\%-G%\\s%#To\ learn\ more\\,%.%#,
\%-G%\\s%#For\ more\ information\ about\ this\ error\\,%.%#,
Expand Down

0 comments on commit a3f180e

Please sign in to comment.