JSON problem matchers should support "loop": true
in patterns other than the last one
#726
Labels
"loop": true
in patterns other than the last one
#726
Describe the enhancement
According to https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md#single-line-matchers:
However, I would like to be able to loop in the middle of a pattern, and then, once there are no more matches for that pattern, accumulate a couple more lines.
Code Snippet
In particular, the pattern I want to use is:
That is, an error message starts with a line
File "<FILE>", line <LINE>, characters <COLUMN>:
, followed by a line starting with eitherWarning:
orError:
, followed by a potentially multiline message which is recognized as ending with[<CODE>]
followed by a newline. (The matcher I wrote isn't perfect, and I end up needing four separate matchers: one for one-line messages, one for two-line messages (unless"loop": true
allows zero-or-more rather than one-or-more?), and one for three-or-more-line messages.)Additional information
Trying this out in mit-plv/fiat-crypto#910
The text was updated successfully, but these errors were encountered: