Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] avoid multiple new line when message already ends with a new line in section output#51378

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

joelwurtz
Copy link
Contributor

@joelwurtzjoelwurtz commentedAug 14, 2023
edited
Loading

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
Tickets#50382
LicenseMIT
Doc PR

When we write to the section with a new line in the message it ends up adding a double new line, it can be easily seen when we set a section as a console handler for the logs, each line of log will have a double new line ending adding a lot of noise.

I began to fix the implementation to correctly handle this case, but with all the logic of the max height and other stuff it appears to be way more complicated.

Simulating this case by removing the new line at the end of the message and recalling the write function with the newline parameter to true was way easier and avoid too many headcache when looking at the code.

Shouldfix#50382

@carsonbotcarsonbot added this to the6.3 milestoneAug 14, 2023
@joelwurtzjoelwurtzforce-pushed thefix/write-with-new-line-in-message branch 5 times, most recently from7b73257 tob8c2675CompareAugust 14, 2023 09:20
@nicolas-grekas
Copy link
Member

Thank you@joelwurtz.

@nicolas-grekasnicolas-grekas merged commit2991661 intosymfony:6.3Aug 16, 2023
@fabpotfabpot mentioned this pull requestAug 26, 2023
renovatebot added a commit to Lendable/composer-license-checker that referenced this pull requestAug 26, 2023
[![MendRenovate](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)[CompareSource](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 newline 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)[CompareSource](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 therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about theseupdates again.---- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, checkthis box---This PR has been generated by [MendRenovate](https://www.mend.io/free-developer-tools/renovate/). Viewrepository 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>
@danepowell
Copy link
Contributor

😢 This broke our project, which uses progress bars to build a checklist-style output. It results in too many lines being cleared when the progress bar advances:https://github.com/acquia/cli/issues/1620

I'd appreciate your input, as it's not obvious to me why it broke.

@chalasr
Copy link
Member

@danepowell Please consider submitting a new issue on this repo so that it's properly tracked

@danepowell
Copy link
Contributor

I opened#52446

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@maxbeckersmaxbeckersmaxbeckers left review comments

@lyrixxlyrixxlyrixx approved these changes

@welcoMatticwelcoMatticwelcoMattic approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
6.3
Development

Successfully merging this pull request may close these issues.

8 participants
@joelwurtz@nicolas-grekas@danepowell@chalasr@lyrixx@welcoMattic@maxbeckers@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp