Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A67DF11571 for ; Tue, 23 Sep 2014 15:59:35 +0000 (UTC) Received: (qmail 39628 invoked by uid 500); 23 Sep 2014 15:59:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 39544 invoked by uid 500); 23 Sep 2014 15:59:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 39531 invoked by uid 99); 23 Sep 2014 15:59:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 15:59:34 +0000 Date: Tue, 23 Sep 2014 15:59:34 +0000 (UTC) From: "Sam Halliday (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (VFS-536) DefaultFileMonitor will ignore files forever if directory is deleted and recreated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sam Halliday created VFS-536: -------------------------------- Summary: DefaultFileMonitor will ignore files forever if directory is deleted and recreated Key: VFS-536 URL: https://issues.apache.org/jira/browse/VFS-536 Project: Commons VFS Issue Type: Bug Affects Versions: 2.0 Reporter: Sam Halliday We're using VFS2 in our emacs scala ide https://github.com/ensime/ensime-server Unfortunately, I've just discovered that if we watch a directory, e.g. here we are watching the target directory for class files that are created by a compiler https://github.com/ensime/ensime-server/blob/master/src/main/scala/org/ensime/indexer/FileWatchers.scala#L28 then if the directory is deleted and recreated (as is done by the SBT scala build tool!) then monitoring events are ignored forever! I can confirm that file watching works fine if individual files are added or removed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)