Trying to build project fails immediately

Is there any particular reason you’re using the WSL Bash terminal? If you use either the regular command prompt, or powershell (or even the git bash terminal), the pio command should work fine, but the WSL Bash shell doesn’t seem be working properly.

If you’re not sure how to change it, open up the command palette and type in shell for Terminal: Select Default Shell
image