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.
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
    at com.intellij.psi.tree.IElementType.<init>(IElementType.java:98)
    at com.intellij.psi.tree.IElementType.<init>(IElementType.java:90)
    at com.dci.intellij.dbn.language.common.element.BaseElementType.<init>(BaseElementType.java:80)
    ..........

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.

0

Please sign in to leave a comment.