Does your Windows username have spaces? Accented characters? Punctuation?
I notice your profile here is “Göran Nybom” – I suspect your username may have the accented ‘ö’ character. That causes problems sometimes. I’m not sure if it’s Windows, PlatformIO or python that suffers.
Can you create a new user without accents, spaces and punctuation, install VSCode and PlatformIO again and try another build. That should work.
Thank you for your very fast reply.
Understand me right, it works fine with the small workaround,
But it took some hours to find out that solution.
I´m well aware about the accents. I never use them as “users”.
In this case the user “name” was actual “gnyb”.
Just would like to contribute if somebody else get stuck in the same problem.
I installed the new cross-platform PowerShell as VSCode suggested and that fixed the issue for me. I tried reinstalling PlatformIO first but that didn’t solve it. I closed VSCode, installed the Win64 MSI from Releases · PowerShell/PowerShell · GitHub (VSCode sent me to 7.2.6), re-opened VSCode, and after about a minute, VSCode’s “Output” tab said it was installing PlatformIO Core, and after that, compiling worked again like it did about last year when I used it last. I no longer have the platformio.exe not found error.