-
Notifications
You must be signed in to change notification settings - Fork 78
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
sf package commands sometimes does not display error messages when operations fail #2434
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @andrewslater 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
Regarding the comment about not using the latest sf version. I noticed it didn't look like I was using the latest version but when I try to update I see this:
I uninstalled sf entirely, re-installed using these instructions but I still get the old version and the "not updatable" message when I try to update. |
I tested with the latest sf version and the problem still exists:
|
Here's another clue about this issue. I found that redirecting the output to a file was a no-op:
So I thought maybe it's outputting to stderr by default. Sure enough if I do this I can see the full output (with some control characters) in my output file:
/tmp/output.log contents:
BUT if you
So it seems like those control characters are deleting the line with the error message in them. And it seems like everything is output to sderr which is.....weird. |
I have the same issue for ex. when package 2 limit creation is exceed, instead of error I receive |
My friend Rai has the same issue
in this case he had forgotten the |
This issue has been linked to a new work item: W-14095032 |
Summary
Sometimes when
sf package
commands fail they do not display an error to the user.Steps To Reproduce
sf project generate
sf package create -n MyPackage -t Managed -r force-app
Expected result
Package version creation fails because there is no metadata in the
force-app
directory and an appropriate error message is displayed.Actual result
As a workaround customers can use the
--verbose
flag but many people are not aware of this:I suspect this may have something to do with the ncurses(?) progress display that is used when
--verbose
is not used. We have also seen this problem with other "package" commands such assf package convert
but the reproduction steps are much more involved (and unfortunatelysf package convert
does not yet support a--verbose
option)System Information
The text was updated successfully, but these errors were encountered: