Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse indexer runs every time I start my program

The Eclipse indexer runs from the beginning every time I start my C++ program. Indexing this large program takes 10 minutes so it would help productivity if it could reuse the index it generated before.

This is Eclipse Kepler (4.3.1) SR1 Build id: 20130919-0819 with CDT on Oracle Linux.

[edit] To clarify, I'd like to reuse the index instead of turning off the indexer altogether.

like image 276
Howard Rubin Avatar asked Feb 14 '14 17:02

Howard Rubin


1 Answers

Are you sure the indexer isn't running because you just did a build? By default Eclipse projects are set up to refresh the entire project after a build. I always set this to only refresh the directories that are affected by the output of my build process (e.g. "ProjectTopLevel/Build".

You can specify which path(s) the indexer will refresh after a build is completed:

  1. Project -> Properties
  2. Click on "C/C++ Build" in the tree on the left
  3. On the right, select the "Refresh policy" tab
  4. "Delete..." to remove the resource that points to your project's top level directory.
  5. "Add resource..." and specify the directories that are affected by your build.
like image 64
jri Avatar answered Sep 30 '22 09:09

jri