Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Stumped by indexer!(Tokens are not found in index after much effort)
Stumped by indexer! [message #733920] Wed, 05 October 2011 19:52 Go to next message
Eclipse UserFriend
I am building an application and libraries used by the app in one workspace -- a half dozen projects in total. When I get into files that are part of the libraries, many tokens are not found in the index.
I have learned that paths must be in C/C++ General > Paths and Symbols. Beyond that there are some fundamental questions I have not been able to answer:
1) are paths entered in C/C++ General > Paths and Symbols searched recursively?
2) is there ONE index for the whole workspace, or one per project
2.5) if there is only ONE, it should not matter in which project I list the paths to search, correct?
3) is it possible to see progress of the indexer, like what folder it is working in?
Re: Stumped by indexer! [message #733968 is a reply to message #733920] Thu, 06 October 2011 03:18 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
2) is there ONE index for the whole workspace, or one per project

One per project.

3) is it possible to see progress of the indexer, like what folder it is working in?
* Create a file containing
# turns on tracing for the cdt-core plugin
org.eclipse.cdt.core/debug=true

# Reports sequence of files indexed
org.eclipse.cdt.core/debug/indexer/activity=false

# Reports statistics for indexer
org.eclipse.cdt.core/debug/indexer/statistics=false

# Reports unresolved inclusions for indexer
org.eclipse.cdt.core/debug/indexer/problems/inclusion=false

# Reports scanner-problems for indexer (other than unresolved includes)
org.eclipse.cdt.core/debug/indexer/problems/scanner=false

# Reports syntax-problems for indexer
org.eclipse.cdt.core/debug/indexer/problems/syntax=false

# Reports problems for indexer, including inclusion-, scanner-, syntax- and 
resolution-problems.
org.eclipse.cdt.core/debug/indexer/problems=false


* Start eclipse from the console with 'eclipse -debug <options file>'
* you will get debug output in the console

What would do best in your case is sharing the index.
see http://www.eclipse.org/forums/index.php/m/661544/?srch=export+symbols#msg_661544
Re: Stumped by indexer! [message #734031 is a reply to message #733920] Thu, 06 October 2011 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Jim Walseth wrote on Wed, 05 October 2011 19:52

3) is it possible to see progress of the indexer, like what folder it is working in?

You can enable indexer label decorations in Preferences->General->Appearance->Label Decorations. The indexed files will have a green dot decorator in Project Explorer.

Andrew
Re: Stumped by indexer! [message #734406 is a reply to message #734031] Fri, 07 October 2011 12:24 Go to previous message
Eclipse UserFriend
Thanks Alex and Andrew! The label decorations have been particularly useful in seeing what is happening.
The situation is complicated by
- we are working with non-standard CDT, the QNX-issued Momentics IDE.
- presence of a 'convenience project' (non-compiling) that just 'imports' (links not copies) our hierachical (many subfolders) source file system.

Conveniently, this 'file system' project displays our source as a tree, and double clicking them opens them in the IDE. When is open, files are only visible there. The projects that compile the sources only show the source folders.
When I close the 'file system' project, source files become visible in include folders of other projects and they can be selected, and then right-click for Index->Update with modified files, forcing them into the index. This works for the moment but is not really sustainable, so we will be restructuring the workspace and getting rid of the file system project.

Thanks again.

PS Can anyone point to a discussion (which must exist) of dealing with hierachical file systems in Eclipse?
Previous Topic:import qtcreator project in Helios (or other eclipse)
Next Topic:OSX Hello World
Goto Forum:
  


Current Time: Wed Jul 30 17:52:11 EDT 2025

Powered by FUDForum. Page generated in 0.03252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top