Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Dependency error avr32/io.h #678

@ueberBrot

Description

@ueberBrot

Hey,

i started today using VS Code for programming Arduino sketches. I opened a sketch that I programmed with the Arduino IDE. After opening the file i selected my board and the arduino.json + c_cpp_properties.json files were created in the .vscode folder.
With the help of the "Show Fixes" dropdown menu I added the following to my c_cpp_properties.json file:

c_cpp_properties_json

I still have 2 warnings:

#include errors detected. Please update your includePath. IntelliSense features for this translation unit (D:\My\Path\to\the\script\myscript.ino) will be provided by the Tag Parser.

cannot open source file "avr32/io.h" (dependency of "SPI.h")

When I peek the definition it clearly shows that its not defined.

peek

However when I open the script with the Arduino IDE <SPI.h> works without any issues.
Why is that?

Hope you can help me.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions