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

Do not append \n for PROCESS since that output has all of the delim… #7146

Merged

Conversation

dkashyn-sfdc
Copy link
Contributor

…iters and can be chunked not per line.

Checklist

  • I have filed an issue about this change and discussed potential changes with the maintainers.
  • I have received the approval from the maintainers to make this change.
  • This is not a stylistic, refactoring, or cleanup change.

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

@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Dec 10, 2024
@@ -237,19 +237,17 @@ void println(PrintOutput output) {
}

private void println(String text, OutputType outputType) {
if (outputType == OutputType.PROCESS) {
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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.

Copy link
Collaborator

@LeFrosch LeFrosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@LeFrosch LeFrosch merged commit f5f8f24 into bazelbuild:master Dec 10, 2024
7 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Dec 10, 2024
@tpasternak
Copy link
Contributor

can we close this #7145 now?

@dkashyn-sfdc
Copy link
Contributor Author

can we close this #7145 now?

Yes!

ujohnny added a commit to ujohnny/intellij that referenced this pull request Dec 17, 2024
…iters and can be chunked not per line. (bazelbuild#7146)

(cherry picked from commit f5f8f24)
mai93 pushed a commit that referenced this pull request Dec 17, 2024
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
Development

Successfully merging this pull request may close these issues.

6 participants