I am trying to setup VSCode+PlatformIO on a new machine. I have probably set it up 100x on various machines and lab computers. This time, after installing VSCode and PlatformIO, I created a project for an Arduino UNO. At this point, everything looked like it was working as expected.
However, every single item in the Project Tasks is grayed out. Build, Upload, Monitor, Upload and Monitor, Clean, and Clean All are all grayed out. Even all the options under Platform, Dependencies, Advanced, etc. are grayed out.
I have tried the following (multiple times):
Deleted all the .vscode and .platformio folder.
Uninstalling and re-installing VSCode and PlatformIO
I use Windows and Chocolatey ( https://community.chocolatey.org ) and I think is easier to uninstall and install previous version of VS Code or other softwares.
A temporary solution without VSCode downgrading is to use VSCode Menu > Terminal > Run Task > PlatformIO > ...
Let’s wait for any feedback from the VSCode team. The part of code that contributes TasksTree to the PlatformIO IDE extension has not been changed since 2020. It looks like a regression bug in VSCode.
PlatformIO IDE v2.5.3 for VSCode is out. We added a workaround on our side. It is unclear how to hide private/internal commands from user space with the latest VSCode.