My custom language plugin has a set of file-based indices including two stub indices, and the order in which they're built is important as some leverage others as they're populated. I've expressed these dependencies in my plugin.xml and things do build properly from scratch.
There are times that I need to rebuild these entirely because there are such fundamental changes to core data structures, and not just when the index version numbers change. If I invalidate all caches and restart things build properly, but I'm having trouble rebuilding these reliably at runtime. I've followed the workaround from the end of this thread:
and it almost works, but for some reason things don't quite end up in the 100% right state like they do if I invalidate/restart. Is there some way that I can simulate the behavior of invalidate/restart for just my caches at runtime?