Rebuilding the same target (no code changes) re-indexes the whole project
Describe the bug Building a target re-indexes the whole project. (this is particualrly bad since indexing the whole project can take 30min-1h with >10k source files)
To Reproduce Steps to reproduce the behavior:
- Have a project with a build target.
- Click on the build target to have it built (cmake, ninja, indexing is happening).
- After it finishes, click on the build target again (cmake, ninja, indexing is happening again).
Expected behavior Rebuilding a target should not re-index the whole project. Possible Preferred behaviors:
- Only changed files should be indexed gain
- No automatic indexing
Useful Information2.1.2.202007111250
- Which OS do you use: macOS Catalina
- Cmake version: 3.18.4
Sorry, I cannot be helpful here since it is code in CDT that is triggering indexing. Cmake4eclipse is not involed in indexing.
Too bad, thank you.
But to spin this train of thought a bit further (which also goes a bit into the direction of my other open issue): Could you split/expose the functionality that is used to rerun cmake or even just the one that re-populates the discovered directories (e.g. via button or key combination)?
In this way, I could manually trigger an update of the discovered directories and "re-indexing" when I saw a need for it.