Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuilding the same target (no code changes) re-indexes the whole project #144

Open
DennisSchiefer opened this issue Nov 4, 2020 · 2 comments

Comments

@DennisSchiefer
Copy link

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:

  1. Have a project with a build target.
  2. Click on the build target to have it built (cmake, ninja, indexing is happening).
  3. 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
@15knots
Copy link
Owner

15knots commented Nov 7, 2020

Sorry, I cannot be helpful here since it is code in CDT that is triggering indexing. Cmake4eclipse is not involed in indexing.

@DennisSchiefer
Copy link
Author

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.

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

No branches or pull requests

2 participants