Skip to content
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

Added IAR problem matcher (#10054) #10085

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

morsisko
Copy link
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.

Extension/package.json Outdated Show resolved Hide resolved
Extension/package.json Outdated Show resolved Hide resolved
@morsisko morsisko force-pushed the iar_problem_matcher branch from ac5966c to fb8706f Compare October 31, 2022 21:42
@morsisko
Copy link
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