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 196002 - C/C++ include path resolution does not use NetBeans "Variables" from menu Tools->Variables
Summary: C/C++ include path resolution does not use NetBeans "Variables" from menu Too...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: igor_nikiforov
URL:
Keywords:
Depends on: 211763
Blocks:
  Show dependency tree
 
Reported: 2011-02-25 14:41 UTC by swpalmer
Modified: 2012-04-26 08:26 UTC (History)
1 user (show)

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 swpalmer 2011-02-25 14:41:27 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Mac OS X version 10.6.6 running on x86_64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307

I'm trying to use variables to identify the install location of an SDK. eg {$MY_SDK_PATH}/include (or is it VAR_MY_SDK_PATH.. not important - it doesn't work in any case)
For Java code I am able to use NB Variables for this (e.g. path to SDK jar files).  I should be able to do the same for C/C++, but instead the path is evaluated as relative to the project folder /path/to/my/project/${MY_SDK_PATH}/include.  This of course leads to bogus errors in the editor, though the code compiles fine because I have also set an environment variable for the SDK path.  The C/C++ module should recognize either the NB variable or the environment variable.
Comment 1 igor_nikiforov 2012-04-24 11:15:43 UTC
The Tools -> Variables (as well as Tools -> Libraries) are not supported by the C/C++/Fortran projects at all. This is part of Java development infrastructure. And the issue here is that this two menu items are displayed for CND and derived projects.

As for using environment variables: it is possible to use them and run/build/debug will be working fine, but Code Assistance could be broken. And we have separate issue filed for that: #199251 "Include paths and code assistance".
Comment 2 igor_nikiforov 2012-04-24 13:19:03 UTC
The Variables menu is removed:
  http://hg.netbeans.org/cnd-main/rev/ca9c0c4fee07

Libraries is still with us as it is a part of the platform.