Eclipse Luna does not find references to Java elements [message #1426212] |
Thu, 18 September 2014 08:10  |
Eclipse User |
|
|
|
In the Java editor I right-click on a method name or class name or other element (defined in my source, not in a dependency JAR) and from the menu I select References / Workspace.
In some cases the references to such elements are found and shown in the Search view as expected. But in most cases no reference is found, which I know is wrong because those elements are definitely referenced by some code in projects found in the workspace (and if I do a File search they are always found, and if I Ctrl-click on the reference, f.ex. a method call, I'm taken to the method body as expected).
It makes no difference if instead of using the menu item References / Workspace I select the element in the code and hit Ctrl+Shift+G, or right-click on the element in the Outline view and use the menu item References / Workspace from there.
No project in the workspace has compilation errors and all the projects run normally. The projects are all set to use Java 7 JDK ("C:\glassfish4\jdk7").
In another post about Juno I found mentions to an Index Rebuild feature, but I couldn't find anything index-related in Luna preferences or in the menu I get when I right-click on a project.
When I was using Eclipse Kepler instead of Luna I was searching for references in exactly the same ways and the references were always found correctly. Actually this problem occurred with Kepler too for a short period but then it went away and I never understood why. But now with Luna this problem is there since the beginning and it seems to be there to stay.
The version of Luna is 4.4.0.I20140606-1215. I added to it the same plugins I had in Kepler: Subclipse, TapestryTools, FindBugs, ResourceBundle Editor, TestNG.
I could not find any Preferences setting that appears to me to be affecting this.
I'm wondering if other people are experiencing the same problem and if there is a known cause, solution or workaround.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07512 seconds