"open call hierarchy" in eclipse not working - eclipse

When I try to use the "Open call hierarchy" function in Eclipse, all of sudden it has stopped working. I don't get any results, it just shows the name of the method I wanted to see the call hierarchy for. This happens for all methods I try, even though they are all called by other methods.
I've tried opening eclipse with -clean -refresh, opening and closing eclipse and the project, updating the project, renaming the .metadata-file, and so far nothing has worked.
I've checked that it searches the whole workspace, and there are no filters on.

Exit Eclipse
Go into Workspace Directory/.metadata/.plugins/org.eclipse.jdt.core
Delete savedIndexNames.txt
Delete all *.index
Restart Eclipse
The search results should now show up.

No need for deleting indexes/re-install eclipse etc.
Go to "Call Hierarchy" tab (open by Ctrl + Alt + h)
On the upper right corner, there are 2 options:
"Show Caller Hierarchy" (icon, 2 dots directing to 1 dot)
"Show Callee Hierarchy" (icon, 1 dot directing to 2 dots)
Change it to "Show Caller Hierarchy"

Go to window->perspective-> reset perspective.

Changing Installed JRE to JDK from Windows|Preferences|Java|Installed JREs worked for me.

Change Windows|Preferences|Java|Installed JREs, set the default to a JDK.
Version: 2021-09 (4.21.0)
Build id: 20210910-1417

Maybe you have a search scope issue. I faced this issue, my eclipse coul'nt find any callers in third projects that uses the method i selected (i also tryed to remove the indexes, restart eclipse, close/open projects, and that was'nt enough so far). I Eventually realized the caller search has a "Search Scope" , that can be set to current workspace/current Project/working set. The item "search scope" is in the "call hierarchy" window menu, opened by top-right arrow. I set it to "current workspace" and then it was ok

Related

Can't see project explorer in STM32CubeIDE [duplicate]

Suddenly my project explorer window has disappeared from Eclipse. I try selecting Windows > Show View > Project Explorer, but nothing happens. What can I do?
Try Window --> Perspective --> Reset Perspective.... Remember that your own settings, if any, will also be reset.
Try to close Eclipse IDE and reopen it and
click on window->show view->project explorer
For me it was like this...
Window->Show View->Other->General->Project Explorer
Or
Window->Open Perspective->Other->Java (default)
Open Eclipse IDE
Enter "Project Explorer" on Quick Access (Search text box).
Either select from drop-down or press Enter
Window -> Perspective -> Reset
Reset the IDE
Window -> Show View -> Project Explorer
Select Window->Show View, if it is not shown there then select other. Under General you can see Project Explorer.
If none of the above solutions work, Try Window-> New Window
I had encountered the same problem as well. The following solution helped me to get over it:
Window -> Show View -> Package Explorer.
You can use the shortcut as well. It's Alt + Shift + Q, P
Using the latest Luna upgrade.
The only solution that worked was Window >> New Window.
It's very easy to lose that critical bar.
If you are on either Eclipse or Spring tool suite then follow the below steps.
(1) Go to 'Window' on the top of the editor. Click on it
(2) Select show view. You should see an option 'Project Explorer'. Click on it.
You should be able to do it.
Close the current perspective:
Reopen it using Window -> Open perspective.
i had also encountered this issue.
.
This Solution worked for me....
windows->navigation->maximize active View or Editor(ctrl + M)
.
in the screen you can see on left side navigation menus ... now click on those buttons one by one ....you will get your solution...
Try changing the perspective to JavaEE and then check.
Not sure if this is problem but, this ticked me off for a while since I did not realize what was happening at first - maybe this will help others.
Its not really a problem, just the way Eclipse works. (I'm use to Visual studio)
Its all about Perspectives!
I set up an (existing) PHP project in eclipse(neon) and then tried to configure and run debug. A Popup "Confirm Perspective Switch" is shown - I selected "Yes", not realizing what it actually does. The "perspective" then changes and you no longer see the project explorer anywhere. You cant "open" the project explorer window from top nav > window > show view, since its no longer there (which is BS, it should show something that gives you indication of current and other "perspectives" - at least for newbie.) No where now does it give project explore options.
Now you must change the "perspective" back from debug to PHP (at least in in my case).
This can be done a couple ways, easiest is from the icons on right top right side side. One icon would be the "bug", and next to it is the PHP icon. Just click the icon "perspective" you want. The other way is from top nav bar > window > Perspective > open Perspective, then select PHP. Could they hide this any deeper?
I know this is likely second nature to those who have used eclipse for a while, but was frustrating to me (on day one) till I figured out what was going on.
Please Select window in tool bar
Move to show view
Select project explorer
applied the same method to reset the perspective, no changes appaired then I restart the Eclipse IDE which was fine then.

How to show the Project Explorer window in Eclipse?

Suddenly my project explorer window has disappeared from Eclipse. I try selecting Windows > Show View > Project Explorer, but nothing happens. What can I do?
Try Window --> Perspective --> Reset Perspective.... Remember that your own settings, if any, will also be reset.
Try to close Eclipse IDE and reopen it and
click on window->show view->project explorer
For me it was like this...
Window->Show View->Other->General->Project Explorer
Or
Window->Open Perspective->Other->Java (default)
Open Eclipse IDE
Enter "Project Explorer" on Quick Access (Search text box).
Either select from drop-down or press Enter
Window -> Perspective -> Reset
Reset the IDE
Window -> Show View -> Project Explorer
Select Window->Show View, if it is not shown there then select other. Under General you can see Project Explorer.
If none of the above solutions work, Try Window-> New Window
I had encountered the same problem as well. The following solution helped me to get over it:
Window -> Show View -> Package Explorer.
You can use the shortcut as well. It's Alt + Shift + Q, P
Using the latest Luna upgrade.
The only solution that worked was Window >> New Window.
It's very easy to lose that critical bar.
If you are on either Eclipse or Spring tool suite then follow the below steps.
(1) Go to 'Window' on the top of the editor. Click on it
(2) Select show view. You should see an option 'Project Explorer'. Click on it.
You should be able to do it.
Close the current perspective:
Reopen it using Window -> Open perspective.
i had also encountered this issue.
.
This Solution worked for me....
windows->navigation->maximize active View or Editor(ctrl + M)
.
in the screen you can see on left side navigation menus ... now click on those buttons one by one ....you will get your solution...
Try changing the perspective to JavaEE and then check.
Not sure if this is problem but, this ticked me off for a while since I did not realize what was happening at first - maybe this will help others.
Its not really a problem, just the way Eclipse works. (I'm use to Visual studio)
Its all about Perspectives!
I set up an (existing) PHP project in eclipse(neon) and then tried to configure and run debug. A Popup "Confirm Perspective Switch" is shown - I selected "Yes", not realizing what it actually does. The "perspective" then changes and you no longer see the project explorer anywhere. You cant "open" the project explorer window from top nav > window > show view, since its no longer there (which is BS, it should show something that gives you indication of current and other "perspectives" - at least for newbie.) No where now does it give project explore options.
Now you must change the "perspective" back from debug to PHP (at least in in my case).
This can be done a couple ways, easiest is from the icons on right top right side side. One icon would be the "bug", and next to it is the PHP icon. Just click the icon "perspective" you want. The other way is from top nav bar > window > Perspective > open Perspective, then select PHP. Could they hide this any deeper?
I know this is likely second nature to those who have used eclipse for a while, but was frustrating to me (on day one) till I figured out what was going on.
Please Select window in tool bar
Move to show view
Select project explorer
applied the same method to reset the perspective, no changes appaired then I restart the Eclipse IDE which was fine then.

When opening java files in Eclipse Juno, the editor seems to be minimised or hidden

I've installed Eclipse Juno SR1 and switched to my old workspace. When I open a java file in the editor, it seems to be minimized (or hidden). The titlebar shows the current file and the outline displays all methods.
This is much as described in the Eclipse Invisible Editor, however, the suggested solution 'Window > Reset Perspective' does not work for me.
Any ideas on how I can get the editor back in the window?
I have the same problem with previous version of Eclipse Juno (not SR1).
"Windows" -> "New Window" seems to bring back the invisible editor view.
Then just close the old one and restart eclipse to make sure it "remembers" the configuration.
Try Window > Reset Perspective to get things back to normal.
There are times when the editor or other views starts behaving erratic. For such situations do:
"Windows" -> "New Window".
Close the old one.
I had this problem in STS and then it contaminated my regular Eclipse in the same workspace. "New Window" helped, thanks!
You don't need to restart eclipse.
Just double-click your file inside the Package Explorer view. You will see it's name in the title bar, but it won't appear in the editor:
Now, just type Ctrl + w (in case of Windows).
Reopen your file, and it will appear in the editor:

why can't I set up a breakpoint in eclipse?

For some odd reason, I can't use breakpoints in my eclipse project. All breakpoints that I set have a diagonal line on them, above the dot in the respective line (on the left margin of the window), as if they are blocked. When I run in debug mode, the breakpoints are ignored. Any ideas?
You've probably just pressed "Skip All Breakpoints" in the Breakpoint view - simply press it again.
Default key bindings are: Ctrl + Alt + B.
This doesn't exactly answer the OPs question, but when trying to double click to add break points, I was getting messages stating "this feature is not enabled".
I had to right click on the break point bar and select "Breakpoint Types" -> "C/C++ Breakpoints" instead of "Default". Then it worked fine.
in python, I had to go to:
windows->perspective->Open Perspective->Debug
then select the Breakpoints tab and make sure the zero with the slash (skip all breakpoints) is not selected (you can also use Ctrl-Alt-B to toggle it).
Open Debug View
Open Breakpoint Perspective
Right-click all breakpoints there
Press Enable
My "toggle breakpoint" and other menu options were disabled. I restarted Eclipse (Kepler SR1) and they came back enabled. I could set breakpoints again!
In my case, I'd edited my code during debugging, adding a null-check so I could place a breakpoint to stop execution only when a certain value was null. I couldn't add a breakpoint because the line of code in question was not present in the running application.
In Java, certain code changes can be woven in as soon as the file is saved, so in my case, remembering to save the changes was enough to enable placing a breakpoint.
For changes that can't be woven in, the application must be restarted before the new lines of code will be present.
In my case, I opened up the Breakpoints view, clicked 'remove all breakpoints' and then toggled the 'skip all breakpoints' option off, then on. This allowed me to set breakpoints again. This was after a restart of eclipse failed to help.
I was having a simular issue, for me the standard code-editor changed after installing a new plugin from Marketplace. Apparently the Plugin thought to change the default-editor for a lot of file-types, not only the one I installed it for. The new editor did not allow setting breakpoints but I hadn't known it changed at the time. When I right-clicked my source-file in the Project-explorer I saw under open-with the new editor listed on top. When I opened with the previous editor, everything went back to normal.

What is "Task scanning" in NetBeans and how to turn it off?

Sometimes when opening projects, NetBeans will display a "Task scanning" progress bar on the status bar. What exactly is it scanning for? Is it possible to turn it off as I noticed that sometimes it takes a while and maybe it's just my installation but sometimes I have to force it to stop when closing NetBeans.
It is a "Task List" plugin working. It does this:
Provides the Task List window, which lists places of interest in your project, such as lines that contain "TODO", "XXX", "PENDING", Java compilation errors, and so on. You can click an entry in the list to navigate to the corresponding place in your code.
You can remove it by going to "Tools > Plugins" menu, "Installed" tab, selecting "Task List" from the installed plugin list and clicking "Uninstall" button. (These instructions are for NetBeans 6.5, but should be somewhat alike for all the other versions).
But I would advise against removing it - I find it pretty useful. There are times when I forget about several TODO's, and Tasks window is a great way to look 'em up.
If you can't see that window, you can access it through "Window > Task" menu, or by pressing Ctrl+6 (again, these instructions are for NetBeans 6.5)
Using Neatbeans 7.2.1
You can go to Tools->Options->Miscellaneous then under the Files tab uncheck Enable auto-scanning of sources. Whenever you want to have Netbeans scan you project you can go to Source->Scan for External Changes.
Tools->options->C++, or whichever language you are working with, under the Other tab uncheck Reparse on File Change. Whenever you want to reparse right click your project Code Assistance->Reparse Project.
It is scanning for the // TODO blarblar and // FIXME .... alikes.
You can disable it by removing the plugin.
In Netbeans 7.0.1 you can't disable the Task List definitively.
Instead you can limit/avoid scan :
Right click in Tasks window
Filter -> Edit
Unselect all
You can also cancel the running "Task scanning" process :
Right click on the progress bar
Click Cancel process