VS Code can't find path to built-in core

Hello. I’ve been doing some projects using the VS Code extension. Everything worked fine until today where I started getting this error when I tried executing any command from the PlatformIO tab.

The terminal process failed to launch: Path to shell executable "c:\Users\[USERNAME]\Documents\PlatformIO\Projects\test\platformio.exe" does not exist.

I’ve tried different stuff from the forum, but I’ve yet to find anything that works.

Duplicate of Incorrect executable path (platformio.exe) and Problem: shell executable can't find “d:\Docs\PlatformIO\Projects\project_oled\platformio.exe”。

Please try this and let us know the result.

I did try the solution that is in the link you posted, but to no surprise, it didn’t change anything. Though I did manage to solve it in my end, albeit the solution is not of my taste.

Adding the folder with the executables to PATH seems to be a consistent workaround.
%USERPROFILE%\.platformio\penv\Scripts

1 Like