Platformio in Vscode not workign anymore: "PlatformIO Core is not installed"

I had it installed previously on my Windows 11 machine but now it is not workign anymore

Tried restarting and updating Computer, Vscode and Platformio.

Tried uninstalling Platformio in vscode and reinstalling again, same result.

Tried removing ~/.platformio with no success

I am getting this error:

Error: PlatformIO Core is not installed
	at Q (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:6660)
	at N (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:7061)
	at c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10820
	at new Promise (<anonymous>)
	at EA (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10694)
	at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
	at async Module.lA (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10409)
	at async _.getWebviewContent (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\dist\extension.js:1:4528)
	at async _.newPanel (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\dist\extension.js:1:3996)
	at async _.toggle (c:\Users\Sebastian\.vscode\extensions\platformio.platformio-ide-3.3.4-win32-x64\dist\extension.js:1:3555)
	at async cf._executeContributedCommand (file:///c:/Users/Sebastian/AppData/Local/Programs/Microsoft%20VS%20Code/08d4889f9e/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:544:48874)

As far as I understood, I should not have to install platformio core myself, right?

Vscode info:

Version: 1.140.0 (user setup)
Commit: 07f806f999227108933c2e30515b26eecc1fda74
Date: 2026-09-30T10:38:38+02:00
Electron: 43.7.3
ElectronBuildId: 15386805
Chromium: 150.0.7871.250
Node.js: 24.21.0
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.89-7
@github/copilot-sdk: 1.0.15-preview.4
OS: Windows_NT x64 10.0.26200

Open a new Windows terminal and run:
pio --version

If Windows says pio is not recognized, Core is probably missing or its PATH entry is broken.

Indeed it is not found. Thank you!

I did find it under ~.platformio\penv\Scripts\pio.exe

But when running I get this - is this fine or another/related problem?

~\.platformio\penv\Scripts\pio.exe --version
C:\Users\Sebastian\.platformio\penv\Lib\site-packages\requests\__init__.py:92: RequestsDependencyWarning: Unable to find acceptable character detection dependency (chardet or charset_normalizer).
  warnings.warn(
PlatformIO Core, version 6.2.0

It is indeed missing from PATH on my system. Should I add ~\.platformio\penv\Scripts\ or more? Also, just to regular user path, right?

Added it to path and now it works again.

Interestingly microsoft defender blocked something, but compiling and uploading still worked for me

The RequestsDependencyWarning indicates that the Python environment is missing chardet or charset_normalizer. Since PlatformIO Core still reports version 6.2.0, it is not preventing Core from running in this case.

So reinstalling PlatformIO was unnecessary. The broken or missing PATH entry was the actual problem. Glad that it is working now.