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 209876 - Automatic header inclusion does not work in many cases
Summary: Automatic header inclusion does not work in many cases
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 15:42 UTC by Vladimir Kvashin
Modified: 2012-04-16 13:09 UTC (History)
1 user (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 Kvashin 2012-03-21 15:42:32 UTC
If a code in the editor contains words "class" or "struct" somewhere before completion point, auto including headers does not work.
Comment 1 Vladimir Kvashin 2012-03-21 15:57:47 UTC
The intent was to check whether we are in a forward class declaration, in which case we should not insert #include. But due to a misprint, "class" or "struct" somewhere in editor before insertion point (not immediately before, probably on previous screen) prevented from inserting #include.

Fixed:
cnd-main: http://hg.netbeans.org/cnd-main/rev/424ab6ce9cbd
blacktie: rev/02ad1bceabe5
Comment 2 Quality Engineering 2012-03-22 11:14:00 UTC
Integrated into 'main-golden', will be available in build *201203220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/424ab6ce9cbd
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #209876 - Automatic header inclusion does not work in many cases
(transplanted from 02ad1bceabe5510af81c1d8f5113906c61255881)
Comment 3 Vladimir Kvashin 2012-03-28 16:02:00 UTC
pushed to 71patch2:
http://hg.netbeans.org/releases/rev/f22822af9ad5
Comment 4 Quality Engineering 2012-03-29 11:59:16 UTC
Integrated into 'releases', will be available in build *201203291150* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/f22822af9ad5
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #209876 - Automatic header inclusion does not work in many cases
(transplanted from 02ad1bceabe5510af81c1d8f5113906c61255881)
(transplanted from 424ab6ce9cbddcd9452ee265bac86a31e1b6ca52)
Comment 5 soldatov 2012-04-04 12:36:43 UTC
verified in trunk build
Comment 6 soldatov 2012-04-16 13:09:37 UTC
verified in NetBeans IDE 7.1.2 (Build 201204101705)