Skip to content

Conversation

@joelwurtz
Copy link
Contributor

@joelwurtz joelwurtz commented Aug 11, 2023

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Partial fix for #35012
License MIT
Doc PR

This pr does not fix #35012

However it fixes the second script wrote by @lyrixx (#35012 (comment)) with fiber and parallel output.

In short when there was multiple sections with max height, it was not taking into account the max height of other sections when doing a full rewrite, leading to erase more lines than intended.

@carsonbot

This comment was marked as resolved.

@joelwurtz joelwurtz force-pushed the fix/multiple-section-max-height branch from 1ffffc2 to 4fe2c53 Compare August 11, 2023 12:24
$expected .= 'Two'.\PHP_EOL.'Three'.\PHP_EOL.'Four'.\PHP_EOL;

rewind($this->stream);
$this->assertEquals(escapeshellcmd($expected), escapeshellcmd(stream_get_contents($this->stream)));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

escallesshellcmd is intended here, it's way better to debug output with this, as we can properly see escaped character when there is a failure :

image

@joelwurtz joelwurtz force-pushed the fix/multiple-section-max-height branch from 4fe2c53 to 28e9da6 Compare August 11, 2023 12:28
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

Works great! Thanks!

console-section.webm
@fabpot
Copy link
Member

fabpot commented Aug 12, 2023

Thank you @joelwurtz.

@fabpot fabpot merged commit a107488 into symfony:6.3 Aug 12, 2023
@joelwurtz joelwurtz deleted the fix/multiple-section-max-height branch August 14, 2023 07:37
@fabpot fabpot mentioned this pull request Aug 26, 2023
renovate bot added a commit to Lendable/composer-license-checker that referenced this pull request Aug 26, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [symfony/console](https://symfony.com) ([source](https://togithub.com/symfony/console)) | require | patch | `6.3.2` -> `6.3.4` | | [symfony/process](https://symfony.com) ([source](https://togithub.com/symfony/process)) | require | patch | `6.3.2` -> `6.3.4` | --- ### Release Notes <details> <summary>symfony/console (symfony/console)</summary> ### [`v6.3.4`](https://togithub.com/symfony/console/releases/tag/v6.3.4) [Compare Source](https://togithub.com/symfony/console/compare/v6.3.2...v6.3.4) **Changelog** (symfony/console@v6.3.3...v6.3.4) - bug [symfony/symfony#51378](https://togithub.com/symfony/symfony/issues/51378) \[Console] avoid multiple new line when message already ends with a new line in section output ([@&#8203;joelwurtz](https://togithub.com/joelwurtz)) - bug [symfony/symfony#51223](https://togithub.com/symfony/symfony/issues/51223) \[Console] Fix linewraps in `OutputFormatter` (@&#8203;maxbeckers) - bug [symfony/symfony#51355](https://togithub.com/symfony/symfony/issues/51355) \[Console] fix section output when multiples section with max height ([@&#8203;joelwurtz](https://togithub.com/joelwurtz)) </details> <details> <summary>symfony/process (symfony/process)</summary> ### [`v6.3.4`](https://togithub.com/symfony/process/compare/v6.3.2...v6.3.4) [Compare Source](https://togithub.com/symfony/process/compare/v6.3.2...v6.3.4) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Lendable/composer-license-checker). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzYuNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment