Toolchain Missing Error in MSDev

Having trouble compiling our code in the new MS Dev environment. Specifically, I am getting the following error:

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

Skipping build: google test exe ‘frcUserProgramTest:windowsx86-64:debug:googleTestExe’: Could not find valid toolchain for platform windowsx86-64
Skipping build: google test exe ‘frcUserProgramTest:windowsx86-64:release:googleTestExe’: Could not find valid toolchain for platform windowsx86-64
Skipping build: executable ‘frcUserProgram:windowsx86-64:debug:executable’: Could not find valid toolchain for platform windowsx86-64
Skipping build: executable ‘frcUserProgram:windowsx86-64:release:executable’: Could not find valid toolchain for platform windowsx86-64

I’m not having much luck googling what this means and what I am missing. Any help is appreciated.

Those are just warnings, you can skip those.

The reason theyre happening is because you must have hit the checkbox for enabling desktop support when creating the project, and then your system does not have full visual studio installed, which is where the desktop toolchain would come from.

You can disabled desktop support completely by running the WPILib: Change Desktop Support Enabled Setting command in vscode, and selecting no.

1 Like

Thanks. Worked perfect.

Dear Thad House,

I've loaded all the extensions and updated my java/ jave environment variable and everything I could think of on a new installation of VSCode on a Xubuntu (latest release) using C++ and when I go to build the code (the canonical mecanum drive code, given with the installation) gradle fails with 

"

Executing task: ./gradlew build generateVsCodeConfig -Dorg.gradle.java.home="/usr/lib/jvm/java-11-openjdk-amd64/" <

Skipping build: executable ‘frcUserProgram:debug:executable’: Could not find valid toolchain for platform linuxathena
Skipping build: executable ‘frcUserProgram:release:executable’: Could not find valid toolchain for platform linuxathena
Skipping build: google test exe ‘frcUserProgramTest:debug:googleTestExe’: Could not find valid toolchain for platform linuxathena
Skipping build: google test exe ‘frcUserProgramTest:release:googleTestExe’: Could not find valid toolchain for platform linuxathena

No Toolchain Found for roboRio
Run ./gradlew installRoboRioToolchain to install one!

You can ignore this error with -Ptoolchain-optional-roboRio
For more information, run with --info

FAILURE: Build failed with an exception.
"
I tried disabling desktop support via what you suggested and I still get this error. I think that I am close and it is something really simple, let me know what you might think I need to do. BTW, I tried
./gradlew installRoboRioToolchain” after digging around and finding the script and all and that didn’t fix it either since “find -name installRoboRioToolchain -print” didn’t find any target to gradlew. Then also I went to

https://launchpad.net/~wpilib/+archive/ubuntu/toolchain/

but I can’t decide which item to download. Is it just the frc-toolchain one OR are there dependencies.

Thank you for any help you can give this newbie. Yours, -Michael Crescimanno, professor of theoretical physics, YSU, and proud mentor of team 4601 “Circuit Birds”

What operating system are you on. That error is not being able to find the roborio compiler.

./gradlew installRoborioToolchain is the exact command you need to run. You wont find it with a find command or anything. You just need to run that directly from your project directory.

Hurrah!!! That worked! So, I am using xubuntu (linux) and thought that I had to run the gradlew command from inside the installation directory NOT the project directory. Once I did that later action all is well!! When it said “run gradlew InstallRoborioTooldhain” it really wasn’t clear to me from which place to run it…it matters. Thank you!!!
-Mike C., Physics YSU and Circuit Birds 4601 mentor!