Hello,
I have 2 private libraries into my ESP-32 project that compile and work correctly. But I don’t understand why mylib2 (very close to mylib1) display compile errors in VSCode.
I have the following architecture (based on Lilygo project)
Root
examples
myproject
lib
mylib1
mylib2
.git
myfile.h
myfile.cpp
If I open myfile.cpp I got an error on #include “myfile.h”
If I open myfile.h I got an errir on #include <Arduino.h>
I have the same logic with mylib1 without any errors. And the main project compile everything correctly.
I think the issue is related to the code C++ interpreter that highlight wrong errors but I don’t know how to tell to platformio or vscode the right info to fix the library dependencies.