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 177516 - code folds doesn't appear in ~100% cases
Summary: code folds doesn't appear in ~100% cases
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Alexey Vladykin
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-11-24 07:21 UTC by soldatov
Modified: 2013-05-17 08:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-11-24 07:21:06 UTC
I have some problem code folds before, but in http://smetiste.czech.sun.com/builds/netbeans/6.8/rc1/2009-11-22_23-41-36 build code folds doesn't appear in ~100% cases.

Scenario:
- Create Quote project
- Open cpu.cc file
==> code folds doesn't appear

Workaround: modify file
Comment 1 Vladimir Voskresensky 2009-11-24 08:12:42 UTC
Nothing wrong on C++ side.
Please, evaluate
Comment 2 mslama 2009-11-27 06:36:50 UTC
Confirmed with latest dev build.
Comment 3 Miloslav Metelka 2009-11-30 04:10:42 UTC
It's some race condition since on Mac OS X I can't reproduce in Quote project cpu.cc file on both dev build and the mentioned 6.8 rc1. On Linux it should be easily reproducible so I'll try that.
Comment 4 mslama 2009-12-01 06:09:14 UTC
Problem seems to be in CppFolderManager.collectFoldUpdates
CppFile cpf = CppMetaModel.getDefault().
                get(doc.getProperty(Document.TitleProperty).toString());
is null so method returns null.
doc.getProperty(Document.TitleProperty).toString() is 
/home/mslama/NetBeansProjects/Quote_1/cpu.cc
Comment 5 Vladimir Voskresensky 2009-12-03 05:43:45 UTC
Marek, thanks for the evaluation!
Comment 6 Vladimir Voskresensky 2009-12-22 06:53:50 UTC
fixed as part of extracting CND editor infrastructure