Limitation on the number of IElementTypes

i keep getting this exception when running my custom language plugin (IDEA build 9712).
2009-02-09 14:17:27,843 [  22906]  ERROR - intellij.psi.tree.IElementType - Assertion failed: Too many element types registered. Out of (short) range.
    at com.intellij.openapi.diagnostic.Logger.assertTrue(
    at com.intellij.psi.tree.IElementType.<init>(
    at com.intellij.psi.tree.IElementType.<init>(
    at com.dci.intellij.dbn.language.common.element.BaseElementType.<init>(

looking at the decompiled code i found out that there is a limitation of 10000 on the total amount of IElementTypes registered in the system. Is there any background for that limitation?

Note: if i disable other language plugin i do not get this error any more.

1 comment
Comment actions Permalink

missed that the IElementType can be created with the option register = false.


Please sign in to leave a comment.