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

Exits with "Error: stream did not contain valid UTF-8" #109

Open
snej opened this issue Apr 28, 2023 · 2 comments
Open

Exits with "Error: stream did not contain valid UTF-8" #109

snej opened this issue Apr 28, 2023 · 2 comments

Comments

@snej
Copy link

snej commented Apr 28, 2023

I've started using pipecolor with the unit-test log output from the project I work on, and it's great.

However, in one scenario the output cuts off early with the message Error: stream did not contain valid UTF-8. I made sure this only happens when piping through pipecolor, so the message is not coming from our code.

It appears that something in a test of ours is writing some binary data to the log; so pipecolor is correct that there's invalid UTF-8 in the stream. However, it should not give up when this happens; it should just write the offending line as-is and go on to the next one. Otherwise it ends up hiding information from the user.

(PS: I'm running the latest version of pipecolor, built via cargo, on macOS 12.6.5.)

@dalance
Copy link
Owner

dalance commented May 16, 2023

I fixed it, and released v0.4.3.
Thanks!

@dalance
Copy link
Owner

dalance commented May 16, 2023

v0.4.3 was broken at macOS.
Please use v0.4.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants