[ANN] warnings plugin 1.0

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

[ANN] warnings plugin 1.0

Ulli Hafner-2
Hi,

I created a new plug-in to parse the compiler warnings in the build log.
The plug-in is based on the findbugs plug-in, so you will get all
features of the findbugs backend for free.

Currently, the following compilers are supported:
- javac (maven-compiler-plugin)
- Hudson HPI (maven-hpi-plugin)
(- Eclipse java compiler is on its way, wait for release 1.1)

The parsing could be easily extended (currently only by adding a new Java class), so feel free to add your parser regular expression in the warnigns plug-in. (Or send me your expressions and I will add them to the warnings codebase.)

Best regards,

Ulli
--
Avaloq - essential for banking.

Avaloq Evolution AG
Allmendstrasse 140, 8027 Zürich
T +41 44 488 6790, F +41 44 488 6868, http://www.avaloq.com
Dr. Ullrich Hafner mailto:[hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
Release 1.1 is ready for download!

Changes:
- Bugfix: the configuration page was not visible due to a class name typo.

In order to use the plugin in maven you could use the following configuration:
<plugins>
  [...]
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <showDeprecation>true</showDeprecation>
        <showWarnings>true</showWarnings>
      </configuration>
    </plugin>
  [...]
  </plugins>

Or in ant or shell scripts use "javac -deprecation" as compiler arguments.

Ulli

> -----Original Message-----
> From: Hafner Ullrich [mailto:[hidden email]]
> Sent: Dienstag, 13. Mai 2008 13:44
> To: [hidden email]
> Subject: [ANN] warnings plugin 1.0
>
> Hi,
>
> I created a new plug-in to parse the compiler warnings in the
> build log.
> The plug-in is based on the findbugs plug-in, so you will get
> all features of the findbugs backend for free.
>
> Currently, the following compilers are supported:
> - javac (maven-compiler-plugin)
> - Hudson HPI (maven-hpi-plugin)
> (- Eclipse java compiler is on its way, wait for release 1.1)
>
> The parsing could be easily extended (currently only by
> adding a new Java class), so feel free to add your parser
> regular expression in the warnigns plug-in. (Or send me your
> expressions and I will add them to the warnings codebase.)
>
> Best regards,
>
> Ulli
> --
> Avaloq - essential for banking.
>
> Avaloq Evolution AG
> Allmendstrasse 140, 8027 Zürich
> T +41 44 488 6790, F +41 44 488 6868, http://www.avaloq.com 
> Dr. Ullrich Hafner mailto:[hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] warnings plugin 1.0

Erik Ramfelt
In reply to this post by Ulli Hafner-2
On Tue, May 13, 2008 at 1:44 PM, Hafner Ullrich
<[hidden email]> wrote:

> Hi,
>
>  I created a new plug-in to parse the compiler warnings in the build log.
>  The plug-in is based on the findbugs plug-in, so you will get all
>  features of the findbugs backend for free.
>
>  Currently, the following compilers are supported:
>  - javac (maven-compiler-plugin)
>  - Hudson HPI (maven-hpi-plugin)
>  (- Eclipse java compiler is on its way, wait for release 1.1)
>
>  The parsing could be easily extended (currently only by adding a new Java class), so feel free to add your parser regular expression in the warnigns plug-in. (Or send me your expressions and I will add them to the warnings codebase.)

Very cool, I have been wanting to have something like this for a while.

Could you add support for MSBuild warnings? Im not a regex guru but I
found the format here if you would like to make an attempt
http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx
An example of MSBuild output can be found at
http://build.sharpdevelop.net/ccnet/server/local/project/SharpDevelop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPlugin.aspx


I guess the main purpose is to show warnings, but couldnt the plugin
also scan for errors? It would be cool if (potential) errors are
displayed in the build status page, that way the develoeprs may not
have to dig into the console log to find an error cause. (I think I
saw an email for this request a while ago.)


//Erik

>  Best regards,
>
>  Ulli
>  --
>  Avaloq - essential for banking.
>
>  Avaloq Evolution AG
>  Allmendstrasse 140, 8027 Zürich
>  T +41 44 488 6790, F +41 44 488 6868, http://www.avaloq.com
>  Dr. Ullrich Hafner mailto:[hidden email]
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [hidden email]
>  For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] warnings plugin 1.0

