Atmelsam/mkrzero - arm-none-eabi-g++ not found

I’m building for a MKRZERO device using Windows 10. The project was setup by a friend and he had it all working in VSCODE and PlatformIO on two machines. For some reason on my machine I’m getting

Building in release mode
Compiling .pio\build\mkr1000USB\src\main.cpp.o
'arm-none-eabi-g++' is not recognized as an internal or external command,
operable program or batch file.

I’ve found a few other threads here with similar situations, but none of the help has been helpful. I think I’m encountering a different issue and I’d appreciate help.

Here’s my platformio.ini:

; PlatformIO Project Configuration File
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
; Please visit documentation for the other options and examples

platform = atmelsam
board = mkrzero
framework = arduino
monitor_speed = 115200
lib_deps = 
	adafruit/Adafruit SleepyDog Library@^1.4.0
	adafruit/Adafruit GFX Library@^1.10.7
	adafruit/Adafruit SSD1306@^2.4.3
	adafruit/Adafruit BusIO@^1.7.3
	sparkfun/SparkFun VL53L1X 4m Laser Distance Sensor@^1.2.9
	sparkfun/SparkFun I2C Mux Arduino Library@^1.0.1
	sparkfun/SparkFun Qwiic Relay Arduino Library@^1.2.0

I’ve verified:

All instances of arm-none-eabi-g++.exe on my machine run on Windows. E.g:

~\.platformio\.cache\tmp\pkg-installing-ouvj7cyi\bin> .\arm-none-eabi-g++.exe --version
arm-none-eabi-g++.exe (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]


~\OneDrive - Kindel Systems\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\bin]> .\arm-none-eabi-g++.exe --version
arm-none-eabi-g++.exe (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]

What am I missing? What could be misconfigured?

This is the temporary install directory, it shouldn’t be there but in C:\Users\<user>\.platformio\packages\toolchain-gccarmnoneeabi (and then bin\)

Does that directory exist? If it exists, it may have been corrupted, try and delete it to trigger a redownload.

Yep, that directory is there. I deleted it and did Build again and a download was triggered.

As you guessed, it was somehow corrupted before, because this fixed it!

Thank you!!!