I reinstalled my PC and tried to open my old PlatformIO projects but I was getting
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
As I wanted my default project folder to be different to the default one, I used terminal to set this as follows:
platformio settings set projects_dir "C:\Users\Mat\PlatformIO-Projects"
Then in Windows file explorer I noticed .vscode folders under each project folder. I read a forum post somewhere that said you need to add the top level folder to the workspace, which I did, so I deleted these .vscode folders from the disk, removed all project subfolders from the workspace in VSC, then added the toplevel folder to the workspace:
I was expected the .vscode folder to re-appear in this toplevel directory after restarting VSC, however it has not and now I’m getting:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\Mat\Projects\PlatformIO-Projects\Sump Controller\src\main.cpp).
and multiple others like this:
cannot open source file "Arduino.h" (dependency of "Ethernet.h")
I then reinstalled PlatformIO within VSC but this hasn’t helped.
I’d like to reset and start over again, and set my default location for projects to my toplevel folder as above (not the default location in my home dir).
Help! Any ideas how to do this?