Henrik Lynggaard Hansen
2008/5/13 Erik Ramfelt <[hidden email]>:

> On Tue, May 13, 2008 at 1:44 PM, Hafner Ullrich
>  <[hidden email]> wrote:
>  > Hi,
>  >
>  >  I created a new plug-in to parse the compiler warnings in the build log.
>  >  The plug-in is based on the findbugs plug-in, so you will get all
>  >  features of the findbugs backend for free.
>  >
>  >  Currently, the following compilers are supported:
>  >  - javac (maven-compiler-plugin)
>  >  - Hudson HPI (maven-hpi-plugin)
>  >  (- Eclipse java compiler is on its way, wait for release 1.1)
>  >
>  >  The parsing could be easily extended (currently only by adding a new Java class), so feel free to add your parser regular expression in the warnigns plug-in. (Or send me your expressions and I will add them to the warnings codebase.)
>
>  Very cool, I have been wanting to have something like this for a while.
>
>  Could you add support for MSBuild warnings? Im not a regex guru but I
>  found the format here if you would like to make an attempt
>  http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx
>  An example of MSBuild output can be found at
>  http://build.sharpdevelop.net/ccnet/server/local/project/SharpDevelop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPlugin.aspx

And I would love solaris C++ compiler or GCC style warnings :-) I
don't have the format for them though.

@erik: A error should stop the build so any errors will allways be at
the bottom of the console, right ?

best regards
henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
In reply to this post by Erik Ramfelt
> > Hi,
> >
> >  I created a new plug-in to parse the compiler warnings in
> the build log.
> >  The plug-in is based on the findbugs plug-in, so you will get all  
> > features of the findbugs backend for free.
> >
> [...]
> Very cool, I have been wanting to have something like this
> for a while.
>
> Could you add support for MSBuild warnings? Im not a regex
> guru but I found the format here if you would like to make an
> attempt
> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
l-studio-aware-error-messages-and-message-formats.aspx
> An example of MSBuild output can be found at
> http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
>
Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPl
ugin.aspx

That should be quite easy...

Do you know a good HTML syntax coloring library for C# files (in Java of
course;-)?

>
>
> I guess the main purpose is to show warnings, but couldnt the
> plugin also scan for errors? It would be cool if (potential)
> errors are displayed in the build status page, that way the
> develoeprs may not have to dig into the console log to find
> an error cause. (I think I saw an email for this request a while ago.)

Do you just want to scan for an error in the build log and then fail the
build? Then you could use the text-scanner plugin!

Or are the several errors to list? (In the same format as warnings?)
Maybe an example would help...

>
>
> //Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
In reply to this post by Henrik Lynggaard Hansen
> And I would love solaris C++ compiler or GCC style warnings
> :-) I don't have the format for them though.

Hmm, without an example it is quite difficult to implement a parser...

Ulli

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] warnings plugin 1.0

Erik Ramfelt
In reply to this post by Ulli Hafner-2
On Wed, May 14, 2008 at 8:59 AM, Hafner Ullrich
<[hidden email]> wrote:

>> > Hi,
>> >
>> >  I created a new plug-in to parse the compiler warnings in
>> the build log.
>> >  The plug-in is based on the findbugs plug-in, so you will get all
>> > features of the findbugs backend for free.
>> >
>> [...]
>> Very cool, I have been wanting to have something like this
>> for a while.
>>
>> Could you add support for MSBuild warnings? Im not a regex
>> guru but I found the format here if you would like to make an
>> attempt
>> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
> l-studio-aware-error-messages-and-message-formats.aspx
>> An example of MSBuild output can be found at
>> http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
>>
> Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPl
> ugin.aspx
>
> That should be quite easy...

