Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse indexing not working

Tags:

I am using CDT in Eclipse 3.5.2 Galileo in Ubuntu.

My eclipse's indexer doesn't work at times. By that I mean when I ctrl click a function it says Could not find symbol in index. Also, F3 button click results in the same error message. Actually most of the places it is not working and works in very few places.

I have seen some other versions of Eclipse where under File menu a menu item listed for Indexing. Like File->Indexer->Rebuild.... But in my File menu there is no such menu item for the Indexer.

Will the only way be to use some other release of Eclipse or am missing something? Any pointers regarding this would be helpful.

like image 532
liaK Avatar asked Jul 06 '12 06:07

liaK


People also ask

What is indexing in eclipse?

Eclipse includes a background parser called 'Indexer' which is used to assist the developer with various kind of information, for example jumping to a variable declaration or definition. Basically it is a parser running in the background collecting information about the sources and building up that 'index' data base.


2 Answers

In my case nothing has worked and at last I did the following:

 1) Close the project  2) Delete the project(do not check from disk option)  3) create new project with existing code(use the deleted project path)  4) Successfully indexed my c++ code 
like image 176
sree Avatar answered Sep 21 '22 16:09

sree


To add paths containing code to parse, follow these steps :
1. Right click on the project
2. Select Properties
3. Go to C/C++ General
4. Go to Path and Symbols
5. If the paths are missing, add paths.

To re-parse the code follow these steps :
1. Right click on the project
2. Select Index
3. Rebuild

If this doesn't work, then you are out of luck. c++ is very difficult language to parse.

like image 35
BЈовић Avatar answered Sep 21 '22 16:09

BЈовић