IntelliJ indexes the project at every startup

Hi,

I'm working on a custom language plugin (Gosu) for IntelliJ IDEA 11. The problem I have is that IDEA reindexes the whole project (both Java and Gosu files) at every startup. If I disable the plugin, IDEA works as expected, indexing only the first time. It therefore appears abvious that our plugin is doing something wrong and corrupting the whole index. Debugging it a little it looks that the index is not saved to disk at shutdown since at the next startup it thinks that none of the file are indexed. Any ideas what might cause this? How would I investigate further?

Thanks,
Dumitru.

2 comments
Comment actions Permalink

How are you registering the Gosu file type? The most common reason for such problems is not using the FileTypeFactory extension point for registering file types.

0
Comment actions Permalink

Thanks Dmitrry, your reply helped me fix the problem. The problem was actually caused by using the FileTypeFactory! We use "dynamic" file type registration (by calling into the API) and that works fine. The indexing problem started happening when we also added a FileTypeFactory.

Thanks again,
Dumitru.

0

Please sign in to leave a comment.