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
[Bug]: ProcessOutput Releases w/o Line Breaks #670
Comments
Thank you for reporting this @straub! I shouldn't have refactored this part before releasing a major version but I am glad you caught it early on. TBH, I am not fully myself today so I did not give it a fair share of testing but the release should be out soon with the given fix. Even though disabling the process output part is not very convenient as a renderer option, it is now doable without passing your own implementation. You can check out the related section https://listr2.kilic.dev/renderer/process-output.html, a bit after the pipeline finishes. |
# [6.1.0](v6.0.4...v6.1.0) (2023-04-11) ### Bug Fixes * add options to processoutput fix eol problem ([e6d6474](e6d6474)), closes [#670](#670) * **process-output:** make everything optional ([148cb81](148cb81)) ### Features * add related documentation to process output and update with feature flag ([c1ede63](c1ede63))
# [6.1.0](v6.0.4...v6.1.0) (2023-04-11) ### Bug Fixes * add options to processoutput fix eol problem ([e6d6474](e6d6474)), closes [#670](#670) * **process-output:** make everything optional ([148cb81](148cb81)) ### Features * add related documentation to process output and update with feature flag ([c1ede63](c1ede63))
🎉 This issue has been resolved in version 6.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you for the quick response! Unfortunately, using the new For now, I'm taking your recommendation and making a custom implementation of // Hide all console output from tasks at completion.
class QuietProcessOutput extends ProcessOutput {
release () {
Object.values(this.stream)
.forEach((stream) => stream.release());
this.stream.stdout.write(ANSI_ESCAPE_CODES.CURSOR_SHOW);
this.active = false;
}
} |
Thank you for the feedback. I am honestly a bit sick today and not feeling my self but I will give this another go and fix this permanently so will reopen the issue to inform you back whenever it is done. |
Please don't rush on my account. Feel better soon! |
🎉 This issue has been resolved in version 6.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
6.2 resolved my issues! Streams are releasing with no extra blank lines :) I'm using |
No problems at all. I am glad it was a quick fix for you and thank you again for reporting the issue. Have a very nice day! |
Replication of the Problem
Problem
Hi there,
I'm trying to use Listr2@6 in my CLI, but when tasks have console output, line breaks are lost during
release()
. The output comes out all glued together in one line, which is difficult to read.(Also, is there a way to opt out of output during release? I'd prefer to hide it entirely, but I couldn't see a related option in the docs / source.)
Let me know if you need further details!
Environment
MacOS Ventura 13.2.1
Node.js 16.20.0
iTerm2 3.4.19
listr2@6.0.3
Log Output
Preflight
The text was updated successfully, but these errors were encountered: