[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-core-dev] Eclipse Error Parser.
|
hello, Asim Zaka
in java pattern "." can represent any character but the character of end line.
if you can make sure the description is two lines try to add this after your pattern:
maybe you can get two line description in that way...
On 6/21/07, Asim Zaka <azaka@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Morning all,
I am working on adding my own error parser as a plugin into eclipse. I have basically extended my own errorparser class from the cdt class
AbstractErrorParser. I have defined a regular _expression_ to work on the following console output and get the file name, line number and description.
./c/btmg.c(48,55): Variable exported but not used outside btn:
BTN_long_hold_time
Now the problem I have is that the description goes onto the second line and my error parser breaks on the end of first line. Like for instance in the above example I only get "Variable exported but not used outside btn:" as the description and not "BTN_long_hold_time" as it goes onto the second line.
Going into specific details, this is the pattern I have made:
private
static final
ErrorPattern[] patterns = {
new
ErrorPattern( "[.][/][c][/](.*?)[(]([0-9]+).*?:(.+)" , 1, 2, 3, 0, IMarkerGenerator.
SEVERITY_WARNING)
};
Can someone please tell me how I can improve this error parser plug-in to enable it to get the whole description even if it goes on to the second or third line and pass it to the problems window on eclipse as one string of description?
Regards,
Asim Pervez Zaka
Firmware Engineer
Actaris,
Langer Road,
Felixstowe, Suffolk,
England
IP11 2ER
_______________________________________________
cdt-core-dev mailing list
cdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-core-dev