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 172227 - Unable to resolve identifier path although code compiles allright
Summary: Unable to resolve identifier path although code compiles allright
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 22:08 UTC by mchristi
Modified: 2009-09-18 22:24 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 mchristi 2009-09-14 22:08:29 UTC
I've made a little C++ project using the boost-1.36.0 libraries under Linux.  This is the main function:

#include <iostream>
#include <boost/filesystem.hpp>

int main() {
    boost::filesystem::path homedir("/");

    boost::filesystem::directory_iterator end;
    boost::filesystem::directory_iterator itr(homedir);

    for (; itr != end; itr++) {
	std::cout << itr->path ().filename () << std::endl;
    }

    return (EXIT_SUCCESS);
}

The editor generates a warning mark next to the line with itr->path().filename () saying that Netbeans is "unable to
resolve identifier path".  Indeed, when I try to do code completion using the itr variable, Netbeans is unable give me
any completion suggestions.  The code compiles fine though so it must be a shortcoming of Netbeans' parser.

BTW, C++ support is improving tremendously.  Keep up the good work!
Comment 1 Vladimir Voskresensky 2009-09-14 22:38:11 UTC
Nik, please, investigate
Comment 3 Quality Engineering 2009-09-18 22:24:07 UTC
Integrated into 'main-golden', will be available in build *200909181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/00b07cdae1a4
User: Nick N. Krasilnikov <nnnnnk@netbeans.org>
Log: fixed IZ#172227 : Unable to resolve identifier path although code compiles allright