Cool.

> Do you know a good HTML syntax coloring library for C# files (in Java of
> course;-)?

No, I dont and the Java formatting will do for a first try. What
library are you currently using? (Tried to do some quick googling,
apparently the keywords c# and java are used alot on the web ;)


>> I guess the main purpose is to show warnings, but couldnt the
>> plugin also scan for errors? It would be cool if (potential)
>> errors are displayed in the build status page, that way the
>> develoeprs may not have to dig into the console log to find
>> an error cause. (I think I saw an email for this request a while ago.)
>
> Do you just want to scan for an error in the build log and then fail the
> build? Then you could use the text-scanner plugin!

No, the build is already going to fail as the compilation failed, I
just think it would be nice to see the reason for the failure (if it
was a compilation error) on the build page first before I have to
dwelve into the console log. On my last gig I saw several times that
the error was displayed and MSBuild would continue for a while, so the
error did not show up at the end. I thought that the plugin could help
out in finding/displaying a compilation error; as the only way to get
it today is to read the console log.


> Or are the several errors to list? (In the same format as warnings?)
> Maybe an example would help...

The MSBuild outputs errors and warnings in the same format, the
difference is that is says error instead of warning
C:\dir1\foo.resx(2) : error BC30188: Declaration expected.
error CS0006: Metadata file 'System.dll' could not be found.


//Erik


>
>>
>>
>> //Erik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Re: [ANN] warnings plugin 1.0

mezlight
In reply to this post by Henrik Lynggaard Hansen
I would love this for C++...

-----Original Message-----
From: Henrik Lynggaard [mailto:[hidden email]]
Sent: Tuesday, May 13, 2008 4:36 PM
To: [hidden email]
Subject: Re: [ANN] warnings plugin 1.0

2008/5/13 Erik Ramfelt <[hidden email]>:
> On Tue, May 13, 2008 at 1:44 PM, Hafner Ullrich  
> <[hidden email]> wrote:
>  > Hi,
>  >
>  >  I created a new plug-in to parse the compiler warnings in the
build log.
>  >  The plug-in is based on the findbugs plug-in, so you will get all

> >  features of the findbugs backend for free.
>  >
>  >  Currently, the following compilers are supported:
>  >  - javac (maven-compiler-plugin)
>  >  - Hudson HPI (maven-hpi-plugin)
>  >  (- Eclipse java compiler is on its way, wait for release 1.1)  >  
> >  The parsing could be easily extended (currently only by adding a
> new Java class), so feel free to add your parser regular expression in

> the warnigns plug-in. (Or send me your expressions and I will add them

> to the warnings codebase.)
>
>  Very cool, I have been wanting to have something like this for a
while.
>
>  Could you add support for MSBuild warnings? Im not a regex guru but I

> found the format here if you would like to make an attempt  
> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio
> -aware-error-messages-and-message-formats.aspx
>  An example of MSBuild output can be found at  
> http://build.sharpdevelop.net/ccnet/server/local/project/SharpDevelop-
> 30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPlugin.a
> spx

And I would love solaris C++ compiler or GCC style warnings :-) I don't
have the format for them though.

@erik: A error should stop the build so any errors will allways be at
the bottom of the console, right ?

best regards
henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Andrew Chandler
In reply to this post by Ulli Hafner-2
I may be missing something but where is the text scanner plugin hosted?  It
didn't look like it was hosted on the hudson site.

-----Original Message-----
From: Hafner Ullrich [mailto:[hidden email]]
Sent: Wednesday, May 14, 2008 1:59 AM
To: [hidden email]
Subject: RE: [ANN] warnings plugin 1.0

