indexer missing whole directories [message #199330] |
Thu, 09 August 2007 17:22  |
Eclipse User |
|
|
|
Originally posted by: buntinas.Where.I.Work
I find that there are whole include directories that the indexer misses.
I see the path for the include directory is in the discovered include
paths (properties->c/c++ general->paths and symbols->include->gnu c), so
the build parser found the path.
But I can't F3 things that are declared there.
I also notice that I can't browse those files in the include browser.
When I drag a file that includes one of the unindexed include files, it
shows all of the included files, but the unindexed ones don't have an
arrow next to them, so I can't browser them and there's a little yellow
thing in the bottom left corner of their ".h" icon.
I'm using Eclipse Eudora Version: 3.3.0 Build id: I20070621-1340 and CDT
Version: 4.0.0.200706261300 Build id: 200706261300.
I'm using the full indexer, and none of the three checkboxes are checked
under that. I set my discovery options to "automate the discovery of
paths and symbols". The tool chain is linux gcc anc gnu make builder.
Is there anything else I can try?
Thanks,
Darius
|
|
|
|
Re: indexer missing whole directories [message #199476 is a reply to message #199453] |
Mon, 13 August 2007 10:51   |
Eclipse User |
|
|
|
Originally posted by: buntinas.Where.I.Work
Thanks Fabian for your suggestions! There are a few c++ files in the
project somewhere, but the files I'm having trouble with are all c.
I had enabled editor problem annotation. Before doing a make I saw that
the editor gave me errors that the include files weren't found. After
the make, when the include paths were discovered, I no longer got those
error markers, but the include files still weren't indexed.
Is there any way to enable debugging output from the indexer? Something
where is outputs which files it's indexing, and/or which files it's not
and why?
Thanks,
-d
On 08/13/2007 06:59 AM, Fabian Wein wrote:
> Hi,
>> paths (properties->c/c++ general->paths and symbols->include->gnu c), so
>> the build parser found the path.
> You are sure, that it is no C++ stuff?
>
> I suggest to enable the indexer errors:
> Preferences->C/C++->Editor->Hovers -> Enable Editor problem annotation = on
>
> The fast indexer is good enough.
>
> CU, Fabian
|
|
|
Re: indexer missing whole directories [message #200043 is a reply to message #199330] |
Wed, 22 August 2007 09:50  |
Eclipse User |
|
|
|
Darius Buntinas wrote:
>
> I find that there are whole include directories that the indexer misses.
> I see the path for the include directory is in the discovered include
> paths (properties->c/c++ general->paths and symbols->include->gnu c), so
> the build parser found the path.
>
> But I can't F3 things that are declared there.
>
> I also notice that I can't browse those files in the include browser.
> When I drag a file that includes one of the unindexed include files, it
> shows all of the included files, but the unindexed ones don't have an
> arrow next to them, so I can't browser them and there's a little yellow
> thing in the bottom left corner of their ".h" icon.
>
> I'm using Eclipse Eudora Version: 3.3.0 Build id: I20070621-1340 and CDT
> Version: 4.0.0.200706261300 Build id: 200706261300.
>
> I'm using the full indexer, and none of the three checkboxes are checked
> under that. I set my discovery options to "automate the discovery of
> paths and symbols". The tool chain is linux gcc anc gnu make builder.
>
> Is there anything else I can try?
>
> Thanks,
> Darius
You might try turning on some of those checkboxes. By default, the
indexer won't index files that it thinks aren't being built. If the
files are actually not built, or if some bug makes CDT think that
they're not being built, then the indexer will skip them.
To see what files are actually indexed you can turn on tracing for the
CDT indexer:
* use command line option -debug <options-file>
* put the following in the options file:
# turns on tracing for the cdt-core plugin
org.eclipse.cdt.core/debug=true
# Reports statistics for indexer
org.eclipse.cdt.core/debug/indexer/statistics=true
# Reports when and which files get indexed
org.eclipse.cdt.core/debug/indexer/activity=true
# Reports problems for indexer
org.eclipse.cdt.core/debug/indexer/problems=false
===========================
Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt
|
|
|
Powered by
FUDForum. Page generated in 0.09915 seconds