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.
This bug was originally marked as duplicate of bug 238175, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0 Beta (Build 201401141042) VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13 OS: Mac OS X User Comments: GUEST: editing file ... GUEST: Writing C++ code for Windows on a Mac. No attempt to compile and run. vv159170: editing in file petrk: edited code GUEST: Nothing, just typed code. Stacktrace: java.lang.Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl(FoldChildren.java:247) at org.netbeans.modules.editor.fold.FoldChildren.insert(FoldChildren.java:147) at org.netbeans.api.editor.fold.Fold.extractToChildren(Fold.java:362) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldExtractToChildren(FoldHierarchy.java:394) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:956) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:647)
Created attachment 145240 [details] stacktrace
Created attachment 145674 [details] stacktrace edit file
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=207649
*** Bug 242650 has been marked as a duplicate of this bug. ***
Please look at the dumped hierarchy and messags. The document has length X and the root fold extends from 0 to X, while the to-be-added fold ends at X + 1.
45 reports => P2
fixed, change set: http://hg.netbeans.org/cnd-main/rev/c75d3110b9c4
Integrated into 'main-silver', will be available in build *201408090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c75d3110b9c4 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug 241922 - Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
Can not reproduce the exception in trunk build 20140812.
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/7278f4f31985 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug 241922 - Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl (transplanted from c75d3110b9c48ddcb6b742aa66fc4af0cce6b139)