From b7a6ee34bfec3b427dc2da011fdea73150953b05 Mon Sep 17 00:00:00 2001 From: Dmitrii Frank Date: Wed, 17 May 2023 12:46:38 +0300 Subject: [PATCH] Ignore cargo messages like Blocking waiting for ... 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 https://github.com/rust-lang/rust.vim/issues/499 . --- compiler/cargo.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/cargo.vim b/compiler/cargo.vim index a511ef6f..20367a18 100644 --- a/compiler/cargo.vim +++ b/compiler/cargo.vim @@ -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\\,%.%#,