Hi,
I’m using PlatformIO(v. 1.10.0) and Visual Studio Code for Arduino Programming. I’ve only installed vsc, the platformio plugin and the microsoft c/cpp intellisense plugin (0.26.3 insiders 2).
Every include line is underlined red and I got “Source could not be found check path…” but at compile time everything is uploaded to the board and is working.
I’m using an Arduino Nano board.
I’ve already deleted .vscode folder many times and used the “Rebuild IntelliSense Index”.
I`ve although run the “C/C++ Reset IntellisenseDatabase” command in the terminal.
The main.cpp include part:
#include <Bounce2.h>
#include <EEPROM.h>
#include <Servo.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <TeaTimer.h>
#include <Arduino.h>
The platformio.ini:
[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
framework = arduino
monitor_speed = 115200
upload_port = /dev/cu.usbserial-141210
lib_deps = Bounce2, Servo
And the c/c++ settings.json:
"arduino.path": "/Applications/Arduino.app",
"arduino.additionalUrls": [
"http://arduino.esp8266.com/stable/package_esp8266com_index.json"
],
"C_Cpp.updateChannel": "Insiders",
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.clang_format_sortIncludes": true,
"editor.formatOnType": true,
"[cpp]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"C_Cpp.default.intelliSenseMode": "msvc-x64",
"platformio-ide.useDevelopmentPIOCore": true
}
The code compiles fine. There are only the include errors in the editor and therefore no code completion.