When I click “Build Robot Code” or “Deploy Robot Code” it says “The terminal shell path “cmd.exe” does not exist”. I erased FRC VS CODE and reupload it but it didn’t work. What can I do?
It’s likely that your windows installation is broken, as that’s what this error is commonly associated with. Please reinstall Windows and then the WPILib Programming Environment
But it was working before. I don’t understand why it gives that error now.
cmd.exe is the windows command shell. It is usually at c:/Windows/System32/cmd.exe and C:/Windows/SysWOW64/cmd.exe. Check to see if this file exists, and if the directory/folder is in your $PATH environment variable.
In any case, I would try a reboot before a reinstall of windows.
“Working before”, it was working before what exactly. An update? The update to 2020. A ton can change.
Does it gradlew build
work if you open a Command Prompt or Powershell window? If you’re able to open Command Prompt (cmd.exe) at all, then Windows is definitely not “broken” and likely doesn’t need to be reinstalled. If you don’t get the error when running the gradle build command in cmd or powershell, then it’s a VSCode issue. If the command executes and completes successfully, then you can safely ignore it and continue on.
Yeah when I upgraded it, it started to give that error
Yes it works. However, the roborio can’t get it. For example, when I first give ./gradlew build and deploy commands, it worked. I could control the robot but I wanted to change some buttons commands. When I change the code and redeploy it, it didn’t get the code. Roborio gets the code but the buttons that I’ve changed, didn’t change. That’s why I’m trying to fix this error.
I fixed it. Thank you for all of your helps
It may help others in the future if you describe how you fixed it.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.