-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Proper support for multiline messages #9699
Proper support for multiline messages #9699
Conversation
...ts/Snapshots/TerminalLogger_Tests.PrintBuildSummary_SucceededWithWarnings.Linux.verified.txt
Outdated
Show resolved
Hide resolved
...ts/Snapshots/TerminalLogger_Tests.PrintBuildSummary_SucceededWithWarnings.Linux.verified.txt
Outdated
Show resolved
Hide resolved
Oh, just had a thought about moving the first line: @baronfel that would break the VS Code problem matcher, wouldn't it? |
Oof, you're right. We'd need to check and update those |
I checked the matcher regex and it doesn't (for example) support all combinations we have for line/column info. For example case when |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
As discussed offline, we will not wait for VSCode update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very excited for this to land, thank you!
@MichalPavlik the diff is now showing 277 modified files. Something didn't go well with rebase/merge. |
I had to rebase to register this feature. I'm not sure what happened, but these additional changes should reflect current main. |
…ved project name from message line.
…he logic for appending a string to a `StringBuilder` object has been modified. The change corrects a potential issue where `endColumnNumber` was being used instead of `columnNumber` when `endLineNumber` is 0. Changes: 1. In the `TerminalLogger` class, the logic for appending a string to a `StringBuilder` object has been updated. Previously, if `endLineNumber` was 0, a string formatted with `lineNumber` and `endColumnNumber` would be appended. Now, a string formatted with `lineNumber` and `columnNumber` is appended instead. This change corrects a potential issue where `endColumnNumber` was being used instead of `columnNumber` when `endLineNumber` is 0.
Co-authored-by: Ladi Prosek <laprosek@microsoft.com>
…ved project name from message line.
…he logic for appending a string to a `StringBuilder` object has been modified. The change corrects a potential issue where `endColumnNumber` was being used instead of `columnNumber` when `endLineNumber` is 0. Changes: 1. In the `TerminalLogger` class, the logic for appending a string to a `StringBuilder` object has been updated. Previously, if `endLineNumber` was 0, a string formatted with `lineNumber` and `endColumnNumber` would be appended. Now, a string formatted with `lineNumber` and `columnNumber` is appended instead. This change corrects a potential issue where `endColumnNumber` was being used instead of `columnNumber` when `endLineNumber` is 0.
Co-authored-by: Ladi Prosek <laprosek@microsoft.com>
…_featureStatusMap` dictionary in the `Features` class. This feature, named `"TerminalLogger_MultiLineHandler"`, is set to `FeatureStatus.Available`, indicating that the TerminalLogger now has improved support for handling multi-line messages. List of Changes: 1. A new feature `"TerminalLogger_MultiLineHandler"` was added to the `_featureStatusMap` dictionary in the `Features` class within the `Microsoft.Build.Framework` namespace. This feature is set to `FeatureStatus.Available`, suggesting enhanced support for multi-line messages in TerminalLogger. Reference to Code Changes: - Addition of `"TerminalLogger_MultiLineHandler"` feature to `_featureStatusMap` dictionary in `Features` class.
8db59d9
to
9b6e5ae
Compare
I reconstructed commit stream on top of main, but it looks like I'm removing Jakub's changes for some reason.... |
Fixes #9666
Context
Adding proper support for multiline messages (with indentation).
Removed project name from message line.
Changes Made
Terminal logger uses different parsing and rendering.
Testing
Unit tests were updated + manual testing (Windows)
Notes
New output: