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 177276 - C++ stl::map code completion errors
Summary: C++ stl::map code completion errors
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 03:52 UTC by mshindo
Modified: 2009-11-20 14:03 UTC (History)
0 users

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 mshindo 2009-11-20 03:52:53 UTC
Code completion doesnt work on stl::map. 

Example:

map<string,string>::iterator iter = m.find("");

Netbeans does not find or identify find as a method of map<>::iterator. Code completion fails for all methods of map. 

This code compiles fine, g++ has no problems with it.
Comment 1 nnnnnk 2009-11-20 11:28:59 UTC
I can not reproduce this situation.

Could you provide your compiler name and netbeans version?
Are there any unresolved includes?
Comment 2 mshindo 2009-11-20 13:24:03 UTC
Ubuntu 9.04
g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Netbeans 6.8, issue also exists on Netbeans 6.7.1

There aren't any unresolved includes. Netbeans accepts that map is a proper structure, but cant find any member functions for it.

Apart from small modifications to the -Xms and -Xmx JVM, the system is default.
Comment 3 Vladimir Voskresensky 2009-11-20 14:03:33 UTC
I have checked on Ubuntu 9.04 with g++ 
$ g++ --version
g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3

and the following works fine.
-------------------
#include <map>
#include <string>

using namespace std;
/*
 * 
 */
int main(int argc, char** argv) {
    map<string,string> m;
    map<string,string>::iterator iter = m.find("");

    return 0;
}
--------------
Could you, please, try the most recent 6.8 build 
http://bertram.netbeans.org/hudson/job/cnd-main/lastSuccessfulBuild/
+ clean userdir + no import of settings from prev version.
Thanks,
Vladimir.