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 240755 - IllegalStateException at org.netbeans.api.editor.fold.Fold.extractToChildren
Summary: IllegalStateException at org.netbeans.api.editor.fold.Fold.extractToChildren
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks: 240725
  Show dependency tree
 
Reported: 2014-01-21 11:07 UTC by Jiri Prox
Modified: 2014-02-03 10:35 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206795


Attachments
stacktrace (1.77 KB, text/plain)
2014-01-21 11:07 UTC, Jiri Prox
Details
stacktrace (1.77 KB, text/plain)
2014-01-22 08:21 UTC, Vladimir Riha
Details
stacktrace (1.77 KB, text/plain)
2014-01-22 09:15 UTC, Jiri Kovalsky
Details
stacktrace (1.77 KB, text/plain)
2014-01-24 15:31 UTC, gholmer
Details
stacktrace (1.84 KB, text/plain)
2014-01-25 13:43 UTC, Martin Fousek
Details
stacktrace (1.84 KB, text/plain)
2014-01-25 23:58 UTC, Guile
Details
stacktrace (1.77 KB, text/plain)
2014-01-27 14:19 UTC, kosmonaffft
Details
stacktrace (1.77 KB, text/plain)
2014-01-27 14:22 UTC, kosmonaffft
Details
stacktrace (1.77 KB, text/plain)
2014-01-27 14:25 UTC, kosmonaffft
Details
stacktrace (1.77 KB, text/plain)
2014-01-27 20:01 UTC, alied
Details
stacktrace (1.77 KB, text/plain)
2014-01-28 05:16 UTC, mrpc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2014-01-21 11:07:05 UTC
Build: NetBeans IDE Dev (Build 20140121-66acce1f24d6)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123
OS: Windows 7

User Comments:
jiriprox: ISE when editing javascrip file




Stacktrace: 
java.lang.IllegalStateException
   at org.netbeans.api.editor.fold.Fold.extractToChildren(Fold.java:354)
   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)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.commit(FoldHierarchyTransactionImpl.java:238)
   at org.netbeans.modules.editor.fold.FoldOperationImpl$Refresher.run(FoldOperationImpl.java:772)
Comment 1 Jiri Prox 2014-01-21 11:07:07 UTC
Created attachment 144189 [details]
stacktrace
Comment 2 Vladimir Riha 2014-01-22 08:21:53 UTC
Created attachment 144233 [details]
stacktrace

pasted line of code to PHP (single line of text without any folding)
Comment 3 Jiri Kovalsky 2014-01-22 09:15:53 UTC
Created attachment 144236 [details]
stacktrace

<html>
    <head>
        <title>CSS Demo for NetBeans QE</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="css/2.css">
    </head>
    <body>
        <h1>Kask?dov?n?</h1>
        
        <p>Seznam knih</p>

        <!-- Class selectors -->
        <div class="n?zev_knihy">O letad?lku K?n?ti</div>
        <div class="jm?no">Bohumil ??ha</div>
        
        <!-- ID selectors -->
        <div id="navig?tor">
            <a href="prvni.html">Prvn?</a>
            <a href="druhy.html">Druh?</a>
        </div>
        
        <p id="pati?ka">Copyrights 2014</p>

        <!-- Contextual selectors -->
        <div id="pati?ka">
            Copyrights <span>2014</span>
        </div>
    </body>
</html>
Comment 4 gholmer 2014-01-24 15:31:04 UTC
Created attachment 144345 [details]
stacktrace

In an AngularJS JavaScript file, I typed this:
customerFactory.get({)
The error appeared when typing the opening curly-brace.
Comment 5 Exceptions Reporter 2014-01-24 15:31:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206795
Comment 6 Martin Fousek 2014-01-25 13:43:09 UTC
Created attachment 144365 [details]
stacktrace

after Code COmpletion in scss file
Comment 7 Guile 2014-01-25 23:58:08 UTC
Created attachment 144369 [details]
stacktrace

Delete some lines
Comment 8 kosmonaffft 2014-01-27 14:19:09 UTC
Created attachment 144410 [details]
stacktrace

Add custom element to project...
Comment 9 kosmonaffft 2014-01-27 14:22:09 UTC
Created attachment 144411 [details]
stacktrace

Comment piece of code...
Comment 10 Exceptions Reporter 2014-01-27 14:22:16 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206795
Comment 11 kosmonaffft 2014-01-27 14:25:09 UTC
Created attachment 144414 [details]
stacktrace

Add custom html element to project...
Comment 12 Exceptions Reporter 2014-01-27 14:25:14 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206795
Comment 13 alied 2014-01-27 20:01:12 UTC
Created attachment 144425 [details]
stacktrace

editing a JS file.
Comment 14 mrpc 2014-01-28 05:16:09 UTC
Created attachment 144433 [details]
stacktrace

While editing a javascript file, I wanted to comment a if/else statement
I typed "//" before the first "if" and... exception.
Comment 15 Svata Dedic 2014-01-28 13:31:46 UTC
I finally succeeded in reproduction. A removed fold reference has escaped and caused ill behaviour later; fixed updating folds that create collision with the hierarchy.

May affect fix for issue #239195.

Implemented in jet-main#1d2fce0095a0
Comment 16 Quality Engineering 2014-01-31 02:39:36 UTC
Integrated into 'main-silver', will be available in build *201401310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1d2fce0095a0
User: Svata Dedic <sdedic@netbeans.org>
Log: #240755: fixed fold updates when changing hierarchy. Lowered error visibility