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 195203 - [70cat] Editor appears to have long line, but lines are not wrapping
Summary: [70cat] Editor appears to have long line, but lines are not wrapping
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 21:02 UTC by esmithbss
Modified: 2011-06-17 12:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen Capture (90.40 KB, image/png)
2011-02-08 21:02 UTC, esmithbss
Details
IDE Log File (139.25 KB, application/octet-stream)
2011-02-08 21:03 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2011-02-08 21:02:12 UTC
Product Version = NetBeans IDE Dev (Build 201102080000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

I have a file with 1 very long line (see screenshot).  The line appears to have about 10 lines worth of data; however, the editor is not currently set for wrapping data.

When this occurs, the IDE throws multiple exceptions when trying to clear up the line using delete, cut/paste, select, etc...
Comment 1 esmithbss 2011-02-08 21:02:59 UTC
Created attachment 105757 [details]
Screen Capture
Comment 2 esmithbss 2011-02-08 21:03:48 UTC
Created attachment 105758 [details]
IDE Log File
Comment 3 David Strupl 2011-06-17 12:08:29 UTC
I think this was already fixed but I don't have the report number at hand.

The exception is

java.lang.IllegalStateException: limitOffset=1315 > docTextLength=1306

	at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:402)

Closing as works for me.