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 240053 - [80cat]JSON Editor Code folding behaviour is not correct and is painful.
Summary: [80cat]JSON Editor Code folding behaviour is not correct and is painful.
Status: RESOLVED INCOMPLETE
Alias: None
Product: javascript
Classification: Unclassified
Component: JSON (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 04:16 UTC by manikantannaren
Modified: 2014-01-09 05:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Incorrect folding. (92.44 KB, image/png)
2014-01-07 04:17 UTC, manikantannaren
Details
Sample data. (30.90 KB, text/x-json)
2014-01-07 04:17 UTC, manikantannaren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manikantannaren 2014-01-07 04:16:05 UTC
Product Version = NetBeans IDE Dev (Build 201401050002)
Operating System = Mac OS X version 10.9.1 running on x86_64
Java; VM; Vendor = 1.8.0-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b61

I have a json document of about 1000 Lines. When I try to fold sections, it folds incorrectly and also I am unable to expand the fold since the markers are not changed. it still shows - instead of + when I collapse. Clicking on the fold marker again does a collapse.
Comment 1 manikantannaren 2014-01-07 04:17:51 UTC
Created attachment 143654 [details]
Incorrect folding.
Comment 2 manikantannaren 2014-01-07 04:17:55 UTC
Created attachment 143655 [details]
Sample data.
Comment 3 Petr Hejl 2014-01-07 09:44:01 UTC
Well, what is the expected behavior? There is another collapsable block starting at the same line. You can expand collapsed block by clicking on it.
Comment 4 manikantannaren 2014-01-09 05:18:55 UTC
For one when I hit the collapse marker at that line, the number of lines to collapse is > 32. Actually about 800 lines.

Secondly I cannot expand a collapsed block. If I click the collapse marker again, The text changes to show another collapsed block side by side but has actually not collapsed anything.