> > Hi,
> >
> >  I created a new plug-in to parse the compiler warnings in
> the build log.
> >  The plug-in is based on the findbugs plug-in, so you will get all
> > features of the findbugs backend for free.
> >
> [...]
> Very cool, I have been wanting to have something like this for a
> while.
>
> Could you add support for MSBuild warnings? Im not a regex guru but I
> found the format here if you would like to make an attempt
> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
l-studio-aware-error-messages-and-message-formats.aspx
> An example of MSBuild output can be found at
> http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
>
Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPl
ugin.aspx

That should be quite easy...

Do you know a good HTML syntax coloring library for C# files (in Java of
course;-)?

>
>
> I guess the main purpose is to show warnings, but couldnt the plugin
> also scan for errors? It would be cool if (potential) errors are
> displayed in the build status page, that way the develoeprs may not
> have to dig into the console log to find an error cause. (I think I
> saw an email for this request a while ago.)

Do you just want to scan for an error in the build log and then fail the
build? Then you could use the text-scanner plugin!

Or are the several errors to list? (In the same format as warnings?) Maybe
an example would help...

>
>
> //Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: RE: [ANN] warnings plugin 1.0

charpel
I think its text finder, isn't it?


-----Original Message-----
From: Andrew Chandler [mailto:[hidden email]]
Sent: Wednesday, May 14, 2008 9:57 AM
To: [hidden email]
Subject: RE: [ANN] warnings plugin 1.0

I may be missing something but where is the text scanner plugin hosted?
It
didn't look like it was hosted on the hudson site.

-----Original Message-----
From: Hafner Ullrich [mailto:[hidden email]]
Sent: Wednesday, May 14, 2008 1:59 AM
To: [hidden email]
Subject: RE: [ANN] warnings plugin 1.0

> > Hi,
> >
> >  I created a new plug-in to parse the compiler warnings in
> the build log.
> >  The plug-in is based on the findbugs plug-in, so you will get all
> > features of the findbugs backend for free.
> >
> [...]
> Very cool, I have been wanting to have something like this for a
> while.
>
> Could you add support for MSBuild warnings? Im not a regex guru but I

> found the format here if you would like to make an attempt
> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
l-studio-aware-error-messages-and-message-formats.aspx
> An example of MSBuild output can be found at
> http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
>
Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildP
l
ugin.aspx

That should be quite easy...

Do you know a good HTML syntax coloring library for C# files (in Java
of
course;-)?

>
>
> I guess the main purpose is to show warnings, but couldnt the plugin
> also scan for errors? It would be cool if (potential) errors are
> displayed in the build status page, that way the develoeprs may not
> have to dig into the console log to find an error cause. (I think I
> saw an email for this request a while ago.)

Do you just want to scan for an error in the build log and then fail
the
build? Then you could use the text-scanner plugin!

Or are the several errors to list? (In the same format as warnings?)
Maybe
an example would help...

>
>
> //Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Re: [ANN] warnings plugin 1.0

Ulli Hafner-2
In reply to this post by mezlight
I created an issue for new compiler parsers:
https://hudson.dev.java.net/issues/show_bug.cgi?id=1688

Please use this issue to request support for new parsers.
And don't forget to add at least an example report as an
attachment. Otherwise I can't write a parser:-)

Ulli

