Obsolete PIO Core v3.6.5 is used (VS Code, can't upgrade)

Hi,
I’m using Visual Studio Code with Platform IO.
On every build task I get the message:

Obsolete PIO Core v3.6.5 is used (previous was 4.0.0a2)
Please remove multiple PIO Cores from a system:

When I enter “pip uninstall platformio”
I get

Uninstalling platformio-3.6.5:
Would remove:
c:\users\masterfx.platformio\penv\lib\site-packages\platformio-3.6.5.dist-info*
c:\users\masterfx.platformio\penv\lib\site-packages\platformio*
c:\users\masterfx.platformio\penv\lib\site-packages\scripts\99-platformio-udev.rules
c:\users\masterfx.platformio\penv\lib\site-packages\scripts\docspregen.py
c:\users\masterfx.platformio\penv\lib\site-packages\scripts\fixsymlink.py
c:\users\masterfx.platformio\penv\lib\site-packages\scripts\get-platformio.py
c:\users\masterfx.platformio\penv\lib\site-packages\scripts\install_devplatforms.py
c:\users\masterfx.platformio\penv\scripts\pio.exe
c:\users\masterfx.platformio\penv\scripts\piodebuggdb.exe
c:\users\masterfx.platformio\penv\scripts\platformio.exe
Proceed (y/n)?

After that the PIO command isn’t working as expected. When I restart VS Code it first installs the Platform IO core, but after installation I have the 3.6.5 back again. So whats wrong here?

I had a similar problem at one point… I somehow ended getting the 4.0.0 alpha updates rather than stable 3.6.x ones… IIRC I ended up deleting the entire .platformio folder so it could fully re-create itself.

Try deleting the c:\users\masterfx\.platformio (%userprofile%\.platformio) folder entirely, and let the vscode extension install platformio cleanly.

http://docs.platformio.org/en/latest/faq.html#multiple-pio-cores-in-a-system

1 Like

as @pfeerick says, just delete ~/.platformio/appstate.json solve the problem.

2 Likes