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 191490 - pkg-config resolution should work on code added with 'add existing items from folders' too
Summary: pkg-config resolution should work on code added with 'add existing items from...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-30 20:39 UTC by lurscher
Modified: 2010-11-20 15:34 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lurscher 2010-10-30 20:39:46 UTC
tested with build 201010060000

this is related but not the same as this report http://netbeans.org/bugzilla/show_bug.cgi?id=191048

1) i created a test pkg-config package file pointing to ~/testfolder/include.

2) in this include folder i added two folders, A/ and B/. in A/ i create a header called A.h. In B/ i create a header called B.h


Now i start netbeans, create a new c++ application project. In the c++ compiler project options i add:

`pkg-config --cflags test`
which produces as output: -I/home/lurscher/testfolder/include

in main.cpp created from the wizard, i write "#include <" and i get completions for both A and B folders correctly. 
I added includes for both files i previous created, so main.cpp looks like:

#include <cstdlib>
#include <A/A.h>
#include <B/B.h>

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    return 0;
}

(in bug report 191048, boost resolution work once you add the includes in the in-project sources, so this step is important)

on the project, i right-click and select 'add existing items from folders'. Since i cannot choose to add folders from the user included paths, i go to ~/testfolder/include and add it.

i open include/A/A.h , i write "#include <" and i don't get completion for folder B. 

if i write #include "../ i do workaround this, but the ../ introduces a dependes on the includes A/ and B/ to be at the same level in the filesystem tree




Now, i