> -----Original Message-----
> From: Messmer, Jason [mailto:[hidden email]]
> Sent: Mittwoch, 14. Mai 2008 14:07
> To: [hidden email]
> Subject: RE: Re: [ANN] warnings plugin 1.0
>
> I would love this for C++...
>
> -----Original Message-----
> From: Henrik Lynggaard [mailto:[hidden email]]
> Sent: Tuesday, May 13, 2008 4:36 PM
> To: [hidden email]
> Subject: Re: [ANN] warnings plugin 1.0
>
> 2008/5/13 Erik Ramfelt <[hidden email]>:
> > On Tue, May 13, 2008 at 1:44 PM, Hafner Ullrich
> > <[hidden email]> wrote:
> >  > Hi,
> >  >
> >  >  I created a new plug-in to parse the compiler warnings in the
> build log.
> >  >  The plug-in is based on the findbugs plug-in, so you
> will get all
>
> > >  features of the findbugs backend for free.
> >  >
> >  >  Currently, the following compilers are supported:
> >  >  - javac (maven-compiler-plugin)
> >  >  - Hudson HPI (maven-hpi-plugin)
> >  >  (- Eclipse java compiler is on its way, wait for release 1.1)  >
> > >  The parsing could be easily extended (currently only by adding a
> > new Java class), so feel free to add your parser regular
> expression in
>
> > the warnigns plug-in. (Or send me your expressions and I
> will add them
>
> > to the warnings codebase.)
> >
> >  Very cool, I have been wanting to have something like this for a
> while.
> >
> >  Could you add support for MSBuild warnings? Im not a regex
> guru but I
>
> > found the format here if you would like to make an attempt  
> >
> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio
> > -aware-error-messages-and-message-formats.aspx
> >  An example of MSBuild output can be found at  
> >
> http://build.sharpdevelop.net/ccnet/server/local/project/SharpDevelop-
> >
> 30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildPlugin.a
> > spx
>
> And I would love solaris C++ compiler or GCC style warnings
> :-) I don't
> have the format for them though.
>
> @erik: A error should stop the build so any errors will allways be at
> the bottom of the console, right ?
>
> best regards
> henrik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
In reply to this post by charpel
Yes, the name is text-finder!

http://hudson.gotdns.com/wiki/display/HUDSON/Text-finder+Plugin
 

> -----Original Message-----
> From: Harpel, Craig [mailto:[hidden email]]
> Sent: Mittwoch, 14. Mai 2008 16:07
> To: [hidden email]
> Subject: RE: RE: [ANN] warnings plugin 1.0
>
> I think its text finder, isn't it?
>
>
> -----Original Message-----
> From: Andrew Chandler [mailto:[hidden email]]
> Sent: Wednesday, May 14, 2008 9:57 AM
> To: [hidden email]
> Subject: RE: [ANN] warnings plugin 1.0
>
> I may be missing something but where is the text scanner
> plugin hosted?
> It
> didn't look like it was hosted on the hudson site.
>
> -----Original Message-----
> From: Hafner Ullrich [mailto:[hidden email]]
> Sent: Wednesday, May 14, 2008 1:59 AM
> To: [hidden email]
> Subject: RE: [ANN] warnings plugin 1.0
>
> > > Hi,
> > >
> > >  I created a new plug-in to parse the compiler warnings in
> > the build log.
> > >  The plug-in is based on the findbugs plug-in, so you
> will get all
> > > features of the findbugs backend for free.
> > >
> > [...]
> > Very cool, I have been wanting to have something like this for a
> > while.
> >
> > Could you add support for MSBuild warnings? Im not a regex
> guru but I
>
> > found the format here if you would like to make an attempt
> > http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
> l-studio-aware-error-messages-and-message-formats.aspx
> > An example of MSBuild output can be found at
> > http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
> >
> Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOut
> putBuildP
> l
> ugin.aspx
>
> That should be quite easy...
>
> Do you know a good HTML syntax coloring library for C# files
> (in Java of course;-)?
>
> >
> >
> > I guess the main purpose is to show warnings, but couldnt
> the plugin
> > also scan for errors? It would be cool if (potential) errors are
> > displayed in the build status page, that way the develoeprs may not
> > have to dig into the console log to find an error cause. (I think I
> > saw an email for this request a while ago.)
>
> Do you just want to scan for an error in the build log and
> then fail the build? Then you could use the text-scanner plugin!
>
> Or are the several errors to list? (In the same format as
> warnings?) Maybe an example would help...
>
> >
> >
> > //Erik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> --
> This message has been scanned for viruses and dangerous
> content by MailScanner, and is believed to be clean.
>
>
> --
> This message has been scanned for viruses and dangerous
> content by MailScanner, and is believed to be clean.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: RE: [ANN] warnings plugin 1.0

