Open Call Hierarchy not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open Call Hierarchy not working

Jump to solution
2,513 Views
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 Kudos
1 Solution
2,504 Views
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

 

 

 

 

View solution in original post

0 Kudos
3 Replies
2,483 Views
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 Kudos
2,481 Views
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 Kudos
2,505 Views
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 Kudos