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 249533 - Remote code model never gets notification when a header is created or changed externally
Summary: Remote code model never gets notification when a header is created or changed...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-26 12:47 UTC by Vladimir Kvashin
Modified: 2017-05-10 14:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test (4.07 KB, patch)
2015-02-05 21:41 UTC, Vladimir Kvashin
Details | Diff
proposed fix (7.20 KB, patch)
2015-02-05 21:42 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2014-12-26 12:47:55 UTC
CndFileUtils now listen file events in order to drop some its caches via FileUtil.addFileChangeListener. This does not work in (full) remote.
Comment 1 Vladimir Kvashin 2015-02-05 21:41:40 UTC
Created attachment 151844 [details]
test
Comment 2 Vladimir Kvashin 2015-02-05 21:42:34 UTC
Created attachment 151845 [details]
proposed fix
Comment 3 Vladimir Kvashin 2015-02-05 21:54:13 UTC
Test and proposed fix are attached.
However indexing api does not work properly with remote.
So I had to add  System.setProperty("cnd.use.indexing.api", "false") to test
(And IDE behaves properly only with -J-Dcnd.use.indexing.api=false)

I'm going to investigate indexing api better and file a bug against it.

This makes me doubt that it's really a candidate for patch.
Comment 4 Vladimir Kvashin 2015-02-06 18:54:24 UTC
fix (cnd part) pushed into cnd-main:
http://hg.netbeans.org/cnd-main/rev/348fa1aecc02

test:
http://hg.netbeans.org/cnd-main/rev/ec836ed5484f

NetBeans indexing part still is not fixed.
Comment 5 Quality Engineering 2015-02-08 04:09:05 UTC
Integrated into 'main-silver', will be available in build *201502080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/348fa1aecc02
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing  #249533 - Remote code model never gets notification when a header is created
Comment 6 Vladimir Kvashin 2016-01-26 07:14:31 UTC
After issue 251101 has been fixed, this is not the case.

However I'm not closing this issue because this should be solved not via adding file listeners for remote files, but via fixing indexing api. For now indexing api does not react on file events in remote file system.

So I'm going to file an issue against indexing api, and as soon as it is fixed, switch back to indexing api for remote as well and then close this issue.