Numerous usages of local functions not detected; also function in managed package is no longer found
I just upgraded to IDE 2021.1 and IC2 2.1.7.2. I have rebuilt the OST for my project twice (just in case the first time was a fluke).
Numerous functions even in the same Apex class are not being detected as used, e.g.,:
This is quite worrying. I rely heavily upon usage detection when refactoring, and if I cannot in fact rely upon it, a whole set of potential refactorings become infeasible.
In other news, a managed package service call that was previously being detected is now flagged as unresolvable, even though I have built the complete OST twice.
Please let me know what collateral you would like to see. And apologies if this has already been reported; I don’t find it easy to check for that in BitBucket.
Comments (4)
-
reporter -
reporter D’oh! Yes, that did it. Guess I should have tried that first. Closing.
-
reporter - changed status to resolved
Just needed to invalidate caches and restart. Apparently upgrading the IDE and several plugins can get the caches into a weird state.
-
repo owner Alan, it's an issue in 2021.1 that I've captured here as
#1864. It affects all JetBrains IDEs and all tools built atop those IDEs that rely on file-based indices. It will be fixed in 2021.1.1 once it's released, but in the interim a full index/cache rebuild can be required. - Log in to comment
I am invalidating caches in case that helps. I will let you know.