Getting error from a custom Language plugin
Hello,
I am writing a custom language plugin. I get the following error.
java.lang.IndexOutOfBoundsException: Wrong offset: 126. Should be in range: [0, 10] Lexer: ...
This error is generated from the class SegmentArray.java. I specifically believe the error comes from the myEnds array in that class containing some spurious data. However I would like to know
- What exactly makes a SegmentArray?
- Who gives it 'segment' data? Is it the highlighting lexer or some other entity?
thanks
Siddharth
Please sign in to leave a comment.
Hi Siddharth,
SegmentArray is a generic-purpose class. It's a part of Community Edition, so, you can check its usages and contract:
Regarding the exception - it's not possible to say anything about that without stack trace (it can provide information about particular use-case where SegmentArray is used).
Regards, Denis