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

Source Progress bar causes output truncation #276

Closed
sjurgis opened this issue Jan 21, 2020 · 6 comments
Closed

Source Progress bar causes output truncation #276

sjurgis opened this issue Jan 21, 2020 · 6 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@sjurgis
Copy link

sjurgis commented Jan 21, 2020

Summary

Upon appearance of Source Progress bar, the remaining console output gets truncated to the window with (instead of wrapped into new line). Even output from non-sfdx commands (such as cat) gets truncated after, say, sfdx force:source:push (I believe the progress bar is used elsewhere).

Steps To Reproduce:

See screenshot - note last command output was truncated.
Screen Shot 2020-01-21 at 5 16 38 PM

Expected result

Output is wrapped just as before.

Actual result

Output is truncated (which hides important information from compile failure and causes corrupted output for remaining commands during shell session.

Additional information

Latest Catalina, sfdx, iterm, oh-my-zsh...
My default is iTerm + zsh, but I've tested with Terminal + bash and results were the same.

iTerm 3.3.7

sfdx-cli/7.42.1-e41dbeb8d9 darwin-x64 node-v10.15.3

@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/lwc-dev-server 1.0.10
├─ @oclif/plugin-help 2.2.1
└─ @oclif/plugin-update 1.3.9

@salesforce/sfdx-trust 3.0.5 (core)
analytics 1.2.1 (core)
generator 1.1.1 (core)
salesforcedx 47.15.0 (47.15.0)
├─ salesforcedx-templates 47.16.0
└─ salesforce-alm 47.14.0

sfdx-cli 7.42.1 (core)

Catalina 10.15.2 (19C57)

@sjurgis
Copy link
Author

sjurgis commented Jan 21, 2020

Given other issues with progress bar, perhaps we can get env variable to disable it?

@clairebianchi
Copy link
Collaborator

@sjurgis Thank you for letting us know, we will take a look

@pogilvie
Copy link

@clairebianchi. Could we please have an option to turn off the progress bar and revert back to the previous text only display?

@agoganian
Copy link

@clairebianchi Ditto, Please add an option to disable the progress bar. We're redirecting output to a log file

@clairebianchi
Copy link
Collaborator

We are fixing the truncation issue now and hopefully will have a fix by next week. If you run the command with --json you will not see the progress bar. What output are you using in your log file, the output form --json should provide you with the details you need.

@clairebianchi clairebianchi added the bug Issue or pull request that identifies or fixes a bug label Jan 31, 2020
@clairebianchi
Copy link
Collaborator

we have a fix for this issue and it will go out in next week's release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

4 participants