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 251994 - code model of mixed project is not recovered on host connect
Summary: code model of mixed project is not recovered on host connect
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 15:24 UTC by Vladimir Voskresensky
Modified: 2015-08-20 01:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Possible fix (29.14 KB, patch)
2015-08-14 21:11 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2015-04-22 15:24:50 UTC
I have two opened projects: local Quote and RemoteProfilingDemo in mixed mode.
Closed IDE
I have cleaned cachedir
Restarted IDE
Quote is Ok. ProfilingDemo has broken system includes in all files
Connect hosts makes it online, log says that project's file was reparsed, but all includes stay broken.
Modifying file, saving file doesn't help to fix broken includes. Reparse from context menu doesn't help as well
Comment 1 Vladimir Voskresensky 2015-04-22 16:26:30 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/6bb2a12a2ee9

There is something strange with NativeFileSearch, but it is the story for another issue...
Comment 2 Vladimir Voskresensky 2015-04-22 18:07:38 UTC
The problem was solved only for one reopened mixed remote project. If two are reopened then one even not reparsed.
Comment 3 Vladimir Voskresensky 2015-04-22 18:09:36 UTC
The problem is with notifications about requested paths to non-connected remote FS. But file existence is cached on the level of CndFileUtils, so file is queried only once from FS and when the second project was parsed it hasn't got any nofications in ProjectBase.problemOccurred
Comment 4 Quality Engineering 2015-04-23 02:11:01 UTC
Integrated into 'main-silver', will be available in build *201504230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6bb2a12a2ee9
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #251994 - code model of mixed project is not recovered on host connect
- drop system caches, because after host reconnect information about existence of include folders have to be reinitialized to be up-to-date
Comment 5 Vladimir Kvashin 2015-08-14 21:11:56 UTC
Created attachment 155359 [details]
Possible fix
Comment 6 Vladimir Kvashin 2015-08-18 14:15:52 UTC
http://hg.netbeans.org/cnd-main/rev/a6d8535a136c
Comment 7 Vladimir Kvashin 2015-08-18 21:24:37 UTC
additional fix
http://hg.netbeans.org/cnd-main/rev/d8678fb5868d
Comment 8 Quality Engineering 2015-08-20 01:27:37 UTC
Integrated into 'main-silver', will be available in build *201508200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a6d8535a136c
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #251994 - code model of mixed project is not recovered on host connect