Open jstvz opened 1 week ago
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.
Thanks for the super simple repro! It's definitely a problem. We'll have to track down where this is coming from. As a temporary workaround you can export NODE_OPTIONS="--max-old-space-size=8192"
and that was enough memory to complete the conversion. Alternatively, you can find a version of the @salesforce/plugin-deploy-retrieve
plugin that accomplishes the conversion without bumping the heap size.
This issue has been linked to a new work item: W-16096068
@jstvz - I found that sf plugins install deploy-retrieve@3.6.9
or any version previous results in a successful conversion. Any version of the plugin after that results in OOM errors. Until the bug is fixed, you can either bump the heap size or install deploy-retrieve@3.6.9.
Summary
Converting source in large projects results in JavaScript heap out of memory error
Steps To Reproduce
git clone --depth 1 https://github.com/SalesforceFoundation/NPSP.git npsp; cd npsp
sf project convert source
Expected result
Actual result
System Information
Additional information
Attempted workaround from forcedotcom/salesforcedx-vscode#5589, but I still got heap errors on
apex 3.1.3 (user)
andapex 3.2.0 (user)
. However installing@salesforce/cli@2.36.8
worked: