Community
Participate
Working Groups
If you invert the call hierarchy, you often get no matches, or NPEs when calculating child nodes. There are two problems here. One is that IndexQueries.elementToName() was invoking the resources plugin and causing a NoClassDefFound exception (same cause as bug 246912). Secondly, the ICProject for the returned match's ITranslationUnit was sometimes null (this caused the NPEs)l. Fix coming shortly.
Fixed on HEAD.
This seems to have come back on HEAD. There are no visible exceptions printed to the server's terminal, so I'm not sure what the problem is yet this time.
I don't see the bug with most recent checkout. Can you post a test case where this happens?
It seems to work (mostly) if you do "Open Call Hierarchy" and then immediately change the graph to the calls-to direction. However, if you select a function in the view and do "Focus on", then view the calls-to, you get nothing. I wonder if somehow the ICElement information is messed up when you do "Focus on". Also, the calls-to direction only seems to go one level deep. I would have thought you should be able to expand it arbitrarily. Can you check that behaviour against the local call hierarchy?
Created attachment 124289 [details] Proposed patch
Applied to 2.1.1 and HEAD. Thanks Michael.