-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard to set up non-trivial problem matcher #24260
Comments
This is exactly what a multi line problem matcher is for. However it is not trivial due to the nature of this not being trivial with regexp. What kind of matcher did you try? Here is the matcher for eslint stylish matcher which have the same output structure: this.add('eslint-stylish', [
{
regexp: /^([^\s].*)$/,
file: 1
},
{
regexp: /^\s+(\d+):(\d+)\s+(error|warning|info)\s+(.+?)\s\s+(.*)$/,
line: 1,
character: 2,
severity: 3,
message: 4,
code: 5,
loop: true
}
]); Please remember that this matcher is defined in code but the tasks.json offers the same kind of functionality. Key might be the |
Can I apply
|
I would agree that having some way to designate a block of problem matcher regex entries as "loop true" would be beneficial in some cases. I'm working on an Angular 4 app that is running via a webpack-dev-server instance during development. Upon each save of a code file, the webpack instance recompiles the codebase and outputs any error. The problem is that the webpack instance will always output a blank line (\r) on the 1st line, then the error detail on the 2nd line, followed by a blank line (\r) on the 3rd line [if there's an additional error], followed by error detail on the 4th line, etc. For instance:
I can easily put in a regexp for If I could specify that the task problem matcher should look for looping matches against both regexps, then it would work perfectly in this case (and likely others). |
Would be solved by #59337, so closing as duplicate. |
Test tour #23385
When setting up the vue starter kit we had the following output structure:
Multiline patterns cannot match that.
The text was updated successfully, but these errors were encountered: