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 251764 - CND automatic fold settings get lost on editor preferences "OK"
Summary: CND automatic fold settings get lost on editor preferences "OK"
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 17:25 UTC by s_r
Modified: 2015-04-29 02:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
cnd.editor patch (2.14 KB, patch)
2015-04-10 17:30 UTC, s_r
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description s_r 2015-04-10 17:25:02 UTC
This is a code folding issue with CND in 8.0.2:

1. Set all the code folding options (fold types) to true in Editor preferences
2. Hit "OK"
3. Open a C/C++ source file and notice that everything is collapsed by default as expected
4. Re-open preferences and hit OK (changing nothing)
5. Close and re-open the source file from step 3
6. Only the initial comment fold type is folded automatically.  Everything else which was collapsed in step 3 stays expanded.

The settings to fold automatically are getting cleared on "OK," even though you haven't changed anything.  You can confirm visually that they are still set to true in the editor preferences panel.
Comment 1 s_r 2015-04-10 17:30:54 UTC
Created attachment 153130 [details]
cnd.editor patch

I talked to VV about this one through email.
Comment 2 Vladimir Voskresensky 2015-04-10 18:29:41 UTC
Ilia, could you review and integrate, please.
Thanks!
Comment 3 ilia 2015-04-28 08:50:50 UTC
Reviewed and integrated in:
  http://hg.netbeans.org/cnd-main/rev/017ad895f462
Comment 4 Quality Engineering 2015-04-29 02:32:30 UTC
Integrated into 'main-silver', will be available in build *201504290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/017ad895f462
User: Ilia Gromov <ilia@netbeans.org>
Log: Bug 251764 - CND automatic fold settings get lost on editor preferences "OK"