First install of VS Code and WPI 2022. When going to create new project WPI Build Robot Code i get the following. I have read through posts, and I only found where OneDrive can cause this problem. OneDrive is not enabled on this computer. Other ideas?
‘gradlew’ is not recognized as an internal or external command,
operable program or batch file.
The terminal process “cmd.exe /d /c gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2022\jdk”” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
This error usually means you opened the wrong folder in vscode. The folder containing build.gradle and gradlew.bat needs to be the root folder opened in vscode. If it’s in a subfolder, that error will occur.
forgot to mention, I did a search and that file doesn’t exist anywhere. I reloaded WPI Install and watched it install gradle. I don’t know why it’s really not. I am an admin on this pc.
Can you share a link to your code in github? At the very least, a screenshot of your project in vscode (showing the file explorer and all the files at the root folder for your project)