I try to browse a large C++ project and notice that the results from the "Find Usages" facility are sometimes incomplete; hits from some files which I know should be there are missing. When I open such a file, navigate to the invocation of the relevant function and try "Find Usages" from there the dialogue box opens with an error message "The original element being refactored is not available. Usages for foo cannot be collected". A line "Unhandled name for object null" gets appended to the IDE log.
Trying "Find Usages" with function invocations nearby in the same file works, though, so it is not that the whole file got skipped during parsing.
Any idea where this may come from?
- do you have not found hit marked with red underline?
- can you ctrl+click on this hit and does it go to declaration of object under cursor?
- is it direct usage (like a in "a+b" expression) or dereference (like foo in a->foo())?
-- if the second => do you have code completion after "a->"?