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.

Possibly related… I am in the same boat re: PlatformIO Home page not loading, but I haven’t seen any errors (maybe I don’t know where to look). I’ve also uninstalled, deleted ~/.platformio directory, restarted VScode, … the entire suite of install debug regulars. Claude couldn’t figure it out either.

Can you try

  1. Close VSCode
  2. Add PlatformIO to your PATH (docs)
  3. In a terminal / command line prompt, execute pio home. Does it throw any errors?
>pio home

  ___I_
 /\-_--\   PlatformIO Home
/  \_-__\
|[]| [] |  http://127.0.0.1:8008/
|__|____|________________________

Open PlatformIO Home in your browser by this URL => http://127.0.0.1:8008/
PIO Home has been started. Press Ctrl+C to shutdown.

PlatformIO was already in the PATH. I discovered that PlatformIO was not installed somehow (thus, pio was unknown symbol), so I 'dnf install’ed it. After some .ini file tweaking and setting up a service, I can now access it from any machine on the LAN, but VScode no longer shows the PlatformIO home icon and Ctrl-Shift-P doesn’t give you any PlatformIO options other than the .ini file and the extension’s main page, as it did before going direct to browser.

Project naming seems to be Windows influenced - came out ‘Projects\<projectName>’ which is probably not what was intended, so I made a Projects and a <projectName> under that. It seems okay now.