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 - Red underline (unresolved) does not disappear in Full Remote mode
Summary: Red underline (unresolved) does not disappear in Full Remote mode
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 14:44 UTC by soldatov
Modified: 2017-05-10 14:57 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 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.