PlatformIO Community

Cannot open source file "Arduino.h"


Code compiles and arduino specific intellisense seems to work but Arduino.h is highlighted in error with the following error shown

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\User\Documents\repos…\src\main.cpp).

cannot open source file “Arduino.h”

If I click the light bulb and follow to the include path It has just one line


Is that correct?


Please remove .vscode folder from a project and restart VSCode.