Bug 32313 - Problems with Java search
Summary: Problems with Java search
Status: RESOLVED DUPLICATE of bug 32217
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 20:49 EST by Darin Swanson CLA
Modified: 2003-02-20 12:21 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2003-02-19 20:49:01 EST
I selected a properties file and hit the Search toolbar button
Clicked Search on the NLS tab
Indicated that there was 3 unused keys
Opened a Java editor on the source file that does use the keys.
Added and removed a space. Saved.
Performed the search again..no indication of unused keys.

This appears to be a larger problem than just Search (is there still a all 
types index?) as the Open Type dialog is not displaying some types until I 
make the file dirty and perform a save as well.
Comment 1 Darin Swanson CLA 2003-02-19 20:50:14 EST
This is on build I20030218 using JDK1.4.1 VM
Comment 2 Dani Megert CLA 2003-02-20 02:12:56 EST
Darin,

does the normal Java Search work? NLS Search is based on Java Search.
Is the scope correct?
Is the Messages.java file the one that handles the properties file?

Comment 3 Darin Swanson CLA 2003-02-20 09:04:54 EST
Test I just tried: 
Searched for type declarations of ManageWatch* in the whole workspace.
Nothing found
Opened a Java editor on ManageWatchpointActionDelegate
Repeated the search
One Declaration found.
Comment 4 Dani Megert CLA 2003-02-20 09:14:49 EST
Darin,

anything in the .log? Does this happen directly after startup or for every type?
Comment 5 Darin Swanson CLA 2003-02-20 09:29:02 EST
Nothing in the .log

The classes missing from searching seem to be all of the types from non-binary 
projects. It was a preexisting workspace to I20030218, I imported the binary 
projects (57 out of 65, the rest as source for Debug / Ant development). 
Everything indicated success.

The source type for ManageWatchpointActionDelegate still is not showing in the 
Open type dialog.

After restarting, source types that I have forced to recompile show in the 
Open Type dialog. Others are still missing.

After restarting, searching is still missing all source types that I have not 
opened an editor on.
Comment 6 Dani Megert CLA 2003-02-20 09:47:15 EST
Darin,

this looks like build path problems. Check the Task list for build path problems.

Comment 7 Darin Swanson CLA 2003-02-20 10:48:30 EST
This was on my workspace at home...I will attempt to reproduce the problem here 
at work. But looks more like a PDE problem..
Comment 8 Dani Megert CLA 2003-02-20 11:04:02 EST
Maybe PDE messed up your build path.
Something else to test at home (if the build path is OK):
Shut down Eclipse, delete the JDT Core (.metadata/.plugins/org.eclipse.jdt.core)
index and restart.
Comment 9 Dani Megert CLA 2003-02-20 12:21:11 EST

*** This bug has been marked as a duplicate of 32217 ***