Open Call Hierarchy not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Open Call Hierarchy not working

跳至解决方案
2,670 次查看
aberger
Contributor V

There are several ways to search for instances of a function:
1. Open Call Hierarchy
2. Find References
3. Search Text

I am unable to get "Open Call Hierarchy" to work. The resulting list of callers is empty. By contrast "Search Text" reveals many hits for the function I am searching for. Compare the results from the different methods below. 

Open Call Hierarchy (Ctrl + Alt + H)

aberger_3-1634323692897.png

References (Ctrl + Shift + G)

aberger_4-1634323699854.png

Search Text (Ctrl + Alt + G)

aberger_6-1634323854959.png

Is there a way to get Open Call Hierarchy to work? I have tried rebuilding the project Index, but that doesn't make a difference.

 

0 项奖励
1 解答
2,661 次查看
ErichStyger
Senior Contributor V

Yes, my first advice would have been to rebuild the index too.

As this does not help: is it only not working for that function, or for other callers/callees too?

 

Make sure have not the 'hide' turned on:

ErichS_0-1634366051327.png

Plus I see that you have the utilities in the VCS, but your icon decorator indicates that it is not included in the build?

ErichS_1-1634366101543.png

See https://mcuoneclipse.com/2012/07/30/icon-and-label-decorators-in-eclipse/ for the decorators and https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/ for how to include/exclude from build. Your folder icon shall look like this:

ErichS_2-1634366218770.png

 

I hope this helps,

Erich

 

 

 

 

在原帖中查看解决方案

0 项奖励
3 回复数
2,640 次查看
aberger
Contributor V

Thank you. Having folders marked as "Exclude resource from build" was indeed the problem (although the project built just fine, so I'm confused about that). I'm also not sure when the "Exclude resource from build" checkbox would have been checked.

0 项奖励
2,638 次查看
ErichStyger
Senior Contributor V

As long as your application does not use the utilities, you will be able to compile and link without problems. I have seen that adding/removing SDK components marking folders as excluded, not sure why.

0 项奖励
2,662 次查看
ErichStyger
Senior Contributor V

Yes, my first advice would have been to rebuild the index too.

As this does not help: is it only not working for that function, or for other callers/callees too?

 

Make sure have not the 'hide' turned on:

ErichS_0-1634366051327.png

Plus I see that you have the utilities in the VCS, but your icon decorator indicates that it is not included in the build?

ErichS_1-1634366101543.png

See https://mcuoneclipse.com/2012/07/30/icon-and-label-decorators-in-eclipse/ for the decorators and https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/ for how to include/exclude from build. Your folder icon shall look like this:

ErichS_2-1634366218770.png

 

I hope this helps,

Erich

 

 

 

 

0 项奖励