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.
Summary: | Deletion of files on SFS not reliably detected if changes come from disk | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Filesystems | Assignee: | Jiri Skrivanek <jskrivanek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | wadechandler |
Priority: | P4 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 20323 |
Description
Jesse Glick
2005-05-06 20:55:51 UTC
Yes, there is invoked refresh on MasterFS after invoking ant script(BridgeImpl) but there is no refresh on SFS. As soon as you invoke it explicitly then everything is OK. Either SFS can listen on MasterFS, filter events and refresh itself eventually or BridgeImpl and other pieces of code must call refresh not only on MasterFS but also on SFS. Should probably be handled by a general refresh API. I thought there was an RFE filed for a single method call that Ant and other modules could call to trigger a general system refresh, but now I cannot find it. Reassigning to new module owner jskrivanek. Is this issue still valid? The original use case is obsolete now. I don't believe the use case is obsolete. Nothing significant has changed since this was filed AFAIK. It is not a major use case, of course, but there are various miscellaneous situations encountered in module development where you would run into this bug. I could rephrase the request as follows: FileUtil.refreshAll() ought to refresh the SFS in case there have been changes on disk in the $userdir/config/ layer. Fixed. SFS refresh in FileUtil.refreshAll(). http://hg.netbeans.org/core-main/rev/5f5a2aa54dd5 I think I recall that Wade was actually encountering this recently, trying to set keymaps in the userdir and expecting them to be honored immediately in the running app. Integrated into 'main-golden', will be available in build *200811200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5f5a2aa54dd5 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #58663 - refresh default filesystem to reflect possible changes on disk in the $userdir/config. |