Find Usages not working all the time.
So I'm not sure how to reproduce this. Find usages of a class/method was working fine, I was using it and I did a bunch of refactoring of classes/methods. Then I went to do a find usages and it said there were no usages but I know there are. So I search with regex for method signature and sure enough it is there.
Perhaps the indexes are being corrupted?
Is there a quick way to refresh these indexes?
Comments (10)
-
repo owner -
repo owner - changed status to resolved
Does this continue to be an issue? If so, any new thoughts on a way to reproduce? Resolving for now but feel free to reopen if it's still an issue and/or you have additional details.
-
reporter - attached findusages1.png
Hey Scott, yes this is still happening for me. I just rebuilt the indexes and it is not resolving it. I have a visualforce page that has {!basicControllerUIData} usage and in the controller I have a method public String getBasicControllerUIData() { ... }. The editor shows the method as grey (unused) and find usages reports no usages. But if I go to the page and command click, it jumps to the getBasicControllerUIData() method?. My page is called Manage.page and the controller is called ManageController.cls
-
reporter FYI: I'm now on version 2.0.1.8 and I thought maybe it was fixed. I have been using it alot refactoring a bunch of code and I just got bit.
-
repo owner Mike, are you saying that 2.0.1.8 broke something that was working, or just that it didn't seem to fix it?
-
reporter No sorry, we upgraded to 2.0.1.8 and I was using it and verifying by also searching for the method string. I thought that maybe v2 fixed the issue, as it seemed to be working. However, I just did a bunch of refactoring removing what I thought was old dead code, but then the page wouldn't load. I went and verified and there was a merge field being used in the page as I described.
-
repo owner Gotcha. I'll take a look. Sounds like you have a good example from which to work now. Thanks for providing that.
-
reporter - changed status to open
-
repo owner - changed status to duplicate
Duplicate of
#1010. -
repo owner I always feel a little weird resolving an older issue as a duplicate of a newer issue, but in this case I just finished working
#1010and I'm 99% sure it's the exact same issue. I'll be delivering that change with the next build, so after updating if you see this issue continue, don't hesitate to reopen this issue and/or#1010and I'll take another look. - Log in to comment
Hmmmm...definitely sounds like the caches/indices may be getting out of whack from all the search-and-replace. You can rebuild them easily from Illuminated Cloud>Configure Project using the Rebuild Caches and Indices button. Go ahead and close/reopen the project to be sure they're in the best state.