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 223643 - rename breaks code in SubProjects sample
Summary: rename breaks code in SubProjects sample
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: REGRESSION
: 223645 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-11 10:02 UTC by soldatov
Modified: 2012-12-14 02:42 UTC (History)
0 users

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 2012-12-11 10:02:10 UTC
Scenario:
- Create SubProjects sample
- open main.cc file
- select hello2 and press Ctrl+R
- Type test1
- Press Refactor button
- Wait 10 seconds
- select hello3 and press Ctrl+R
- Type test2
- Press Refactor button
- Wait 10 seconds
==> test2 is marked as unresolved identifier
- Clean and Build project
==> build failed

main.cc: In function ‘int main(int, char**)’:
main.cc:44:24: error: ‘test2’ was not declared in this scope
Comment 1 nnnnnk 2012-12-12 13:48:43 UTC
It's a regression that was added in last 2 months.
Comment 2 Vladimir Voskresensky 2012-12-13 17:27:55 UTC
side effect of text index. With -J-Dcnd.model.text.index=false works just fine.
Comment 3 Vladimir Voskresensky 2012-12-13 18:14:44 UTC
*** Bug 223645 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Voskresensky 2012-12-13 18:35:38 UTC
http://hg.netbeans.org/cnd-main/rev/a8789f11bb66

- use primary key presentation based on file index AND unit index, otherwise documents overwrite each other for files from different projects
- do not load full document, primary key field is enough and allows to reduce memory usage
Comment 5 Quality Engineering 2012-12-14 02:42:58 UTC
Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a8789f11bb66
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #223643 - rename breaks code in SubProjects sample
- use primary key presentation based on file index AND unit index, otherwise documents overwrite each other for files from different projects
- do not load full document, primary key field is enough and allows to reduce memory usage