Bug 215041 - Header file greys out
Header file greys out
Status: NEW
Product: cnd
Classification: Unclassified
Component: Code Model
7.2
PC Windows 7
: P3 (vote)
: TBD
Assigned To: Vladimir Voskresensky
issues@cnd
: USABILITY
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-30 22:46 UTC by aschwarz1309
Modified: 2013-08-16 09:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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).


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