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 192397 - AssertionError: limitOffset=4039 > docTextLength=4038
Summary: AssertionError: limitOffset=4039 > docTextLength=4038
Status: RESOLVED DUPLICATE of bug 191620
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 12:12 UTC by cameronolivier
Modified: 2011-02-07 12:55 UTC (History)
30 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173178


Attachments
stacktrace (3.08 KB, text/plain)
2010-11-24 12:12 UTC, cameronolivier
Details
stacktrace (3.25 KB, text/plain)
2010-12-06 19:03 UTC, michbarsinai
Details
stacktrace (3.25 KB, text/plain)
2010-12-09 12:24 UTC, ytn01
Details
stacktrace (3.44 KB, text/plain)
2011-01-05 11:46 UTC, ytn01
Details
stacktrace (3.25 KB, text/plain)
2011-01-12 16:44 UTC, javydreamercsw
Details
stacktrace (3.44 KB, text/plain)
2011-01-19 07:00 UTC, rcasha
Details
stacktrace (3.44 KB, text/plain)
2011-01-28 19:22 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cameronolivier 2010-11-24 12:12:31 UTC
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)
Comment 1 cameronolivier 2010-11-24 12:12:38 UTC
Created attachment 103277 [details]
stacktrace
Comment 2 michbarsinai 2010-12-06 19:03:30 UTC
Created attachment 103636 [details]
stacktrace

After editing an annonumous inner class.
Comment 3 ytn01 2010-12-09 12:24:55 UTC
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.
Comment 4 ytn01 2011-01-05 11:46:32 UTC
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.
Comment 5 javydreamercsw 2011-01-12 16:44:49 UTC
Created attachment 104929 [details]
stacktrace

Pressing enter on the editor
Comment 6 rcasha 2011-01-19 07:00:27 UTC
Created attachment 105134 [details]
stacktrace

typing into Java source.
Just before that I had expanded an anonymous class.
Comment 7 javydreamercsw 2011-01-28 19:22:10 UTC
Created attachment 105442 [details]
stacktrace

Trying to use code completion.
Comment 8 Miloslav Metelka 2011-02-07 12:55:29 UTC

*** This bug has been marked as a duplicate of bug 191620 ***