May 12, 2003

Custom output matching

Important line to note from todays check-in:

Implemented PCRE based custom error parsing in the output viewer window.

There is no functional UI for this yet (it's in place, but doesn't do much) but it's nearly done. It's good stuff, you specify the error format using regular expressions with optional helper sequences: %l for line number, %c for column and %f for filename. Both line number and column are optional. So, to define GCC style errors (which you don't need to because they're built in) you could use:

%f:%l: .*

Equally, you can just fully specify the RE:

(?P<f>.+):(?P<l>[0-9]+): .*

Both expand to the same expression internally. I may further restrict the path matching RE (.+ is a bit vague!) to a character set something like [a-zA-Z0-9_+/\\:\.-] (or whatever, this is untested) later on to make matches a little stricter. I should also probably anchor searches to the start of the line by default (?).

Getting much closer to a 0.4 release now.

Posted by Simon at May 12, 2003 11:39 PM

Wow. This turns out to be more powerful than I expected.

Posted by Patrick at May 13, 2003 9:33 AM