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 225424

Summary: [73cat] MacroView - java.io.IOException: No file to delete: main.cpp
Product: cnd Reporter: kosmonaffft
Component: NavigationAssignee: Egor Ushakov <gorrus>
Status: CLOSED FIXED    
Severity: normal CC: Chiana, yuriy_lalym
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198092
Attachments: stacktrace

Description kosmonaffft 2013-01-28 16:50:25 UTC
Build: NetBeans IDE Dev (Build 201301260001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Windows 8

User Comments:
kosmonaFFFt: Close macro expansion view...




Stacktrace: 
java.io.IOException: No file to delete: main.cpp
   at org.openide.filesystems.MemoryFileSystem.delete(MemoryFileSystem.java:261)
   at org.openide.filesystems.AbstractFileObject.handleDelete(AbstractFileObject.java:600)
   at org.openide.filesystems.AbstractFolder.delete(AbstractFolder.java:997)
   at org.openide.filesystems.FileObject.delete(FileObject.java:401)
   at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionViewUtils.closeMemoryBasedDocument(MacroExpansionViewUtils.java:336)
   at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionTopComponent.componentClosed(MacroExpansionTopComponent.java:230)
Comment 1 kosmonaffft 2013-01-28 16:50:29 UTC
Created attachment 130737 [details]
stacktrace
Comment 2 Jaroslav Tulach 2013-01-29 10:10:01 UTC
CND should display nicer message, should it not?
Comment 3 kosmonaffft 2013-01-29 16:28:27 UTC
If it is question for me, i do not know what about you asking...

(In reply to comment #2)
> CND should display nicer message, should it not?
Comment 4 Vladimir Voskresensky 2013-01-29 16:48:35 UTC
(In reply to comment #3)
> If it is question for me, i do not know what about you asking...
No, it was question to developers from another developer, don't worry and thanks for reporting the bug!
Comment 5 Egor Ushakov 2013-05-16 09:26:49 UTC
I do not see how this could happen, probably this was caused by fluctuations in dev builds user dir structure. If ever reproduced again please reopen with the new stack or steps to reproduce, thanks!
Comment 6 Egor Ushakov 2013-05-16 13:38:18 UTC
*** Bug 227243 has been marked as a duplicate of this bug. ***
Comment 7 Egor Ushakov 2013-05-16 13:39:20 UTC
I have an idea, after looking at bug 227243 it looks like file may be deleted from the other thread, so it looks like race condition, investigating
Comment 8 Egor Ushakov 2013-05-16 13:40:18 UTC
*** Bug 227833 has been marked as a duplicate of this bug. ***
Comment 9 Egor Ushakov 2013-05-16 13:40:47 UTC
will fix all related exceptions here
Comment 10 Egor Ushakov 2013-05-16 15:53:53 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/e5213781ba79
Comment 11 Quality Engineering 2013-05-17 09:54:15 UTC
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e5213781ba79
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #225424 - [73cat] MacroView - java.io.IOException: No file to delete: main.cpp
Comment 12 Vladimir Voskresensky 2013-05-21 15:24:21 UTC
*** Bug 207318 has been marked as a duplicate of this bug. ***