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 216343 - Code model should separate add/remove file from include/exclude
Summary: Code model should separate add/remove file from include/exclude
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-08-03 06:28 UTC by Alexander Simon
Modified: 2012-12-11 06:13 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 Alexander Simon 2012-08-03 06:28:05 UTC
User (or automatic discovery) can change header flag exclude/include
Code model processes this change event as "Delete/Add" file.
It results in a huge overhead.
Expected following behavior is:
A header file is marked as excluded. Code model should ignore this event if the file is included in at least one compilation unit. Otherwise code model removes the file from code assistance.
A header file is marked as included. IDE should ignore this event if the file is included in at least one compilation unit. Otherwise code model add the file to code assistance with default system include/macros.
A header file marked as included are parsed after finishing parsing all compilation units only if the file is not parsed jet.
Comment 1 Alexander Simon 2012-08-03 06:34:52 UTC
Steps to reproduce:
- create Quote sample.
- wait parsing finishing.
- change properties of module.h, property "Exclude from build".
Actual behavior:
- IDE reparse project
Expected behavior:
- there is no reparsing
Comment 2 Vladimir Voskresensky 2012-12-11 06:11:45 UTC
fixed as part of issue #217776
http://hg.netbeans.org/cnd-main/rev/c43dcff43455
http://hg.netbeans.org/cnd-main/rev/c4660649350c
Comment 3 Vladimir Voskresensky 2012-12-11 06:13:02 UTC
we also separate now remove physically from "exclude" and from "Remove from project" for headers which are still used by some of remaining compilation units