Bug 1493017 - Tweak vscode tasks.json problemMatcher regexes to handle clang/Windows output - r=jya
authorGerald Squelart <gsquelart@mozilla.com>
Fri, 21 Sep 2018 10:00:59 +0000
changeset 493366 e0bbb4ea8ecb8ae59e1641fe2886e2ce81ea7190
parent 493365 1b266dbc1677be3768a4d2191d8d49d35ca2ef67
child 493367 65cd5f435d68e66c4e0aae02114b7f4aad529027
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1493017
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1493017 - Tweak vscode tasks.json problemMatcher regexes to handle clang/Windows output - r=jya The original regex could match linux&mac outputs that look like: `/[...]/ffmpeg/FFmpegVideoDecoder.cpp:315:6: error: expected expression` However on Windows the same outputs have a different line&column format: `c:/[...]/ffmpeg/FFmpegVideoDecoder.cpp(315,7): error: expected expression` Differential Revision: https://phabricator.services.mozilla.com/D6442
.vscode/tasks.json
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -26,17 +26,17 @@
       },
       {
         "label": "build",
         "type":"shell",
         "problemMatcher": {
           "owner": "cpp",
           "fileLocation": "absolute",
           "pattern": {
-            "regexp": "^.*?([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
+            "regexp": "^.*?([^\\s]*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
             "file": 1,
             "line": 2,
             "column": 3,
             "severity": 4,
             "message": 5
           }
         }
       },
@@ -47,17 +47,17 @@
         "windows": {
           "command": "\"\\mozilla-build\\start-shell.bat mach\""
         },
         "args": ["--log-no-times", "build", "binaries"],
         "problemMatcher": {
           "owner": "cpp",
           "fileLocation": "absolute",
           "pattern": {
-            "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
+            "regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
             "file": 1,
             "line": 2,
             "column": 3,
             "severity": 4,
             "message": 5
           }
         },
         "group": {
@@ -72,17 +72,17 @@
         "windows": {
           "command": "\"\\mozilla-build\\start-shell.bat mach\""
         },
         "args": ["--log-no-times", "build", "faster"],
         "problemMatcher": {
           "owner": "cpp",
           "fileLocation": "absolute",
           "pattern": {
-            "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
+            "regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
             "file": 1,
             "line": 2,
             "column": 3,
             "severity": 4,
             "message": 5
           }
         }
       },