Platformio-atom-ide: Arduino.h: file not found in the editor, but not in the compiler

Created on 29 Aug 2017  路  7Comments  路  Source: platformio/platformio-atom-ide

In Visual Studio Code, the part #include "Arduino.h" is underlined with red. This happens all the time, although the compiler works fine and everything compiles and uploads to the device. Here's a screenshot.

Now if I change #include "Arduino.h" to something totally invalid, say #include "Arduino1.h", the error message is different. Here's another screenshot.

Is this a bug or a misconfiguration from my end?

Most helpful comment

For me, that was happening after installing the mitaki28.vscode-clang extension.
After disabled It, the red underline disappeared.

All 7 comments

Please wait while VSCode rebuilds index...

@ivankravets
Thanks for your response. I'm sorry, I don't understand what that means. The program has been running for days, and there's nothing loading. Is there a way to actively activate this? Your comment made me look for this, and I ran "Rebuild Intellisense Index" command in VS Code, and got the result "PlatformIO: IntelliSense Index has been successfully rebuilt.", but that didn't change the red underline status and the problem still persists. Could you please elaborate or refer me to the docs that discuss this issue?

Please provide your platformio.ini file.

OK, after rebuilding the index, and actively changing the text forth and back from Arduino.h, it was able to find it. Thank you for your time :)

For me, that was happening after installing the mitaki28.vscode-clang extension.
After disabled It, the red underline disappeared.

disabled mitaki28.vscode-clang extension than ok

How i make the index for Arduino uno?

Was this page helpful?
0 / 5 - 0 ratings