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.
Build: NetBeans IDE 7.0 Beta (Build 201011152355) VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07 OS: Windows 7 User Comments: cameronolivier: trying to enter a new carriage return. code 2 lines above it was folded. ie - [folded code] [folded code] </div> {error when trying to carriage return from here} GUEST: a have generated some php files from external script and netbeans had focus on that folder Stacktrace: java.lang.AssertionError: limitOffset=4039 > docTextLength=4038 at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:375) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:318) at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:147) at org.netbeans.modules.editor.lib2.view.ViewUpdates.insertUpdate(ViewUpdates.java:327) at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:82) at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:0)
Created attachment 103277 [details] stacktrace
Created attachment 103636 [details] stacktrace After editing an annonumous inner class.
Created attachment 103835 [details] stacktrace Formatting a set of code that contained code folds that were collapsed using the "<editor-fold>" tag. I was trying to insert new lines of code in between two consecutive code folds that were in a collapsed state. The exception dialog appeared the moment I pressed the "Enter" button at the end of the first code fold.
Created attachment 104722 [details] stacktrace Selected several lines of code on my source file (specifically, the selecton was inside the constructor definition of the class I was working on) From the snippet icon that appeared on the sidebar, I selected "Surround with <editor-fold.... The selection was soon surrounded with "<editor-fold..." region, and the cursor was automatically positioned on "desc" tag of the editor-fold parameters. I started entering name for the "desc" tag, & the exception was generated.
Created attachment 104929 [details] stacktrace Pressing enter on the editor
Created attachment 105134 [details] stacktrace typing into Java source. Just before that I had expanded an anonymous class.
Created attachment 105442 [details] stacktrace Trying to use code completion.
*** This bug has been marked as a duplicate of bug 191620 ***