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 222913 - code assistance doesn't work in modified files of reopened projects
Summary: code assistance doesn't work in modified files of reopened projects
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on: 223003
Blocks:
  Show dependency tree
 
Reported: 2012-11-28 17:04 UTC by Vladimir Voskresensky
Modified: 2012-12-14 02:42 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 Vladimir Voskresensky 2012-11-28 17:04:52 UTC
create Welcome
(*) in main() add new local var and then try to see it in completion for unsaved file => works

close Welcome,
reopen Welcome without restarting IDE
repeat step (*) => no completion anymore for unsaved files
Comment 1 Vladimir Voskresensky 2012-11-28 17:49:03 UTC
http://hg.netbeans.org/cnd-main/rev/290f27a25610
http://hg.netbeans.org/cnd-main/rev/b26f544006ed
more symmetric close/open with reinitialization of conf descriptor to allow NFI to be put into NFIS
Comment 2 Vladimir Voskresensky 2012-11-29 14:07:02 UTC
We have extra memory leak from code model which holds MakeProject
Comment 3 Vladimir Voskresensky 2012-11-29 17:52:12 UTC
fixed all CND paths which hold MakeProject after closing
http://hg.netbeans.org/cnd-main/rev/4d1daf6157db

but there are more from PopupMenu (see issue #223003)
Comment 4 Quality Engineering 2012-11-30 02:44:43 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/290f27a25610
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #222913 - code assistance doesn't work in modified files of reopened projects
- trace files with empty NFIS
Comment 5 Alexander Pepin 2012-12-05 11:47:14 UTC
It should be covered by QA tests.
Comment 6 Quality Engineering 2012-12-08 02:56:22 UTC
Integrated into 'main-golden', will be available in build *201212080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8770cdefc37f
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #222913 - code assistance doesn't work in modified files of reopened projects (mem leak in code model)
- track opened/closed state more correctly
Comment 7 Vladimir Voskresensky 2012-12-10 12:13:11 UTC
last fix for close/reopen logic of MakeProject:
http://hg.netbeans.org/cnd-main/rev/78b565ad2dcf
Comment 8 Quality Engineering 2012-12-12 02:43:48 UTC
Integrated into 'main-golden', will be available in build *201212120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e81436a4382b
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #222913 - code assistance doesn't work in modified files of reopened projects
- prepare folder task and invoke it when project is (re)opened;
- restore in old scheme only once
Comment 9 Quality Engineering 2012-12-14 02:42:04 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/293965177ec4
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: extra fix for #222913 code assistance doesn't work in modified files of reopened projects
- symmetric attach/detach config files listeners