pipecolor icon indicating copy to clipboard operation
pipecolor copied to clipboard

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

Open snej opened this issue 2 years ago • 2 comments

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.)

snej avatar Apr 28 '23 23:04 snej

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

dalance avatar May 16 '23 01:05 dalance

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

dalance avatar May 16 '23 01:05 dalance