Community
Participate
Working Groups
CDT 2.0.0.200404281729 Eclipse (200404281424) Test Case: 1. Create 2 managed projects, call them ProjA and ProjB. 2. Add a file to ProjA, call it foo.h and insert the following code: class foo { public: foo() {}; }; 3. Copy foo.h from ProjA to ProjB. (You should now have two identical projects with different names) 4. Close all of the editors. 5. Open the Search dialog and search with the following configuration: Scope: Workspace Search For: Class/Struct Search String: foo Limit To: Declarations RESULT: No results are found. EXPECTED: I expected to see two matches, one for ProjA and one for ProjB. NB: If I open both foo.h files in the editor and re-execute my search, I get what I want.
Sounds like you are only searching the working copies Bogdan ...
This is fixed in head as of May 5. It was a problem with the index enablement feature that got put in last week whereby certain paths would neglect to pick up the persisted indexer-enabled value.1 BG
This problem still appears to exists in CDT 200405071349.
Bogdan, could this be related to 57145?
Part of the problem here is that you are trying to search on a header file that hasn't been included by anything. Our policy has always been to index headers that are included by a source file. If you add a source file that includes your header and copy both of those files over to the second project, everything works as expected. But there is a valid point in that search wasn't properly filtering working copies. Following your steps exactly you should get no results. I was getting a result if the file was open. This is now fixed and in head. - BG
Hi, I reproduced this bug and it needs to be reopened. Thanks, Pixy.
Thy will be done!
This bug is done - refer to Bug 60948 for indexing unincluded headers.
Commited to head but should go into 2.0 stream as well... - BG
John, can you change this bug to be in 2.0.1? Is this one fixed? Thanks.
Fixed in head but I need to put in the 2.0 stream. I'll do that along with my other commits today. - BG
Fixed a while back...