This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267455 - IndexOutOfBoundsException: tokenLength=56 > 55. Fix the lexer implementation to use proper token length value.
Summary: IndexOutOfBoundsException: tokenLength=56 > 55. Fix the lexer implementation ...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2016-08-05 19:37 UTC by badpenguin
Modified: 2016-08-05 19:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218171

stacktrace (5.15 KB, text/plain)
2016-08-05 19:37 UTC, badpenguin

Note You need to log in before you can comment on or make changes to this bug.
Description badpenguin 2016-08-05 19:37:45 UTC
Build: NetBeans IDE Dev (Build 201607270002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
badpenguin: deleting a block of markdown text

GUEST: working on a markdown file. 
Cannot edit/remove text but i can add text. 

jekyll working in background in 'watch' mode


GUEST: I don't know why this exception, nothing happened in the IDE.

My system Windows 7 x64

What I have done:
- opened a console (NO admin privil) in a folder
- in console ran '"%ProgramFile%\NetBeans 8.0.2\bin\netbeans64.exe" --open' to edit it (markdown file, I installed markdown plug-in in NetBeans). I have the option '-J-Dfile.encoding=UTF-8' in netbeans.conf to always open files in UTF-8 encoding.
- Netbeans notified me that cannot be able to properely convert it to UTF-8 (the files was ANSI CP850 encoded), no matter, I opened it with Notepad++ while already open in NetBeans, converted it to UTF-8 and saved, closed Notepad++.

N.B. running NetBeans in console with option '--help' only few options are described, perhaps the one used for Java VM. Please show all available options or explain them in documentation, many thanks.

hava a good day

GUEST: This happens when editing .md file. The Markdown plugin is installed.
Text can not be entered in the file

GUEST: Using the jvi plugin, I pressed i to insert then attempted to type ## in a markdown file

java.lang.IndexOutOfBoundsException: tokenLength=56 > 55. Fix the lexer implementation to use proper token length value.
   at org.netbeans.lib.lexer.LexerInputOperation.assignTokenLength(
   at org.netbeans.lib.lexer.LexerInputOperation.createToken(
   at org.netbeans.spi.lexer.TokenFactory.createToken(
   at flow.netbeans.markdown.highlighter.MarkdownLexer.nextToken(
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(
Comment 1 badpenguin 2016-08-05 19:37:47 UTC
Created attachment 161575 [details]