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).

      Links: MSDN blog post on VisualStudio error Messages

          [JENKINS-27914] MSBuild-Parser ignores optional Subcategory

          Ulli Hafner added a comment -

          Interested in providing a pull request (incl. a test) that improves the regular expression?

          Ulli Hafner added a comment - Interested in providing a pull request (incl. a test) that improves the regular expression?

          JAM Software added a comment -

          It will take some time, but we are interested.
          Might be possible to accomplish a pull request
          during the next month.

          What kind of test are you referring to? We have
          a lack of java developers so i'm a bit curious.

          JAM Software added a comment - It will take some time, but we are interested. Might be possible to accomplish a pull request during the next month. What kind of test are you referring to? We have a lack of java developers so i'm a bit curious.

          Ulli Hafner added a comment - - edited

          One additional test in the class MsBuildParserTest.java that correctly reads an example file in your message format (subcategory). (And the changed regular expression should not break any of the other tests, too These tests typically are just a view lines long, you can basically clone this example.

          Ulli Hafner added a comment - - edited One additional test in the class MsBuildParserTest.java that correctly reads an example file in your message format (subcategory). (And the changed regular expression should not break any of the other tests, too These tests typically are just a view lines long, you can basically clone this example .

          JAM Software added a comment -

          Ahh, okay! Thank you very much for clarifying. We will see what we can do

          JAM Software added a comment - Ahh, okay! Thank you very much for clarifying. We will see what we can do

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java
          src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java
          src/test/resources/hudson/plugins/warnings/parser/issue27914.txt
          http://jenkins-ci.org/commit/warnings-plugin/7d83faece8d4cfba557a664da6bf8f53018debed
          Log:
          Merge pull request #58 from x3ntrix/master

          [FIXED JENKINS-27914] Support of subcategories in MsBuild parser

          Compare: https://github.com/jenkinsci/warnings-plugin/compare/81106442ff35...7d83faece8d4

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java src/test/resources/hudson/plugins/warnings/parser/issue27914.txt http://jenkins-ci.org/commit/warnings-plugin/7d83faece8d4cfba557a664da6bf8f53018debed Log: Merge pull request #58 from x3ntrix/master [FIXED JENKINS-27914] Support of subcategories in MsBuild parser Compare: https://github.com/jenkinsci/warnings-plugin/compare/81106442ff35...7d83faece8d4

            drulli Ulli Hafner
            jamsw JAM Software
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: