Teensy 2.0 empty project has include errors

Hi there,

I just created a clean teensy2.0 project in VScode PIO. However intellisense does not like the fact that it cannot find certain Arduino.h header files. (The first one it’s whining about is avr/interrupt.h).

When I check c_cpp_properties.json I only see these paths:

project/include
project/src
.platformio/packages/framework-arduinoteensy/cores/teensy
.platformio/packages/framework-arduinoteensy/cores
.platformio/packages/framework-arduinoteensy/libraries/<lots of different libraries>
.platformio/packages/tool-unity

The compiler according to the file is

/.platformio/packages/toolchain-atmelavr@1.50400.190710/bin/avr-gcc.exe

Can anyone help me please?

Does the project compile when with a minimal

#include <Arduino.h>
void setup() {}
void loop(){}

src/main.cpp or what’s the error message?

It does compile, however intellisense comes with the

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit 
cannot open source file "avr/interrupt.h" (dependency of "Arduino.h")C/C++(1696)

error.

Try doing a Ctrl+Shift+P → Rebuild Intellisense.

If that does not help, please show the list of your installed VSCode extensions.

Rebuilding the index did not work. Here is my extension list:

Nothing out of the ordinary. If it builds, the files must be there. Can you share a whole screenshot of VSCode with the red lines and the “problems” tab open?

Of course!
Here we are:

Does the problem persist if you create the project on the regular C drive and switch to it using the project environment switcher?

Yes unfortunately. Created a project on C:/users/%user%/test and it gave the same behaviour.
Edit: I have found C:\Users\%user%\.platformio\packages\framework-arduinoteensy\cores\teensy3\avr\interrupt.h but somehow it doesn’t give.

Open a CLI and execute pio upgrade --dev. Then again do a Ctrl+Shift+P → Rebuild Intellisense. What’s the full content of the .vscode/c_cpp_properties.json?

These are the file contents:

 //
// !!! WARNING !!! AUTO-GENERATED FILE!
// PLEASE DO NOT MODIFY IT AND USE "platformio.ini":
// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
//
{
    "configurations": [
        {
            "name": "PlatformIO",
            "includePath": [
                "c:/Users/jesse/TeensyLoader/teensy_on_c_drive_test/include",
                "c:/Users/jesse/TeensyLoader/teensy_on_c_drive_test/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/cores/teensy",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/cores",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ADC",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/AccelStepper/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_NeoPixel",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_STMPE610",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_VS1053",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_nRF8001",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_nRF8001/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/AltSoftSerial",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Artnet",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Audio",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Audio/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Bounce",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Bounce2/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/CapacitiveSensor",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/CryptoAccel/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/DS1307RTC",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/DmxSimple",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/DogLcd",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/EEPROM",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/EasyTransfer",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/EasyTransferI2C",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Encoder",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Encoder/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Entropy",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Ethernet/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FNET/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FastCRC",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FastLED",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexCAN",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexCAN_T4",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexIO_t4/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexiTimer2",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FreqCount",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FreqMeasure",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FreqMeasureMulti",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FrequencyTimer2",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ILI9341_t3",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ILI9488_t3/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/IRremote",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Keypad/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LedControl/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LedDisplay",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LiquidCrystal/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LiquidCrystalFast",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LittleFS/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LowPower",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/MFRC522/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/MIDI/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Metro",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/MsTimer2",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/NXPMotionSense",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/NXPMotionSense/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/NativeEthernet/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/OSC",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/OctoWS2811",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/OneWire",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PS2Keyboard",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PS2Keyboard/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PWMServo",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Ping",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PulsePosition",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/QuadEncoder",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/RA8875",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/RadioHead",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ResponsiveAnalogRead/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SD/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SPI",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SPIFlash",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ST7735_t3",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SdFat/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SerialFlash",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Servo",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ShiftPWM",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Snooze/src",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SoftPWM",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SoftwareSerial",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TFT_ILI9163C",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Talkie",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TeensyThreads",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Time",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TimeAlarms",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TimerOne",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TimerThree",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TinyGPS",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Tlc5940",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TouchScreen",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/USBHost_t36",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/USBHost_t36/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/UTFT",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/VirtualWire",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/WS2812Serial",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Wire",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Wire/utility",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/XBee",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/XPT2046_Touchscreen",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/i2c_t3",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ks0108",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ssd1351",
                "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/x10",
                "C:/Users/jesse/.platformio/packages/tool-unity",
                ""
            ],
            "browse": {
                "limitSymbolsToIncludedHeaders": true,
                "path": [
                    "c:/Users/jesse/TeensyLoader/teensy_on_c_drive_test/include",
                    "c:/Users/jesse/TeensyLoader/teensy_on_c_drive_test/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/cores/teensy",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/cores",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ADC",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/AccelStepper/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_NeoPixel",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_STMPE610",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_VS1053",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_nRF8001",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Adafruit_nRF8001/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/AltSoftSerial",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Artnet",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Audio",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Audio/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Bounce",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Bounce2/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/CapacitiveSensor",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/CryptoAccel/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/DS1307RTC",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/DmxSimple",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/DogLcd",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/EEPROM",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/EasyTransfer",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/EasyTransferI2C",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Encoder",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Encoder/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Entropy",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Ethernet/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FNET/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FastCRC",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FastLED",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexCAN",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexCAN_T4",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexIO_t4/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FlexiTimer2",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FreqCount",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FreqMeasure",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FreqMeasureMulti",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/FrequencyTimer2",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ILI9341_t3",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ILI9488_t3/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/IRremote",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Keypad/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LedControl/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LedDisplay",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LiquidCrystal/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LiquidCrystalFast",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LittleFS/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/LowPower",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/MFRC522/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/MIDI/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Metro",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/MsTimer2",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/NXPMotionSense",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/NXPMotionSense/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/NativeEthernet/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/OSC",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/OctoWS2811",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/OneWire",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PS2Keyboard",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PS2Keyboard/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PWMServo",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Ping",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/PulsePosition",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/QuadEncoder",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/RA8875",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/RadioHead",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ResponsiveAnalogRead/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SD/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SPI",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SPIFlash",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ST7735_t3",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SdFat/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SerialFlash",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Servo",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ShiftPWM",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Snooze/src",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SoftPWM",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/SoftwareSerial",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TFT_ILI9163C",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Talkie",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TeensyThreads",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Time",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TimeAlarms",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TimerOne",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TimerThree",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TinyGPS",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Tlc5940",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/TouchScreen",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/USBHost_t36",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/USBHost_t36/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/UTFT",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/VirtualWire",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/WS2812Serial",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Wire",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/Wire/utility",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/XBee",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/XPT2046_Touchscreen",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/i2c_t3",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ks0108",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/ssd1351",
                    "C:/Users/jesse/.platformio/packages/framework-arduinoteensy/libraries/x10",
                    "C:/Users/jesse/.platformio/packages/tool-unity",
                    ""
                ]
            },
            "defines": [
                "PLATFORMIO=50201",
                "ARDUINO_ARCH_AVR",
                "ARDUINO_TEENSY2",
                "USB_SERIAL",
                "ARDUINO=10805",
                "TEENSYDUINO=154",
                "CORE_TEENSY",
                "F_CPU=16000000L",
                "LAYOUT_US_ENGLISH",
                ""
            ],
            "cppStandard": "c++11",
            "compilerPath": "C:/Users/jesse/.platformio/packages/toolchain-atmelavr@1.50400.190710/bin/avr-gcc.exe",
            "compilerArgs": [
                "-mmcu=atmega32u4",
                ""
            ]
        }
    ],
    "version": 4
}

Yeah those look exactly like mine, no problems.

Can you temporarily disable all extensions but C/C++ by Microsoft and PlatformIO, restart VSCode, rebuild the IntelliSense again and see if anything changes?

Just a quick question in between - You do have it working using a clean project with the teensy2.0 and get no IntelliSense warning?

Yes, it works without problems for me.

Curious. Got all extensions disabled, still the same result.
When you follow Arduino.h => WProgram.h => avr/interrupt.h, where is the file stored?
When I follow the missing links is is always an avr\*.h file so I’m thinking that if these are all in the same location and I am missing them, that I should just replace them, maybe they got lost in installation.


It’s in the toolchain folder, where I would expect it.

Weird, I have just all the files in the same places. I do have both toolchain-atmelavr@1.50400.190710 and toolchain-atmelavr installed, but I’m not sure if that should make a difference. (I have also programmed with AVR platform back in time.)

Teensy 4.13.1 is the latest available and also the version I’m using.

If we’re both on the same basic system regarding PlatformIO version (5.2.1), PIO extension version (v2.3.3), the list of activated extensions, Teensy platform (4.13.1), VSCode 1.61.1 (Microsoft version, not VSCodium or anything else) and Windows 10 x64, I’m out of ideas what else it could be. Please open an issue in Issues · platformio/platformio-vscode-ide · GitHub.

I opened the issue. IntelliSense not opening certain avr header files on empty teensy 2.0 project · Issue #81 · platformio/platform-teensy · GitHub

errmm… not sure if it has anything to do with anything, but in the original screenshot the program has a Serial.print statement in the loop() function but the Serial.begin statement had been commented out.