Andrew Chandler
In reply to this post by charpel
Probably right - I actually found the plugins now, I had somehow arrived at
a much smaller list of plugins on a page  on the hudson site but I wasn't
logged in at the time and I'm not sure steps to get there.  Now I know hwere
the real list of plugins is its much more impressive.
 

-----Original Message-----
From: Harpel, Craig [mailto:[hidden email]]
Sent: Wednesday, May 14, 2008 9:07 AM
To: [hidden email]
Subject: RE: RE: [ANN] warnings plugin 1.0

I think its text finder, isn't it?


-----Original Message-----
From: Andrew Chandler [mailto:[hidden email]]
Sent: Wednesday, May 14, 2008 9:57 AM
To: [hidden email]
Subject: RE: [ANN] warnings plugin 1.0

I may be missing something but where is the text scanner plugin hosted?
It
didn't look like it was hosted on the hudson site.

-----Original Message-----
From: Hafner Ullrich [mailto:[hidden email]]
Sent: Wednesday, May 14, 2008 1:59 AM
To: [hidden email]
Subject: RE: [ANN] warnings plugin 1.0

> > Hi,
> >
> >  I created a new plug-in to parse the compiler warnings in
> the build log.
> >  The plug-in is based on the findbugs plug-in, so you will get all
> > features of the findbugs backend for free.
> >
> [...]
> Very cool, I have been wanting to have something like this for a
> while.
>
> Could you add support for MSBuild warnings? Im not a regex guru but I

> found the format here if you would like to make an attempt
> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
l-studio-aware-error-messages-and-message-formats.aspx
> An example of MSBuild output can be found at
> http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
>
Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuildP
l
ugin.aspx

That should be quite easy...

Do you know a good HTML syntax coloring library for C# files (in Java of
course;-)?

>
>
> I guess the main purpose is to show warnings, but couldnt the plugin
> also scan for errors? It would be cool if (potential) errors are
> displayed in the build status page, that way the develoeprs may not
> have to dig into the console log to find an error cause. (I think I
> saw an email for this request a while ago.)

Do you just want to scan for an error in the build log and then fail the
build? Then you could use the text-scanner plugin!

Or are the several errors to list? (In the same format as warnings?) Maybe
an example would help...

>
>
> //Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
In reply to this post by Erik Ramfelt
> >> [...]
> >> Very cool, I have been wanting to have something like this for a
> >> while.
> >>
> >> Could you add support for MSBuild warnings? Im not a regex
> guru but I
> >> found the format here if you would like to make an attempt
> >> http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visua
> > l-studio-aware-error-messages-and-message-formats.aspx
> >> An example of MSBuild output can be found at
> >> http://build.sharpdevelop.net/ccnet/server/local/project/Sharp
> >>
> >
> Develop-30-CI/build/log20070805203556Lbuild.218.xml/MSBuildOutputBuild
> > Pl
> > ugin.aspx
> >
> > That should be quite easy...
>
> Cool.

MSBuild is added in release 1.2. Could you please check if this works
for you?
Warnings are mapped to priority NORMAL, errors to priority HIGH.
(The plug-in still is called "warnings" ;-)
I'm not sure whether I should change the priority to a new enum
(WARNING, ERROR, INFO), since the same backend is used by the other
plug-ins.

>
> > Do you know a good HTML syntax coloring library for C#
> files (in Java
> > of course;-)?
>
> No, I dont and the Java formatting will do for a first try.
> What library are you currently using? (Tried to do some quick
> googling, apparently the keywords c# and java are used alot
> on the web ;)

I'm using http://www.java2html.de/eclipse.html. This library is also
available
In the maven repository (anbother requirement).

Ulli

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] warnings plugin 1.0

Erik Ramfelt
On Fri, May 16, 2008 at 9:18 AM, Hafner Ullrich
<[hidden email]> wrote:
> MSBuild is added in release 1.2. Could you please check if this works
> for you?

It works fine, but I found two issues which I logged. But here are
some comments about the display

* Most of the file links does not work (ie the file cant be located).
Perhaps you could remove the link if it cant find the file? The
problem comes from my test MSBuild project builds sub projects, and
they output relative path of the files.

* It would be cool if the Category could be a link to a web page
describing the error. Perhaps this already is implemented. (It will
not work for MSBuild as there is no such web documentation)

* The whole header is bold right now and it makes it hard to scan the
warning list for similar warnings. How about making the only data
values as bold?

* If a description contains a http link, it would be nice if it could
be turned into a normal link.

regards
//Erik

> Warnings are mapped to priority NORMAL, errors to priority HIGH.
> (The plug-in still is called "warnings" ;-)
> I'm not sure whether I should change the priority to a new enum
> (WARNING, ERROR, INFO), since the same backend is used by the other
> plug-ins.
>
>>
>> > Do you know a good HTML syntax coloring library for C#
>> files (in Java
>> > of course;-)?
>>
>> No, I dont and the Java formatting will do for a first try.
>> What library are you currently using? (Tried to do some quick
>> googling, apparently the keywords c# and java are used alot
>> on the web ;)
>
> I'm using http://www.java2html.de/eclipse.html. This library is also
> available
> In the maven repository (anbother requirement).
>
> Ulli
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] warnings plugin 1.0

Erik Ramfelt
In reply to this post by Ulli Hafner-2
On Wed, May 14, 2008 at 9:00 AM, Hafner Ullrich
<[hidden email]> wrote:
>> And I would love solaris C++ compiler or GCC style warnings
>> :-) I don't have the format for them though.
>
> Hmm, without an example it is quite difficult to implement a parser...

I found this definition, dont know if it is applicable to GCC or c++ compilers:
http://www.gnu.org/prep/standards/standards.html#Errors

/Erik

>
> Ulli
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
In reply to this post by Erik Ramfelt
> * Most of the file links does not work (ie the file cant be located).
> Perhaps you could remove the link if it cant find the file?
> The problem comes from my test MSBuild project builds sub
> projects, and they output relative path of the files.

Are these files in the workspace? I already have a
"File finder" class for another plug-in...

>
> * It would be cool if the Category could be a link to a web
> page describing the error. Perhaps this already is
> implemented. (It will not work for MSBuild as there is no
> such web documentation)
>

For findbugs, pmd and checkstyle such an implementation (and
documentation) exist.
There is nothing comparable available for warnings, or is it?

> * The whole header is bold right now and it makes it hard to
> scan the warning list for similar warnings. How about making
> the only data values as bold?

Sure, that is a bug (I reused the template from the other plugins).
This is the same problem as above: there is nothing comparable available
for warnings, or is it?


>
> * If a description contains a http link, it would be nice if
> it could be turned into a normal link.
>
> regards
> //Erik
>
> > Warnings are mapped to priority NORMAL, errors to priority HIGH.
> > (The plug-in still is called "warnings" ;-) I'm not sure whether I
> > should change the priority to a new enum (WARNING, ERROR,
> INFO), since
> > the same backend is used by the other plug-ins.
> >
> >>
> >> > Do you know a good HTML syntax coloring library for C#
> >> files (in Java
> >> > of course;-)?
> >>
> >> No, I dont and the Java formatting will do for a first try.
> >> What library are you currently using? (Tried to do some quick
> >> googling, apparently the keywords c# and java are used alot on the
> >> web ;)
> >
> > I'm using http://www.java2html.de/eclipse.html. This
> library is also
> > available In the maven repository (anbother requirement).
> >
> > Ulli
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] warnings plugin 1.0

Erik Ramfelt
On Wed, May 21, 2008 at 1:15 PM, Hafner Ullrich
<[hidden email]> wrote:
>> * Most of the file links does not work (ie the file cant be located).
>> Perhaps you could remove the link if it cant find the file?
>> The problem comes from my test MSBuild project builds sub
>> projects, and they output relative path of the files.
>
> Are these files in the workspace? I already have a
> "File finder" class for another plug-in...

Yes, they are in the workspace. Im adding an issue for it.


>> * It would be cool if the Category could be a link to a web
>> page describing the error. Perhaps this already is
>> implemented. (It will not work for MSBuild as there is no
>> such web documentation)
>>
>
> For findbugs, pmd and checkstyle such an implementation (and
> documentation) exist.
> There is nothing comparable available for warnings, or is it?

After some fiddling with fiddler I discovered that VSExpress does a
SOAP query to a MS service to get the web pages for a warning. So it
is doable, the question if it is worth the job and the time to do it
in the builds. What do you think?


>> * The whole header is bold right now and it makes it hard to
>> scan the warning list for similar warnings. How about making
>> the only data values as bold?
>
> Sure, that is a bug (I reused the template from the other plugins).
> This is the same problem as above: there is nothing comparable available
> for warnings, or is it?

Im not following you here. What is comparable for MSBuild warnings?

//Erik

>
>
>>
>> * If a description contains a http link, it would be nice if
>> it could be turned into a normal link.
>>
>> regards
>> //Erik
>>
>> > Warnings are mapped to priority NORMAL, errors to priority HIGH.
>> > (The plug-in still is called "warnings" ;-) I'm not sure whether I
>> > should change the priority to a new enum (WARNING, ERROR,
>> INFO), since
>> > the same backend is used by the other plug-ins.
>> >
>> >>
>> >> > Do you know a good HTML syntax coloring library for C#
>> >> files (in Java
>> >> > of course;-)?
>> >>
>> >> No, I dont and the Java formatting will do for a first try.
>> >> What library are you currently using? (Tried to do some quick
>> >> googling, apparently the keywords c# and java are used alot on the
>> >> web ;)
>> >
>> > I'm using http://www.java2html.de/eclipse.html. This
>> library is also
>> > available In the maven repository (anbother requirement).
>> >
>> > Ulli
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [hidden email]
>> > For additional commands, e-mail: [hidden email]
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: [ANN] warnings plugin 1.0

Ulli Hafner-2
> >> * It would be cool if the Category could be a link to a web page
> >> describing the error. Perhaps this already is implemented.
> (It will
> >> not work for MSBuild as there is no such web documentation)
> >>
> >
> > For findbugs, pmd and checkstyle such an implementation (and
> > documentation) exist.
> > There is nothing comparable available for warnings, or is it?
>
> After some fiddling with fiddler I discovered that VSExpress
> does a SOAP query to a MS service to get the web pages for a
> warning. So it is doable, the question if it is worth the job
> and the time to do it in the builds. What do you think?

Well, I think calling a webservice is out of scope for me (and a
performance issue?).
For my other plug-ins I have the descriptions in the libraries (API or
xml files).
If there is an XML file (with an open license:-) it would simplify
things...

>
>
> >> * The whole header is bold right now and it makes it hard
> to scan the
> >> warning list for similar warnings. How about making the only data
> >> values as bold?
> >
> > Sure, that is a bug (I reused the template from the other plugins).
> > This is the same problem as above: there is nothing comparable
> > available for warnings, or is it?
>
> Im not following you here. What is comparable for MSBuild warnings?

Uups, sorry: on my machine an old version of the warnings plugin was
installed
with another bold vs. normal font bug (that I already fixed).

You are right, the layout makes not much sense if we only have a small
message for a warning.
For findbugs, etc. we have a short message and a HTML description. This
is not (yet?) the
case for warnings. At least for Java warnings there is no such
description available.
I'm already planning to add a table like view for warnings, maybe such
kind of view is
the best default for the warnings plug-in (Or changing the current
layout).

Ulli

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]