Trying to deploy and getting "ended with error spawn C:\WINDOWS\system32\cmd.exe ENOENT"
Started occurring yesterday after the new update.
I am on Windows 10
_Originally posted by @skygiven in https://github.com/forcedotcom/salesforcedx-vscode/issues/734#issuecomment-437352235_
I am having this same issue on Windows 10
Can you provide more information on how _HOW_ you are deploying? Are you right-clicking a folder, is it deploying to a scatch org or sandbox? Are you using a package.xml file? Exact repro steps will be helpful.
Thanks!
Moving comment from other issue:
I am getting same issue as skygiven and taalgaard and ericrsmith35.
When I right click an Apex class , when I select "SFDX: Deploy Source to Org", I get:
C:\WINDOWS\system32\cmd.exe ENOENT
however if I select "SFDX: Retrieve Source from Org", it completes successfully
If I copy the sfdx force:source:deploy --sourcepath command from the output into the terminal, it completes successfully.
In other words I am able to successfully push the code to my sandbox from VS Code from the CLI, however when running the command directly from VS Code using the "SFDX: Deploy Source to Org", it fails and says that the path to my cmd.exe does not exist.
Exact same scenario and test results as ntotten. Wednesday it worked fine. Now I cannot right click and deploy the file. I can retrieve files by right clicking. I did notice that there was an extension upgrade yesterday. Wonder if that had anything to do with it?
I also did a new install on Windows 8 computer to see if it was just an issue with my Windows 10 system and am receiving the same error when trying to deploy a file.
For those who are also experiencing the issue was it working for you before yesterdays update?
I am experiencing the same issue, and I am pretty sure that the deploy source to org was working yesterday.
My first attempts to deploy from VS Code were made yesterday 8 PM EST and I was getting this same error from the start.
Hi, sorry for the problems you're experiencing. We're currently working on a fix and will release it as soon as possible. We'll keep this thread up to date.
Same issue on Windows 7. I wasted my time trying to debug. Is there someplace that lists issues so I don't spend my time thinking it was just my machine. Guess i'll have to check here
@protivakid This is the place that lists issues.
We will have the fix released soon. Apologies for the problems.
We have a fix for this now, it's currently going through our test/release pipeline and should be available soon in the marketplace.
The fix is out now in the marketplace as part of version 44.6.1. Again, apologies to everyone impacted and thanks for your patience.
Thanks @lcampos ... both the deploy and retrieve commands are working from VS Code for me now
getting same error on authorizing the org. Please help
Most helpful comment
The fix is out now in the marketplace as part of version 44.6.1. Again, apologies to everyone impacted and thanks for your patience.