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 255097 - The <editor-fold> comment no longer seems to work
Summary: The <editor-fold> comment no longer seems to work
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 13:44 UTC by SmokeyPHP
Modified: 2015-09-25 01:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (51.19 KB, text/plain)
2015-09-08 13:44 UTC, SmokeyPHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SmokeyPHP 2015-09-08 13:44:35 UTC
Product Version = NetBeans IDE 8.1 Beta (Build 201508041349)
Operating System = Windows 8.1 version 6.3 running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Comment 1 SmokeyPHP 2015-09-08 13:44:40 UTC
Created attachment 155969 [details]
IDE log
Comment 2 Jiri Kovalsky 2015-09-08 18:01:38 UTC
Matthew, are you talking about Java code folding or PHP code folding or some other language? Do you have some steps to reproduce? Or screenshot? Or video capturing the error? Or sample project exhibiting the malfunction? Closing as incomplete until you provide more information.
Comment 3 SmokeyPHP 2015-09-10 14:36:14 UTC
Of course, I'm referring to the usage in JavaScript - e.g.

    // <editor-fold defaultstate="collapsed" desc="A big portion of code">

It seems to work in a PHP file, having just tested it, but my JS files don't seem to know about them at all anymore. This is on the 8.1 beta (Build 201508041349). HTML5 x64 download I believe.

I can't manually close/expand the comments nor is there any automatic handling.
Comment 4 terje7601 2015-09-24 11:56:53 UTC
I have the same issue: custom code folding does no longer work for JavaScript files.

Product Version: NetBeans IDE Dev (Build 201509130002)
Updates: Updates available
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 Svata Dedic 2015-09-24 12:03:24 UTC
Seems to happen on dev build 201506080001 as well.
Comment 6 Svata Dedic 2015-09-24 12:47:02 UTC
Caused by change #8a80a55e0057 -- line comment's token category changed to 'line-comment' and is no longer recognized by the stock CustomFoldManger. If possible, please change the token category value to "comment-line" (the prefix "comment" is important). If not suitable, ping me so I'll add some additional configuration (i.e. multiple categories) so you can parametrize the fold manager according to your lexer constants.
Comment 7 Petr Pisl 2015-09-24 13:12:00 UTC
The category name changed to comment-line. Thanks for catching this.
Comment 8 Quality Engineering 2015-09-25 01:46:41 UTC
Integrated into 'main-silver', will be available in build *201509250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e9564fa2047a
User: Petr Pisl <ppisl@netbeans.org>
Log: #255097 - The <editor-fold> comment no longer seems to work