How to save Indexes while Debugging Plugin
I am working on a plugin for Intellij and I can't find a way to stop it from re-indexing every time I debug the project. This is especially frustrating because I am trying to build a FileEditor and they simply display “This view is not available until indexes are built.”
I noticed that when I started and my code was crashing more frequently, I was unable to exit the debug instance normally and so it didn't save any indexes at all. But since I have something more stable, I made sure to let it fully index and then closed normally instead of through the debugger. This definitely made a difference, because the indexing is much faster now, but it still spends a minute indexing every time I launch. My suspicion is that it is only checking if these things need to be re-indexed, but it still takes way too long. How can I ensure it saves the whole index on exit and doesn't do this?
Please sign in to leave a comment.
“Some” scanning cannot be avoided on loading a project. This is default behaviour of the IDE and depends largely on the set of files/libraries/… attached to a project.
Existing indexes will be persisted also for the Sandbox instance, unless the sandbox directory is removed/cleaned.