Eclipse IDE - Open Call Hierarchy is empty/broken

2020-02-10 11:07发布

What should I do, if the "Open Call Hierarchy" is broken (empty for every method in a project)? It only 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.

It is very useful for code navigation. I do not know how to work without it!

I've tried:

  1. Opening eclipse.exe -clean -refresh
  2. Restarting Eclipse
  3. Closing and reopening the project
  4. Updating the project
  5. Renaming the .metadata file

I've checked that it searches the whole workspace, and there are no filters on.

12条回答
SAY GOODBYE
2楼-- · 2020-02-10 11:37

I tried many answers all were great, it helped many except few and I was in few.

My eclipse version is 2019-03(4.11.0). This is which has a bug. Which can be fixed by add-ons.

Go to the Eclipse Marketplace and search for plugin java 12 Support for Eclipse 2019-03(4.11)… and install it. On completion of installation restart the eclipse. Hopefully this will fix the problem. Have a nice day.

查看更多
该账号已被封号
3楼-- · 2020-02-10 11:37

If the call Hierarchy is not opening, it might be because of the project is not imported as a java project, rather it would be displayed in the file stucture. You may want to enable the project facet through:

right click on the project -> project facet.  

If you dont see anything listed, you need

configure the project facet -> Apply -> ok. 
查看更多
Viruses.
4楼-- · 2020-02-10 11:43

The following may help:

  • Calling eclipse with eclipse.exe -clean -refresh forces Eclipse to rebuild the index. After that the feature worked again.
  • Closing and re-opening the project.
查看更多
疯言疯语
5楼-- · 2020-02-10 11:44

For Kepler and PDT (PHP IDE) it is broken in at least PDT 3.2.0 and 3.3.0 (tried them both). The fix is in 3.3.1 and updating to that was all I had to do get the call hierarchy working again.

(apologies, I'm not yet allowed to add comments, however this should prove handy to many)

查看更多
看我几分像从前
6楼-- · 2020-02-10 11:45

Also, you can try to delete the workspace and get it recreated. Make sure all your projects are backed up.

查看更多
Luminary・发光体
7楼-- · 2020-02-10 11:47

In my case it seemed my workspace was contaminated.

Opening/closing projects and starting with clean did not fix. I had to start off a new workspace.

Fedora 20, Eclipse Kepler.

查看更多
登录 后发表回答