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 251418

Summary: Red underline (unresolved) does not disappear in Full Remote mode
Product: cnd Reporter: soldatov <soldatov>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2015-03-25 14:44:24 UTC
Scenario:
- Add some remote host
- Create simple Full Remote project with such C++ code:
using namespace std;

int main(int argc, char** argv) {
    for (int i = 0; i < 30; i++) {
        cout << "Step " << i << endl;
        sleep(1);
    }
    return 0;
}

==> I see a lot of unresolved identifiers
- Add #include <unistd.h> and #include <iostream> into code
- Rebuild project
==> ok. But IDE doesn't fix unresolved identifiers

WORKAROUND: "Code Assistance|Reparse Project" context menu item in Projects tab
Comment 1 Vladimir Kvashin 2015-04-01 09:01:02 UTC
Confirmed.

According to my experience, it's sufficient to close and reopen the file for errors to disappear, it is not necessary to reparse the project.

Locally, unresolved errors disaappear soon after adding #include directives and saving the file.
Comment 2 Vladimir Kvashin 2015-04-01 09:29:48 UTC
Modified example:

//#include <unistd.h> 
//#include <iostream>
//int aaa;

using namespace std; // underlined

int main(int argc, char** argv) {
    for (int i = 0; i < 30; i++) {
        aaa = 1; // underlined
        cout << "Step " << i << endl; // underlined
        sleep(1); // underlined
    }
    return 0;
}

Then uncomment the 1-st 3 lines and save the file.
Red underline disappears from usage of aaa (aaa = 1), but not from cout, endl and sleep.