Better handling of invalid PSI elements

Issue #402 resolved
Scott Wells repo owner created an issue

There's still a need to rebuild caches & indices after a period of usage, typically due to an accumulation of invalid/stale PSI elements. Ideally I'd trace these invalid elements back to the source and fix that, but I've found that to be exceptionally difficult in some cases, particularly while caching things aggressively to maintain high-performance code completion, reference navigation, etc. Minimally I need to recognize these situations and evict/repopulate the corresponding cache entries based on current information.

For what it's worth to interested observers, this issue is really a placeholder for work I've been doing. I've already implemented the latter approach in many (most?) places and am seeing quite good results after large-scale changes such as metadata retrieval/refresh and OST regeneration.

Comments (2)

  1. Scott Wells reporter

    Likely still not 100% done here, but hoping that the changes in 1.7.4.0 and 1.7.4.1 will go a long way toward this goal.

  2. Scott Wells reporter

    Resolving this one that covers the larger set of issues and will address any others on a one-off basis.

  3. Log in to comment