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

Cannot open source file "vireg/port/megaAVR-0/PORT_t.h" (dependency of "Arduino.h") #1162

Closed
Gostas opened this issue Dec 20, 2020 · 1 comment

Comments

@Gostas
Copy link

Gostas commented Dec 20, 2020

I am writing code for the Arduino Uno WiFi rev. 2 which is a MegaAvr board. I get this error for every .cpp or .ino file I have and it always says the error is in the first include statement from the top. So first it says that PORT_t.h is a dependency of SPI.h and if I delete the #include <SPI.h>, it will move on to the next include which is #include <WiFiNINA.h> and say that it is a dependency of WiFiNINA.h.
Now when I go to each and every one of the files which intellisense says are dependent on PORT_t.h, I get "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit".
The code compiles and runs just fine though.

@adiazulay
Copy link
Contributor

This should be fixed in #1141

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants