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 215041 - Header file greys out
Summary: Header file greys out
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2012-06-30 22:46 UTC by aschwarz1309
Modified: 2014-11-19 13:52 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 aschwarz1309 2012-06-30 22:46:17 UTC
Product Version = NetBeans IDE 7.2 Beta (Build 201205031832)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_03
Runtime = Java HotSpot(TM) Client VM 22.1-b02

[code]
header.h
header2.h

file.h
#include "header.h"
[/code]

While editing file.h and going to header.h, all code within the header class are greyed. Comments outside of the class specification appear normal. Editing another header file, header2.h, during the same session does not change the code contained in the class.

Specifically:

[code]
header.h
/* coments */
#ifndef HEADER_H
# define HEADER_H
<class specification>
#endiif
[/code]

The comments appear normal, all code and comments from the #define to the end of the file are grayed.
Comment 1 aschwarz1309 2012-06-30 23:00:47 UTC
In file.h, references to header.h are flagged as "unable to resolve identifier" errors.
Comment 2 bkbogy 2013-05-21 06:55:15 UTC
I have a similar issue in Final - NetBeans IDE 7.3.

Everything between #ifndef and #endif is greyed out.  Closing NetBeans does not resolve the issue.  The only way I'm able to fix it is removing all the #include statements throughout the program.  It's happened 3 times today, and it's getting frustrating, since I have to do that with 9 files.  Code works fine, with no errors, but it's harder to develop code.  Never had this issue before today (I've been using NetBeans heavily for the past 9 months).
Comment 3 Vladimir Voskresensky 2014-11-19 13:52:21 UTC
I can not reproduce the problem in 8.0.2 candidate. Could you try it, please?
http://bits.netbeans.org/download/8.0.2/daily/9dad33/2014-11-18_19-05-13/

Thanks!