Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 215041 - Header file greys out
Header file greys out
Product: cnd
Classification: Unclassified
Component: Code Model
PC Windows 7
: P3 (vote)
: 8.0
Assigned To: Vladimir Voskresensky
Depends on:
  Show dependency treegraph
Reported: 2012-06-30 22:46 UTC by aschwarz1309
Modified: 2014-11-19 13:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT


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


#include "header.h"

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.


/* coments */
#ifndef HEADER_H
# define HEADER_H
<class specification>

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?


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo