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.
FileNotFoundException is thrown when you delete a file opened in editor. To reproduce: - run IDE - create a Java file from teplate - delete that file (assuming it is opened in editor) - exception is thrown (see attachment) Tested in build 200401111900, JDK1.4.2_03, WindowsXP. I don't know whether it belongs to openide or editor. Please, re-assign if needed.
Created attachment 12822 [details] stack trace
OK, easily reproduced.
In release 3.5 and before, the IDE used to close the opened file when it was about to be deleted (It closed it even when the file was modified in the editor, which is a bit questionable). Now it doesn't work for some reason.
*** Issue 34143 has been marked as a duplicate of this issue. ***
I've found it. It is the editor's LayerFoldMaintainerListProvider which is responsible for it. It plans an update on any change of the document (including file deletion, it seems) and does openDocument call then (why?) which tries to open already closed document. I'm not sure how this relates to the issue 34143 I've marked as duplicate, as it predates the editor merge, but I'm not able to reproduce 34143 anymore after I hacked the editor to not cause this issue.
*** Issue 38739 has been marked as a duplicate of this issue. ***
*** Issue 38829 has been marked as a duplicate of this issue. ***
fixed in [maintrunk] /cvs/editor/src/org/netbeans/modules/editor/LayerFoldMaintainerListProvider.java,v <-- LayerFoldMaintainerListProvider.java new revision: 1.3; previous revision: 1.2
Verified in build 20040122-0424.