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 227142 - Misleading message "There are unresolved includes inside..."
Summary: Misleading message "There are unresolved includes inside..."
Status: NEW
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:
Depends on:
Blocks:
 
Reported: 2013-03-07 09:05 UTC by Alexander Simon
Modified: 2013-03-08 02:03 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE with opened sorces (157.72 KB, image/png)
2013-03-07 09:05 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-03-07 09:05:27 UTC
Created attachment 132317 [details]
IDE with opened sorces

I open my mozilla browser project with clean user dir.
After finishing parsing, IDE reported that main compilation unit has unresolved include directives inside includes.
I tried investigate the problem, but the result of investigation is all directives inside were resolved.
See screen shot. The picture contains a source with a chain of includes.

Expected behavior:
- do not show false positive message
Comment 1 Vladimir Voskresensky 2013-03-07 11:23:23 UTC
Investigated:
- there is really unresolved file in hierarchy
-- in fact file is detected as failed as "recursively" included
- following messages in tooltip (hold Ctrl) and pressing Ctrl+Alt+click jumps directly into file with the problem #include

unambiguity is caused by the following:
- if jump through files hierarchy one by one => some files doesn't have any errors/warnings at all
- "green" state is the result of "disabled" error HL providers for "big" files (>5000 lines)

Conclusion:
- show "warning" information about disabled HL
-- preferably warning annotation should allow to ignore big_file_status and enable HL for file
-- this info can be shown as warning on the first line of document and also in navigator
=> change to ENH
Comment 2 Vladimir Voskresensky 2013-03-07 11:44:16 UTC
fix for separating recursive vs. failed #include
http://hg.netbeans.org/cnd-main/rev/2bb2d1b9af67
Comment 3 Quality Engineering 2013-03-08 02:03:25 UTC
Integrated into 'main-golden', will be available in build *201303072300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2bb2d1b9af67
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #227142 - Misleading message "There are unresolved includes inside..."
- distinguish recursive and failed #include directive states