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 241844

Summary: Project preprocessor defines are not being applied to code assistance for active project
Product: cnd Reporter: nathanh
Component: -- Other --Assignee: issues@cnd <issues>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description nathanh 2014-02-13 19:38:34 UTC
Product Version = NetBeans IDE 8.0 Beta (Build 201401141042)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01

Set a Define in:
In Run->Set Project Configuration->Customize...->Code Assistance->C++ Compiler->Preprocessor Definitions

It is not being reflected in code.  I manually open the file properties, I verified "Inherit from project" is selected. I can manually add to the individual file and it works.
Comment 1 nathanh 2014-02-13 19:38:42 UTC
Created attachment 145165 [details]
IDE log
Comment 2 Alexander Simon 2014-02-18 16:10:10 UTC
Hi nathanh,

I cannot reproduce the bug.
Please provide additional info:
- screen shot with project properties (Code Assistance->C++ Compiler->Preprocessor Definitions)
- screen shot of the file properties (C++ Compiler->Preprocessor Definitions->...[Edit])
- open the file in editor and popup menu on project->Code Assistance->Dump C/C++ Code Model Diagnostics->Preprocessor States