-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Windows console output unreadable #11363
Comments
workaround for this issue is to redirect console output to anything |
I can confirm experiencing this exact behavior. Also, this behavior appears to happens when a .terraform dir already exists. In my tests, deleting the .terraform dir, would eliminate the garble from the stdout output for 1 run until the directory was created again. Subsequent runs would show the garble returning. |
Confirm that this is still happening in v.8.7 |
This is a pleasure to deal with. |
I successfully reproduced this on Windows 10, finally. It seems like it's specifically errors that get garbled, as opposed to other non-error output. That suggests it's either the red coloring of the text that's creating trouble or the fact that errors get written to Plain text version of the above garble:
|
I have narrowed this down to our use of On Windows we wrap a writer from that library around each of stderr and stdout and then write to those handles through those writers. Internally The problem is that even when This sort of interleaving is actually theoretically possible on other platforms too, but because we tend to write to |
Thanks everyone for the patience here! This should be fixed in the next release. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform v0.8.4
Expected behavior:
Error messages are readable on Windows consoles (PowerShell or Windows Command Shell)
Actual behavior:
Error messages are garbled with stdout output:
C:\platform-engineering\terraform\qless\env\test1>terraform get -no-color
Get: file://C:/platform-engineering/terraform/qless/modules/vpc
Get: file://C:/platform-engineering/terraform/qless/modules/appserver
GEertr:o rf illoea:d/i/nCg: /Tpelrartaffoorrmm:- emnogdiunleee rrionogt/:t emrordaufloer mv/pqcl:e snsa/mmeo diusl enso/ta uar ovraal
id parameter
The text was updated successfully, but these errors were encountered: