-
Improvement
-
Resolution: Fixed
-
Minor
-
Windows Server 2012, Jenkins 1.589, Warnings-Plugin 4.4.7
Hi there,
as statet in this MSDN blog post a MSBuild-Warning may contain a subcategory, like in this real warning (note the additional word "Hint")
E:\workspace\project\subdir\file.sub1.sub2.pas(4522): Hint warning H2164: Variable 'lTaskDialog' is declared but never used in 'TDialog.ShowTaskDialog' [E:\workspace\projext\subdir\project.dproj]
Unfortunately the pre-shipped parser MSBuild does not recognise those kind of warning (or error, info,...)
The regular expression attached in MSBuild_pattern_subcategory.txt solved that problem for us.
We are using a custom parser for now, but it might be desirable to change
the pattern in default MSBuild Parser as the one attached is more close to the default behaviour in msbuild (see blog post).
[JENKINS-27914] MSBuild-Parser ignores optional Subcategory
Attachment | New: MSBuild_pattern_subcategory.txt [ 29444 ] |
Description |
Original:
Hi there, as statet in [this MSDN blog post|http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx] a MSBuild-Warning may contain a subcategory, like in this real warning (note the additional word "Hint") {quote} E:\workspace\project\subdir\file.sub1.sub2.pas(4522): *Hint* warning H2164: Variable 'lTaskDialog' is declared but never used in 'TDialog.ShowTaskDialog' [E:\workspace\projext\subdir\project.dproj] {quote} Unfortunately the pre-shipped parser MSBuild does not recognise those kind of warning (or error, info,...) The regular expression attached in[^MSBuild_pattern_subcategory.txt] solved that problem for us. We are using a custom parser for now, but it might be desirable to change the pattern in default MSBuild Parser as the one attached is more close to the default behaviour in msbuild (see blog post). Links: [MSDN blog post on VisualStudio error Messages|http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx] |
New:
Hi there, as statet in [this MSDN blog post|http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx] a MSBuild-Warning may contain a subcategory, like in this real warning (note the additional word "Hint") {quote} E:\workspace\project\subdir\file.sub1.sub2.pas(4522): *Hint* warning H2164: Variable 'lTaskDialog' is declared but never used in 'TDialog.ShowTaskDialog' [E:\workspace\projext\subdir\project.dproj] {quote} Unfortunately the pre-shipped parser MSBuild does not recognise those kind of warning (or error, info,...) The regular expression attached in [^MSBuild_pattern_subcategory.txt] solved that problem for us. We are using a custom parser for now, but it might be desirable to change the pattern in default MSBuild Parser as the one attached is more close to the default behaviour in msbuild (see blog post). Links: [MSDN blog post on VisualStudio error Messages|http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 162508 ] | New: JNJira + In-Review [ 196969 ] |
Interested in providing a pull request (incl. a test) that improves the regular expression?