-
Notifications
You must be signed in to change notification settings - Fork 313
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
Do not append \n
for PROCESS since that output has all of the delim…
#7146
Do not append \n
for PROCESS since that output has all of the delim…
#7146
Conversation
…iters and can be chunked not per line.
@@ -237,19 +237,17 @@ void println(PrintOutput output) { | |||
} | |||
|
|||
private void println(String text, OutputType outputType) { | |||
if (outputType == OutputType.PROCESS) { |
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.
I think this was an attempt to not have extra \n
and there are few reasons to trim the output of the process otherwise.
outputType == OutputType.ERROR | ||
? ConsoleViewContentType.ERROR_OUTPUT | ||
: ConsoleViewContentType.NORMAL_OUTPUT); | ||
if (outputType != OutputType.PROCESS) { |
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.
Using separators "as is" for the process and adding potentially omitted ones for other output types.
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.
Thank you!
can we close this #7145 now? |
Yes! |
…iters and can be chunked not per line. (bazelbuild#7146) (cherry picked from commit f5f8f24)
* fixed bug where bazel runs with curses when using the old sync view (#7139) The old sync view does not use a pty based terminal and cannot handle bazel output correctly when it runs with curses. (cherry picked from commit 0fb3f81) * fixed bug where bazel automatically enables curses (#7143) Bazel is still run using a PtyCommandLine and seems to automatically enable curses when using the old sync view. (cherry picked from commit 2bea8d9) * Do not append `\n` for PROCESS since that output has all of the delimiters and can be chunked not per line. (#7146) (cherry picked from commit f5f8f24)
…iters and can be chunked not per line.
Checklist
Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.
Discussion thread for this change
Issue number: 7145
Description of this change