Wrapped Lines Break Custom Problem Matcher #6851
Labels
doc-bug
out of date, inaccurate, confusing content
help wanted
Issues identified as good community contribution opportunities
Does this issue occur when all extensions are disabled?: Yes
I saw this issue crop up on your GitHub for other problem matchers, but tbh it was super unclear if this was supposed to be fixed or not. microsoft/vscode#32042 makes it sound fixed, but then we have microsoft/vscode#152634 which sounds very similar.
Steps to Reproduce:
dotnet test
)error message
,fully qualified test name
, andline number
.Sample Task
TestMultiLine.ps1
Footnote
I spent like 6 hours trying to understand what the heck was going on, so some clarity on this would be wonderful.
As a side note the documentation on multi-line problem matcher patterns is super vague, from I've been able to discern mostly by trial, error, and searching VS Code GitHub. Is that when you have a multi-line pattern, you seemingly need to match every line in between, even if you do not care about those lines.
As far as I can tell nothing mentions that explicitly and the example in the docs Defining a multiline problem matcher "works" because the multi-lines they are matching are immediately after the first line they are matching. The docs do say This way you define a pattern per each line you want to match, but that's also not super obvious because I DON'T want to match them, I don't care about those lines. If someone could also confirm this that would be nice or I can log a documentation issue to give some better clarity on this so other people don't spend their entire night playing with regexes that work and consistently don't work in VS Code problem matchers....
The text was updated successfully, but these errors were encountered: