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 Dev (Build 201305022300) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18 OS: Mac OS X User Comments: tomjnsn: editing javascript Stacktrace: java.lang.AssertionError: startOffset=1318 > endOffset=1317, fold=[code-block] E1 <1318,1317>, desc='{...}', hash=0x69a23777, [1318, 1317] {1319, 1316} at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.updateAffectedOffsets(FoldHierarchyTransactionImpl.java:1031) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeFoldFromHierarchy(FoldHierarchyTransactionImpl.java:943) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeFold(FoldHierarchyTransactionImpl.java:461) at org.netbeans.modules.editor.fold.FoldHierarchyExecution.remove(FoldHierarchyExecution.java:482) at org.netbeans.modules.editor.fold.FoldOperationImpl.removeFromHierarchy(FoldOperationImpl.java:204) at org.netbeans.modules.editor.fold.FoldOperationImpl$Refresher.run(FoldOperationImpl.java:654)
Created attachment 134097 [details] stacktrace
Created attachment 138027 [details] stacktrace Testing Ctrl+Delete/Ctrl+Backspace on CamelCase Type Name.
Created attachment 138035 [details] stacktrace 1. Used Source>>Organize Members on test file with modified member organization settings in Options. 2. Constructors were copied instead of moved so there were 2 copies of them. 3. I clicked Undo and this Error happend.
Created attachment 138258 [details] stacktrace 1. Did a Source>>Organize Members on TS sample project. (It takes 3 times to finish the sorting because of flawed Organize Members algorithm.) 2. Clicked Undo 3 times. This AssertionError happened
Created attachment 138476 [details] stacktrace Used Redo (CMD+SHIFT+Z).
Integrated into 'main-silver', will be available in build *201308090746* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/fc4254b26c7d User: Svata Dedic <sdedic@netbeans.org> Log: #229340: corrected typo in logs
It happened again in a newer build when I was undoing some changes done by Source >> "Organize Members" and History View >> History List Context Menu: "Revert from History". Exception report: http://statistics.netbeans.org/analytics/exception.do?id=687034 Product Version: NetBeans IDE Dev (Build 201308182300) Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b38 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Created attachment 144421 [details] stacktrace Used "Undo" command.
24 reports => P2
I did not reproduce the defect, however I've changed the checking from assert to LOG.warning() + introduced a 'damaged' flag in the hierarchy, so after the hierarchy becomes damaged and the damage will be compensate, extensive logging will start on the document - after each subsequent damage to the hieararchy, original + next hierarchy state + document contents will be logged. Resolving as INCOMPLETE, waiting for logs to come for final solution - jet-main#46baa7217b92
Integrated into 'main-silver', will be available in build *201403150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/46baa7217b92 User: Svata Dedic <sdedic@netbeans.org> Log: #229340: asserts turned into log, verbose logging from damaged hierarchy