Red Hat Bugzilla – Bug 218338
Bad: Search text in workspace not working at all
Last modified: 2007-11-30 17:11:50 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:188.8.131.52) Gecko/20061011 Fedora/184.108.40.206-7.fc6 Firefox/220.127.116.11
Description of problem:
Bad: I have recently installed Fedora Core 6 on my system. I have installed the default eclipse available in it. I have made a Standard C Make Project. The projects is having some sub directories in it. And in sub directories there are C files. When I try to search some text in all files the search returns 0 matches found even when the text is actually present in file. For example i have hilited text of function main and choose Search->Text->Workspace on it says 0 matches found. I have tried other options like File Search, C/C++ Search etc. but no method is giving any results infact some shows internal errors.
Version-Release number of selected component (if applicable):
eclipse cdt Version: 18.104.22.168609291545 Build id: 200609291545
Steps to Reproduce:
1.Select any text in your Standard C Make Project
2.Go to menu option Search->Text->Workspace
3.It will give 0 matches
Similar for all File Search. C/C++ Search. Even with different options like only definitions, Any Element it gives 0 matches found.
0 matches found for any text search.
The selected text should be found and a list is shown having references to each occurence of text in the workspace.
This problem is a duplicate of 183698. There is a bug in classpath whereby the
Matcher.reset() operation does not work properly. Internal code in the CDT uses
this during refactoring "and" also for searches. The result of the bug is that
the list of applicable files to look at for renaming or searching ends up being
the empty list. A patch has been posted to gcc for the Classpath bug. A
forth-coming gcc update will contain this fix.
*** This bug has been marked as a duplicate of 183698 ***
Addendum: I should have mentioned that this will probably work with one of the
As you have mentioned that it was a bug in GCC classpath package. And as you
told that it is already reported to gcc team at
I go to the above mention bug report and found that it is abug in classpath
version 0.92. On this bug
report(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29703) a mechanism to fix
this bug was also provided at
so I got original version 0.92 of classpath modified the code as specified in
the fix (Note: I have not done the Change Log modification part). After that i
built and installed classpath. But after that I found that issues are still
there and nothing new has happened. Also I need to add more to the issue it is
also giving runtime crash Internal error when try to do C\C++ Search in whole
workspace. I might have done something wrong while doing this work so please do
not think that I am telling something perfect or solid.
I need that add more that Internal Crash error was occuring even before
installing the new classpath package. When I look at the error log it shows
somethig like the below for the Internal Crash part of issue.
!MESSAGE An internal error occurred during: "Find references to expr in Workspace".
I will do a build for x86_64. I had an i386 build with patch which worked fine.
My guess is this is a separate problem.