Skip to content

Added IAR problem matcher (#10054)#10085

Merged
Colengms merged 3 commits intomicrosoft:mainfrom
morsisko:iar_problem_matcher
Nov 1, 2022
Merged

Added IAR problem matcher (#10054)#10085
Colengms merged 3 commits intomicrosoft:mainfrom
morsisko:iar_problem_matcher

Conversation

@morsisko
Copy link
Copy Markdown
Contributor

This pull requests adds IAR problem matcher.

Warning example that is generated by IAR compiler:

"D:\iar_test\main.c",6 Warning[Pe177]: variable "c" was declared but never referenced

There is one thing that needs to be said (not sure if it is issue or not). By default for some reasons IAR splits the error/warning message over multiple lines, if the message is too long. In such case problem matcher will catch only the first part of the message, for example:
Code_2022-10-30_23-45-24

However, there is an option that can be passed to IAR - --no_wrap_diagnostics in such situation the problem matcher works without any problem.
Code_2022-10-31_00-49-50

I tried to use the multiline problem matcher, however this doesn't look good in my opinion, plus from what I see the IAR message may be split over multiple lines (more than two), so it would be hard or even impossible to implement such problem matcher.

Code_2022-10-30_23-46-12

In my opinion best idea is to leave it as in my pull request. If someone want to get the whole message, they should use the --no_wrap_diagnostics IAR option.

Comment thread Extension/package.json Outdated
Comment thread Extension/package.json Outdated
@morsisko morsisko force-pushed the iar_problem_matcher branch from ac5966c to fb8706f Compare October 31, 2022 21:42
@morsisko
Copy link
Copy Markdown
Contributor Author

Requested changes has been implemented

@morsisko morsisko requested a review from sean-mcmanus October 31, 2022 21:43
@sean-mcmanus sean-mcmanus added this to the 1.13.4 milestone Nov 1, 2022
@Colengms Colengms merged commit 373e7fa into microsoft:main Nov 1, 2022
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 18, 2022
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.

3 participants