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 137967 - A series of assertion errors and unusable editor after UNDO
Summary: A series of assertion errors and unusable editor after UNDO
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-23 13:45 UTC by Tomasz Slota
Modified: 2008-06-24 04:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full IDE log (21.06 KB, text/plain)
2008-06-23 13:51 UTC, Tomasz Slota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2008-06-23 13:45:58 UTC
Steps to reproduce:

- create a new PHP project
- replace the content of created index file with the following:

<?php
    function aaa_function(){}
?>

- create a new PHP file
- in the newly created file call code completion for the aaa_func() function:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
            // put your code here
            aaa_|
        ?>
    </body>
</html>

- call UNDO
Comment 1 Tomasz Slota 2008-06-23 13:47:00 UTC
The first assertion is:

java.lang.AssertionError
	at org.netbeans.modules.editor.lib.TrailingWhitespaceRemove$AddRegionEdit.undo(TrailingWhitespaceRemove.java:378)
	at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:303)
	at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69)
	at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46)
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:2075)
	at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1734)

Comment 2 Tomasz Slota 2008-06-23 13:51:02 UTC
Created attachment 63257 [details]
Full IDE log
Comment 3 Tomasz Slota 2008-06-23 16:52:02 UTC
The problem is actually on my side, I am taking over
Comment 4 Tomasz Slota 2008-06-23 16:55:35 UTC
Fixed.

http://hg.netbeans.org/main/rev/e77e58aa7aeb
Comment 5 Quality Engineering 2008-06-24 04:29:04 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #278 build
Changeset: http://hg.netbeans.org/main/rev/e77e58aa7aeb
User: Tomasz Slota <tslota@netbeans.org>
Log: #137967: A series of assertion errors and unusable editor after UNDO