User Defined Parser configuration question in new Warnings Plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

User Defined Parser configuration question in new Warnings Plugin

AnthonyJ-2
I ran into trouble creating a parser class for a multi-line warning.
In the new parser, I set the 'Regular Expression' field to the
following...

(?dm)Warning-(.*)\r\n(.*),\s*(\d+)

Where in the 'Mapping Script' field, I set matcher.group(1) to the
warning message on the first line of the warning, matcher.group(3) is
the line number and matcher.group(2) is the filename on the second
line of the warning message.

The '\r\n' characters in the 'Regular Expression' field are not
working. Can you please let me know the correct syntax for the regex
of a multiline warning?

Example warning message below:

Warning-[UII-L] Interface not instantiated
/projects/caladan/hudson/jobs/caladan/workspace/caladan/dv/env/xactor/
include/IPZBit.svh, 9
Reply | Threaded
Open this post in threaded view
|

Re: User Defined Parser configuration question in new Warnings Plugin

Ulli Hafner
On 01/03/2011 05:30 PM, AnthonyJ wrote:

> I ran into trouble creating a parser class for a multi-line warning.
> In the new parser, I set the 'Regular Expression' field to the
> following...
>
> (?dm)Warning-(.*)\r\n(.*),\s*(\d+)
>
> Where in the 'Mapping Script' field, I set matcher.group(1) to the
> warning message on the first line of the warning, matcher.group(3) is
> the line number and matcher.group(2) is the filename on the second
> line of the warning message.
>
> The '\r\n' characters in the 'Regular Expression' field are not
> working. Can you please let me know the correct syntax for the regex
> of a multiline warning?
>

Multi-line parsing is not yet supported for user defined parsers. Can
you please create a feature request in Jira, this shouldn't be hard to
implement.

Ulli

> Example warning message below:
>
> Warning-[UII-L] Interface not instantiated
> /projects/caladan/hudson/jobs/caladan/workspace/caladan/dv/env/xactor/
> include/IPZBit.svh, 9

Reply | Threaded
Open this post in threaded view
|

Re: User Defined Parser configuration question in new Warnings Plugin

AnthonyJ-2
Ulli, This feature request has been created in Jira. I will test it
for you as soon as it is available. Thankyou, Anthony

On Jan 3, 8:34 am, Ullrich Hafner <[hidden email]> wrote:

> On 01/03/2011 05:30 PM, AnthonyJ wrote:
>
> > I ran into trouble creating a parser class for a multi-line warning.
> > In the new parser, I set the 'Regular Expression' field to the
> > following...
>
> > (?dm)Warning-(.*)\r\n(.*),\s*(\d+)
>
> > Where in the 'Mapping Script' field, I set matcher.group(1) to the
> > warning message on the first line of the warning, matcher.group(3) is
> > the line number and matcher.group(2) is the filename on the second
> > line of the warning message.
>
> > The '\r\n' characters in the 'Regular Expression' field are not
> > working. Can you please let me know the correct syntax for the regex
> > of a multiline warning?
>
> Multi-line parsing is not yet supported for user defined parsers. Can
> you please create a feature request in Jira, this shouldn't be hard to
> implement.
>
> Ulli
>
> > Example warning message below:
>
> > Warning-[UII-L] Interface not instantiated
> > /projects/caladan/hudson/jobs/caladan/workspace/caladan/dv/env/xactor/
> > include/IPZBit.svh, 9