Steps to reproduce:
1. Have a project open.
2. Exit eclipse.
3. Make some changes and rebuild your project from command line.
4. Start eclipse again. Since files have changed Eclipse will trigger a re-index.
This first indexing seem to miss some include paths, but works fine after re-index. Maybe Eclipse starts the indexing too fast, before the Providers have provided the paths to the indexer?
- Is it CDT that should have asked providers for paths before starting the indexing?
- Or is it CMAKE_EXPORT_COMPILE_COMMANDS that should report paths to CDT earlier, before the indexing is started?
I have not seen this issue in Oxygen, but happens all the time in Eclipse 2018-12 with CDT 9.6.0.201812111211.
cmake4eclipse 1.13.0 is used.
Includes and defines from Language Providers are fine. However the indexer does not seem to use these includes in the first run.