Skip to content

Fix issues with msCompile problem matcher#182167

Merged
Tyriar merged 3 commits into
microsoft:mainfrom
akbyrd:fix-mscompile-matcher
May 22, 2023
Merged

Fix issues with msCompile problem matcher#182167
Tyriar merged 3 commits into
microsoft:mainfrom
akbyrd:fix-mscompile-matcher

Conversation

@akbyrd
Copy link
Copy Markdown
Contributor

@akbyrd akbyrd commented May 11, 2023

Closes #178202

  • "fatal error" was not being matched. This occurs when including a file that cannot be found.
  • The "Code" column in the problems view was not being populated. This was caused by the "source" not being set for the problem matcher.
  • Treat the whitespace before the project number in msbuild output as optional. It's not always there.

Before
image

After
image

I couldn't find any existing tests for problem matchers I could copy or extend, unfortunately.

- "fatal errors" were not matched. These occur when an included file cannot be found. Also, msbuild has an extra space between the two words.
- Make whitespace before the project number option. It's not always present.
- Specify the source as "cpp". Error codes don't show up in the problems view when a source isn't set.
Tyriar
Tyriar previously approved these changes May 22, 2023
Comment thread src/vs/workbench/contrib/tasks/common/problemMatcher.ts Outdated
meganrogge
meganrogge previously approved these changes May 22, 2023
@meganrogge meganrogge requested a review from Tyriar May 22, 2023 16:18
Comment thread src/vs/workbench/contrib/tasks/common/problemMatcher.ts Outdated
@Tyriar Tyriar enabled auto-merge May 22, 2023 17:09
@Tyriar Tyriar merged commit e901230 into microsoft:main May 22, 2023
@akbyrd akbyrd deleted the fix-mscompile-matcher branch May 22, 2023 17:38
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

msCompile problem matcher does not match "fatal error"

3 participants