PlatformIO Home not loading in VS Code (Error: ModuleNotFoundError)

I’m scratching my head around this issue by two days here, already reinstalled PlatformIO on my Mac around 30 to 40 times in every way I could find, and also switched back and forth between Python versions.

I can run the “pio home” command and opens normally on browser, but when I create a new project, it’s missing some stuff like: the main.cpp file, the .pio and .vscode folders.

Please, check the issue description in the GitHub link:

Also tried to set some of those stuff in VS Code:
// “platformio-ide.useDevelopmentPIOCore”: true,
// “platformio-ide.useBuiltinPIOCore”: false,
// “platformio-ide.useBuiltinPython”: false,
// “platformio-ide.customPATH”: “/Users/tarcisiocipriano/.platformio/penv/”,

Nothing seems to work… I was just creating my gadjets here, and suddenly this error started.

Can you

  1. Close VSCode.
  2. Open a new terminal
rm -rf /Users/tarcisiocipriano/.platformio/
  1. Follow Installer Script (Recommended) — PlatformIO latest documentation

To make sure you’re getting core 6.1.16.

Thanks for replying, I’ve done that too, also confirmed now that I have the 6.1.16 version.

What about using the dev version per this command?

No result. Still the same error :frowning:

CC @ivankravets maybe he knows more;

1 Like
  1. Please remove all settings in the VSCode related to the platformio-ide.*
  2. rm -rf /Users/tarcisiocipriano/.platformio/
  3. Restart VSCode

Everything should work. Also, please Troubleshooting — PlatformIO latest documentation

Not working, unfortunately I’ll stop using on Mac, I’ll setup a dev environment on a Raspberry, thanks guys!

I had a similar experience, I just had to click on the little alien face, see if this helps: https://community.platformio.org/t/visual-studio-code-platformio-ide-install-silently-fails/41895

Yeah, I already tried this multiple times as well, didn’t worked for me :frowning:

I had the same issue and it resulted from my employer’s SentinelOne installation marking the dependency bottle.py as malware. I was able to exclude that from SentinelOne’s scan and everything is working for me now.