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

deploy spinner prints ANSI escape sequences in non-TTY environments, produces output without line breaks #1447

Closed
mootari opened this issue Jun 10, 2024 · 0 comments · Fixed by #1473
Labels
bug Something isn’t working

Comments

@mootari
Copy link
Member

mootari commented Jun 10, 2024

The deploy command uses clack's spinner to print the upload progress for files. When running the command in a non-interactive environment the output still contains ANSI escape sequences used to clear the line, producing output like the following where all spinner updates are joined into a single line:

�[?25l│
�[999D�[J◒  3 / 3 uploading example-report.html�[999D�[J◐  3 / 3 uploading example-report.html�[999D�[J◓  3 / 3 uploading example-report.html�[999D�[J◑  3 / 3 uploading example-report.html�[999D�[J◒  3 / 3 uploading example-report.html�[999D�[J◐  3 / 3 uploading example-report.html�[999D�[J◓  3 / 3 uploading example-report.html�[999D�[J◑  3 / 3 uploading example-report.html�[999D�[J◇  3 uploaded, 49 unchanged, 52 total.
�[?25hUploading build manifest... {

In most cases the output will also print color codes like [35m◒�[39m.

Related: #1446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant