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 196664 - Code Model ignores the generated files
Summary: Code Model ignores the generated files
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on: 202348
Blocks:
  Show dependency tree
 
Reported: 2011-03-14 11:05 UTC by soldatov
Modified: 2011-10-15 14:45 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 2011-03-14 11:05:52 UTC
Scenario:
- Create LexYacc project
- Build project
- Open y.tab.c file
==> "The file with restricted code assistance" message in Navigator tab (in NetBeans 6.9.1 Navigator is empty).
I need to close and open project in order to fix code model.
Comment 1 Vladimir Voskresensky 2011-03-18 08:24:09 UTC
I can try to investigate how complex the fix is
Valera, is it regression, comparing to 6.9.1?
Comment 2 soldatov 2011-03-18 08:53:46 UTC
No. NetBeans 6.9.1 has same behaviour. Only in 6.9.1 Navigator tab is empty.
Comment 3 soldatov 2011-03-18 09:03:06 UTC
I installed all updates on NB6.9.1 and now Navigator tab contains "The file with restricted code assistance" message also.
Comment 4 soldatov 2011-08-30 09:29:48 UTC
it is a serious problem in some cases
Comment 5 Vladimir Voskresensky 2011-09-09 14:30:47 UTC
patch candidates are P2s
Comment 6 Quality Engineering 2011-09-17 14:20:23 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7fb939b5b393
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #196664  -  Code Model ignores the generated files
Comment 7 Vladimir Voskresensky 2011-09-20 11:17:23 UTC
There are two problems:
- missed file events (because project or folder have not subscribed to them)
- missed NativeFileItem in data objects of generated files
The first one is too risky to be fixed in 7.0.1 context
The second one is needed and filed as separate issue #202348
Comment 8 Quality Engineering 2011-09-26 13:34:30 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/0a45c8917557
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #196664  -  Code Model ignores the generated files
(transplanted from 7fb939b5b39307f04f2419856a4a2691c0c790d9)
Comment 9 Vladimir Voskresensky 2011-10-13 10:24:48 UTC
will investigate what can be done in 7.1
Comment 11 Quality Engineering 2011-10-14 15:09:17 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/0ada4d35b0a3
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: tracing for #196664 - Code Model ignores the generated files
Comment 12 Quality Engineering 2011-10-15 14:45:12 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/fce74da484bd
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: extra fix for #196664 - Code Model ignores the generated files
- when looking for project check if item belongs to project, otherwise check source and project paths