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 130685 - navigator becomes desynchronized while editing HTML file
Summary: navigator becomes desynchronized while editing HTML file
Status: CLOSED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-20 17:15 UTC by Jindrich Sedek
Modified: 2009-05-18 10:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (156.57 KB, image/png)
2008-03-20 17:26 UTC, Jindrich Sedek
Details
full stacktrace (1.34 KB, text/plain)
2008-04-02 13:04 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2008-03-20 17:15:26 UTC
create new HTML file
use this code:
------------------
<table>
    <tr>
        <td>
            
        </td>
    </tr>
</table>
-----------------
navigator looks fine, double clicking node sets correct position in HTML document
add one more "tr" line above the existing one -> you get:
-------------------
<table>
    <tr>

    </tr>
    <tr>
        <td>
            
        </td>
    </tr>
</table>
----------------
look at navigator -> one more "td" node is added
Comment 1 Jindrich Sedek 2008-03-20 17:26:03 UTC
Created attachment 58772 [details]
screenshot
Comment 2 Jindrich Sedek 2008-03-26 10:51:11 UTC
using bigger file is making navigator unusable - nodes are missing in navigator and double clicking some node shifts 
cursor at wrong possition -> increasing priority
Comment 3 Marek Fukala 2008-04-01 18:11:43 UTC
Looks like a problem in HtmlElementHandle.signatureEquals(). 
Comment 4 Marek Fukala 2008-04-01 19:47:24 UTC
Is this issue a stopper? I tend to say no. QE please express yourself asap since fixing this may take some time.
Comment 5 Jindrich Sedek 2008-04-02 13:02:57 UTC
I'm trying to work with navigator little bit and it's  nasty bug. You click some node and you get navigated on the
second side of document. I'm also getting BLE while removing some piece of HTML code and than using navigator:
javax.swing.text.BadLocationException: Offset 569 with bias Forward is outside of the view, children = 14 covering
offsets <0, 569>
	at org.netbeans.lib.editor.view.GapBoxView.modelToView(GapBoxView.java:1503)
	at org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:420)
	at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1496)

I would say this issue should be fixed in 6.1
Comment 6 Jindrich Sedek 2008-04-02 13:04:22 UTC
Created attachment 59541 [details]
full stacktrace
Comment 7 Martin Schovanek 2008-04-02 13:07:50 UTC
The Navigator is 100% unusable. Showstopper from my point o view.
Comment 8 Marek Fukala 2008-04-03 23:14:00 UTC
fixed in main in revision 4120d03d4499, please verify
Comment 9 Petr Jiricka 2008-04-04 08:21:09 UTC
Tor, will you please review Marek's patch to GSF? Thanks.
Comment 10 Martin Schovanek 2008-04-04 14:13:42 UTC
Verified at trunk build.
Comment 11 Torbjorn Norbye 2008-04-04 17:07:55 UTC
Code reviewed and approved.
Comment 12 Marek Fukala 2008-04-06 19:29:30 UTC
transplanted to release61 revision a6d0bc3fa03a
Comment 13 Jindrich Sedek 2008-04-07 11:47:42 UTC
verified
NetBeans IDE Dev (Build 200804062002)