-
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
force:project:create --json
sometimes results in malformed output with Error: ENOENT
trying to rename an sf.log
file
#2209
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. |
This issue has been linked to a new work item: W-13586057 |
This is not just an issue with $ sfdx force:org:display -u <username> --json
[Error: ENOENT: no such file or directory, rename 'C:\Users\Scott\.sf\sf.log' -> 'C:\Users\Scott\.sf\sf.log.0'] {
errno: -4058,
code: 'ENOENT',
syscall: 'rename',
path: 'C:\\Users\\Scott\\.sf\\sf.log',
dest: 'C:\\Users\\Scott\\.sf\\sf.log.0'
}
[Error: ENOENT: no such file or directory, rename 'C:\Users\Scott\.sf\sf.log' -> 'C:\Users\Scott\.sf\sf.log.0'] {
errno: -4058,
code: 'ENOENT',
syscall: 'rename',
path: 'C:\\Users\\Scott\\.sf\\sf.log',
dest: 'C:\\Users\\Scott\\.sf\\sf.log.0'
}
[Error: ENOENT: no such file or directory, rename 'C:\Users\Scott\.sf\sf.log' -> 'C:\Users\Scott\.sf\sf.log.0'] {
errno: -4058,
code: 'ENOENT',
syscall: 'rename',
path: 'C:\\Users\\Scott\\.sf\\sf.log',
dest: 'C:\\Users\\Scott\\.sf\\sf.log.0'
}
{
"status": 0,
"result": {
...
}, It's worth pointing out that while the |
This issue also occurs when running
|
I've started to see this when running the
force:project:create
command for JSON output:As you can tell, the embedded error causes the JSON output to be malformed resulting in downstream issues when trying to unmarshal it for processing. I would expect such an error to be either added to the JSON document written to stdout in a properly structured manner, or written to stderr.
The text was updated successfully, but these errors were encountered: