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.
Steps: - Open C++ file with such code: #include <stdlib.h> #include <string> int main(int argc, char** argv) { string s; return (EXIT_SUCCESS); } - Select "string" in "string s;" line and press Alt-g ==> 3 weeks ago it worked correctly. Now "cannot open element 'string'" message appears. But If I replace "string" on "std::string" then hyperlink works correctly.
this code is not compilable, there should be using namespace std; like: #include <stdlib.h> #include <string> using namespace std; int main(int argc, char** argv) { string s; return (EXIT_SUCCESS); }
fixed - support using resolving the necessary part of modelimpl was fixed by adding CsmUsingResolver service cvs log: Checking in cplusplus/ext/CsmCompletionQuery.java; /shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/ext/CsmCompletionQuery.java,v <-- CsmCompletionQuery.java new revision: 1.2.2.15.2.23.4.13; previous revision: 1.2.2.15.2.23.4.12 done Checking in csm/CompletionResolverImpl.java; /shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/csm/CompletionResolverImpl.java,v <-- CompletionResolverImpl.java new revision: 1.2.2.12.4.12.4.3; previous revision: 1.2.2.12.4.12.4.2 done
Closed. Verified in build 20070622