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.
This issue was reported manually by mjanicek. It already has 3 duplicates Build: NetBeans IDE Dev (Build 20130703-4ccc4c622a55) VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11 OS: Windows 7 User Comments: zdenek.rod: I deleted text using shift+del. misterm: . tnleeuw: After deleting several lines from a Java file, I saved the file. This caused reformatting, and removal of several unused imports. The cursor was at the very end of the file. This triggered the exception. Stacktrace: javax.swing.text.BadLocationException: Invalid offset=14651 not within <0, 14632> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1347) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1342) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:200) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:183) at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73) at org.netbeans.modules.showtodos.HighlightTodos.getHighlights(HighlightTodos.java:97)
Created attachment 137764 [details] stacktrace
Reassigning. I don't know where org.netbeans.modules.showtodos belongs.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=202507
Created attachment 139525 [details] stacktrace Inserted html code template at the very beginning of php file. Insertion not at the beginning works normally. Template: <?php class T extends Tsystem_module { function controller_main($params = array()) { echo self::view2('self/cj', $view); } } ?>
Created attachment 145981 [details] stacktrace Editing Java sources (major refactoring).
Created attachment 146528 [details] stacktrace Editing Java code. Persistent error badges unaccompanied by lines marked as erroneous.