This is workaround for eclipse indexer problems. When I disable that option, my problems with eclipse and header files are gone.
Merges https://github.com/espressif/esp-idf/pull/1990
* In the list of providers, click "CDT GCC Build Output Parser" and type ``xtensa-esp32-elf-`` at the beginning of the Compiler command pattern. This means the full Compiler command pattern should be ``xtensa-esp32-elf-(g?cc)|([gc]\+\+)|(clang)``
+Navigate to "C/C++ General" -> "Indexer" property page:
+
+* Uncheck "Allow heuristic resolution of includes". When this option is enabled, Eclipse can make some mistakes when eclipse try to find project headers.
+
.. _eclipse-build-project:
Building in Eclipse