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

Enable auto-flushing of output to fix testfeed details mode #4153

Merged
merged 6 commits into from
Nov 26, 2024

Conversation

marcphilipp
Copy link
Member

@marcphilipp marcphilipp commented Nov 25, 2024

Overview

Prior to this PR, ConsoleLauncher created PrintWriters that wouldn't flush automatically when println is called which stopped the testfeed details mode from being useful. Moreover, it didn't initialized them with the right Charsets. Now, we rely on Picocli's initialization again which does both correctly.


Definition of Done

@marcphilipp marcphilipp self-assigned this Nov 25, 2024
@marcphilipp marcphilipp requested a review from sormuras November 25, 2024 19:52
Copy link
Member

@sormuras sormuras left a comment

Choose a reason for hiding this comment

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

record OutputStreamConfig(PrintWriter out, PrintWriter err) { ... } 🤓

@marcphilipp
Copy link
Member Author

marcphilipp commented Nov 26, 2024

It crossed my mind, too. 🙂 But then we couldn't encapsulate the properties.

@marcphilipp marcphilipp marked this pull request as ready for review November 26, 2024 07:26
@marcphilipp marcphilipp added this to the 5.12 M1 milestone Nov 26, 2024
@marcphilipp marcphilipp merged commit b8b5dc4 into main Nov 26, 2024
15 checks passed
@marcphilipp marcphilipp deleted the marc/fix-testfeed branch November 26, 2024 07:55
@marcphilipp marcphilipp mentioned this pull request Dec 6, 2024
1 task
marcphilipp added a commit that referenced this pull request Dec 11, 2024
marcphilipp added a commit that referenced this pull request Dec 11, 2024
Prior to this commit, `ConsoleLauncher` created `PrintWriters` that
wouldn't flush automatically when `println` is called which stopped the
`testfeed` details mode from being useful. Moreover, it didn't
initialized them with the right `Charsets`. Now, we rely on Picocli's
initialization again which does both correctly.

(cherry picked from commit b8b5dc4)
marcphilipp added a commit that referenced this pull request Dec 11, 2024
(cherry picked from commit d7e765c)
@marcphilipp marcphilipp modified the milestones: 5.12 M1, 5.11.4 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants