Unable to build cloned project from gitlab/github

I built a project on one laptop, and pushed it to a gitlab repo. From another laptop, I cloned the repo into a blank folder and then attempted to build the project.

Even after managing vendor libraries, to add ctre to the project, when I select the wpilib: build robot code option , I first am asked to select either a cpp or java build.

After selecting cpp, the terminal reports…

Executing task: gradlew build --offline -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <

‘gradlew’ is not recognized as an internal or external command,
operable program or batch file.

What step am I missing to allow the cloning and building of a robot project between computers?

Thank you.

md

Oh, btw, both computers can build robot projects otherwise.

as evidenced by the following if I am in a different project

Executing task: gradlew build -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <

Starting a Gradle Daemon (subsequent builds will be faster)

Starting Daemon

First, what folder are you opening in VS Code? You need to be opening the one with gradlew.bat as the root folder. Do you have that? Also, did those files get uploaded to git properly? You should have a gradlew and a gradlew.bat file in git.

is the structure of the project…

Looking at it, it appears that I may have cloned it into the directory, but the project created a subdirectory under the folder.

I will re-clone and see if I am successful. Stay tuned. Thanks Thad,

You can just open that pathweaverrobotv5 folder in github, but yeah thats the issue. Thats also why you were getting a message thats saying no team number is set. Delete that top level .wpilib folder (not the one in the pathweaverrobotv5 subfolder).

Thanks all good after I cloned without the extra level.

Executing task: gradlew generateVsCodeConfig -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <

Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 1m 53s
1 actionable task: 1 executed

Now, Thad, hinting at the project name, and not wanting to hijack my own thread, but any idea when the instructions on how to read and follow pathweaver paths in c++/java code will be ready? ;->

I have no clue. I don’t work with that part much.