On 11/03/11 4:34 AM, Ben Godfrey wrote:
I'm working on a Vim compiler plugin for PHPUnit.

I've written the following errorformat. The error message is correctly
extracted, but file and line numbers are not.

CompilerSet errorformat=%E%n)\ %.%#,
                        \%C%m,
                        \%+C%$,
                        \%C%f:%l,
                        \%Z%$

PHPUnit's output looks something like this:

PHPUnit 3.5.12 by Sebastian Bergmann.

...............................................................  63 /
134 ( 47%)
.........................E.....

Time: 0 seconds, Memory: 11.25Mb

There was 1 error:

1) SomeClassTest::testSomething
Undefined property: SomeClass::$var

/path/to/SomeClass.php:99
/path/to/SomeClassTest.php:15


I think it may simply be the ordering. Since you have %C%m so early, and
it will match anything, it always wins and any line which doesn't start
with "number)" is a continuation line with nothing more than a message
recognised.

Ben.



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to