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 258513 - Erroneous unresolved included hint
Summary: Erroneous unresolved included hint
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-24 03:02 UTC by MackSix
Modified: 2016-09-01 14:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
logfile (43.43 KB, text/plain)
2016-03-24 03:02 UTC, MackSix
Details
Screenshot 1 (391.16 KB, image/png)
2016-03-24 03:03 UTC, MackSix
Details
Project "Tutorial 0.3.8.zip" (8.81 MB, application/x-zip-compressed)
2016-04-03 06:13 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2016-03-24 03:02:42 UTC
Created attachment 158985 [details]
logfile

I have an erroneous "unresolved included inside" for includes in a project that show the problem being in a header file that is not part of the project.

See Screenshot 1.

If any more info is needed, please let me know.

Product Version: NetBeans IDE Dev (Build 201603230001)
Java: 1.8.0_74; Java HotSpot(TM) 64-Bit Server VM 25.74-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_74-b02
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
Comment 1 MackSix 2016-03-24 03:03:11 UTC
Created attachment 158986 [details]
Screenshot 1
Comment 2 MackSix 2016-04-02 17:21:38 UTC
Also valid in:

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_74; Java HotSpot(TM) 64-Bit Server VM 25.74-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_74-b02
Comment 3 MackSix 2016-04-03 06:12:42 UTC
Using MSYS2's mingw32 toolchain. 

Steps to Reproduce:

1. Download the project at this URL: https://netbeans.org/bugzilla/attachment.cgi?id=159101
2. Extract the 2 included folders to a convenient location.
3. Extract the project attached to this report Tutorial 3.0.8.zip to a convenient location.
4.Open both projects PPP2ED_1 and "Tutorial 3.0.8" in NetBeans.
5. Cause an include error in project PPP2ED_1 by adding "../lib/FLTK/include/FL" in the Project Properties->C++ Compiler->Include Directories.
6. Open up the file "Gamma Checkers.cpp" in project "Tutorial 3.0.8". Wait for project to be parsed and eventually there will be a Hint LightBulb appear on line 14 indicating an unresolved include. Press Ctrl+hover mouse cursor over the include and you will see it is picking up the include error in the other project. (See Screenshot).

If the project PPP2ED_1 is closed, the Hint on line 14 goes away, but Ctrl+hover mouse cursor shows the same include error. (See Screenshot). 

Workaround: Open PPP2ED_1 and fix the error or delete NetBeans cache.
Comment 4 MackSix 2016-04-03 06:13:38 UTC
Created attachment 159111 [details]
Project "Tutorial 0.3.8.zip"
Comment 5 MackSix 2016-04-03 06:26:48 UTC
(In reply to MackSix from comment #3)
> Using MSYS2's mingw32 toolchain. 
> 
> Steps to Reproduce:
>
> 4.Open both projects PPP2ED_1 and "Tutorial 3.0.8" in NetBeans.

Correction: I meant to say open the project "Tut 16 Gamma and Textures" inside the folder "Tutorial 3.8.8".