Do you mean that the autocommand removes all matches?  Well, somehow I
think it's good to give the message then.  But perhaps it's just another
execuse to give this deep error message :-).


Yes, the autocommand may remove all entries from the quickfix list.

My underlying issue is that I run junit tests from vim and I want to
add a qf entry for every failed test case.  The problem is that I
cannot find a way to only match failed junit tests and still grab the
necessary text for the qf error message.

Ex.
   [junit] Running org.foo.BarTest
   [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 1.361 sec
   [junit] Running org.foo.BazTest
   [junit] Tests run: 2, Failures: 2, Errors: 1, Time elapsed: 0.305 sec

Given the above output I should have one qf entry
 {'filename': 'org.foo.BazTest', 'text': 'Tests run: 2, Failures: 2,
Errors: 1, Time elapsed: 0.305 sec'}

But as far as I can tell there is no way for me to set the
'errorformat' such that the first 2 lines are not matched as an error
but the second one is AND I can still use the 'Tests run ...' as the
text for the qf result.

So, as a workaround I have an autocmd which filters out successfull
tests, and as such, may end up removing all entries from the qf list.

While, it's not a huge deal that the user recieves the "No Errors"
message, it does imply that something may be broken.

--
eric

Reply via email to