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

Pass ForceNoAlign to ensure msbuild output is parseable by the vscode problem matcher #6340

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Sep 12, 2023

When the terminal size is adjusted, msbuild can alter the output making it unparseable by the vscode problem matcher. This flag makes msbuild not attempt to align the output based on the terminal size.
See https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2022

This flag is also used by devkit for a similar reason, see https://devdiv.visualstudio.com/DevDiv/_git/vs-green?path=/tools/msbuild/Directory.Build.rsp&version=GBmain&line=16&lineEnd=17&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents (internal)

Resolves #6309

Fixed:
image

Before:
image

@dibarbet dibarbet requested a review from a team as a code owner September 12, 2023 01:17
@dibarbet
Copy link
Member Author

@dotnet-policy-service rerun

@ShreyasJejurkar
Copy link

Any idea why it says cpp?
image

@dibarbet
Copy link
Member Author

Any idea why it says cpp? image

That is defined here - https://github.com/microsoft/vscode/blob/24739b3e01f8f7d27efa33e7ff9101fb8157032d/src/vs/workbench/contrib/tasks/common/problemMatcher.ts#L1928

I believe because this is used for either cpp or C#. At some point we may need to change the problem matcher, but its not high priority for me at the moment

@dibarbet
Copy link
Member Author

@dotnet-policy-service rerun

@dibarbet dibarbet merged commit c2f47ad into dotnet:main Sep 21, 2023
8 checks passed
@dibarbet dibarbet deleted the forcenoalign branch September 21, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid file reported in Problems list
3 participants