Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexing strategy configuration
Indexing strategy configuration [message #236119] Sun, 19 July 2009 12:11 Go to next message
Yevgeny Shifrin is currently offline Yevgeny ShifrinFriend
Messages: 208
Registered: July 2009
Senior Member
Hi,

Under Window->Preferences->C/C++->Indexer there is an "Indexing strategy"
which has 2 options selected by default:
1) Automatically update the index
2) Update index immediately after every file change.

I don't understand the exact meaning of these options. For example if
option 1) is selected and option 2 is not. I change some cpp file and
press save. When will the index be updated? Is there any documentation on
this?

Thanks,
Yevgeny
Re: Indexing strategy configuration [message #478744 is a reply to message #236119] Thu, 06 August 2009 15:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yevgeny,

> 1) Automatically update the index
This option control whether the indexer will update itself automatically
in the background, or whether you need to manually tell the indexer to
refresh based on changes. To manually update index, right click on a
C/C++ Project, choose Index->Update with Modified Files.

> 2) Update index immediately after every file change.
This controls whether the index is updated every time a file is changed,
or only when the project is built. In this case if you have Build
Automatically turned on the effective behaviour ends up being basically
the same.

I hope that helps,

Jonah
Re: Indexing strategy configuration [message #478747 is a reply to message #478744] Thu, 06 August 2009 16:03 Go to previous messageGo to next message
Yevgeny Shifrin is currently offline Yevgeny ShifrinFriend
Messages: 208
Registered: July 2009
Senior Member
Hi Jonah,

Thank you very much for this clarification.

Best regards,
Yevgeny
Re: Indexing strategy configuration [message #479926 is a reply to message #478744] Thu, 13 August 2009 07:45 Go to previous messageGo to next message
Yevgeny Shifrin is currently offline Yevgeny ShifrinFriend
Messages: 208
Registered: July 2009
Senior Member
Jonah Graham wrote:

> Hi Yevgeny,

>> 1) Automatically update the index
> This option control whether the indexer will update itself automatically
> in the background, or whether you need to manually tell the indexer to
> refresh based on changes. To manually update index, right click on a
> C/C++ Project, choose Index->Update with Modified Files.

>> 2) Update index immediately after every file change.
> This controls whether the index is updated every time a file is changed,
> or only when the project is built. In this case if you have Build
> Automatically turned on the effective behavior ends up being basically
> the same.
Currently I unchecked this option on workspace level, my project uses
workspace configuration. "Build Automatically" is unchecked.
Use case: Some files were changed in file system, I refreshed the project
using project explorer. Immediately indexing was ran, I would expect
indexing to run after build project is done. Also every time I change some
file indexing is updated. First option (automatically update the index) is
checked (selected).
Is this a bug?

> I hope that helps,

> Jonah
Re: Indexing strategy configuration [message #1076774 is a reply to message #236119] Wed, 31 July 2013 21:08 Go to previous messageGo to next message
Geoff Kaniuk is currently offline Geoff KaniukFriend
Messages: 5
Registered: July 2013
Junior Member
Hello Yevgeny,

I am having strange indexer behaviour in Juno ( Eclipse CDT 3.8 ). My indexer is set up as follows:

Windows > Preferences > General > Appearance 
   Label Decorations
   [ON]C/C++Indexed files 

Windows > Preferences > C/C++>Indexer 
   Indexing strategy
   [ON] Automatically update the index
   [ON] Update index after every file save.


The label decoration is a useful feature which shows a tiny green "+" decorating the top left corner of the icon for each file listed in the Project view. However, some of the files do not get the decoration, even when I re-build the index.

I have tried these experiments:

1. Make a trivial change to a non-indexed file (eg add a space), then save.
2. Make a change that introduces a new symbol and save.
3. Rebuild the project.

In all cases the file remains not indexed. This behaviour is happening with particular .h files which contain template classes, and I have reported that in my post [message #1072848]. I have also tried various combinations of "automatic update" and "after every file" to no effect.

I would be very interested to hear if you have any suggestions which may shed some light on this problem.


Geoff
Re: Indexing strategy configuration [message #1086444 is a reply to message #1076774] Wed, 14 August 2013 08:01 Go to previous message
Yevgeny Shifrin is currently offline Yevgeny ShifrinFriend
Messages: 208
Registered: July 2009
Senior Member
Hi,

I am not familiar with this decoration feature. Since JUNO issues I am still using Indigo, starting evaluating Kepler just few days ago.

Regarding your question, why some files are not being indexed or decoration not working. The question is whether code navigation (call hierarchy, type hierarchy, etc.) work? Also what would happen if you generate parser log on this file? How many unresolved headers do you have in your project? What is the indexer statistics (could be found in error log view after full index rebuild)?

I am not sure if the problem is with indexing or with decoration feature.

If we assume that the problem is with indexer, I would suggest opening a bug on this issue. It will be great if you could post a file or code example for reproducing this issue. Also you can try asking guys from CDT mailing list.

Thanks,
Yevgeny
Previous Topic:makefile generated by eclipse rebuild from command line after updating code not working
Next Topic:Howto apply projects settings to new projects in a workspace
Goto Forum:
  


Current Time: Thu Mar 28 18:08:44 GMT 2024

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

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

Back to the top