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.
Build: NetBeans IDE Dev (Build 20130826-1eb074e2b697) VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02 OS: Mac OS X User Comments: jbecicka: While testing cordova projects Stacktrace: java.lang.AssertionError: childName: /Users/beci/source/HTML5Application19/www folderName: /Users/beci/source/HTML5Application19 at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:139) at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChildren(ChildrenSupport.java:298) at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.refresh(ChildrenSupport.java:169) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.refresh(FolderObj.java:710) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.refreshImpl(FolderObj.java:472) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.refresh(BaseFileObj.java:834)
Created attachment 139512 [details] stacktrace
Created attachment 139516 [details] stacktrace Ant build script is running. Than it is finished and some dataobjects (which are produced by this build script) are renamed.
see also issue 235312
I'm sorry, I cannot reproduce the bug. Ant task upgrade-to-cordova-project finishes successfully. Don't you have some steps to reproduce? Thank you.
Reproduced using steps in bug 236571 (converting project angularJS-github-contributors to cordova). The problem is that FileObjectFactory.rename should return list of original files (before renaming) in the renamed directory, but if the directory is renamed by some other process concurrently, the list contains also new file names. Then it breaks construction of new paths, because computing of relative paths is corrupted. (In reply to Jan Becicka from bug 236571 comment 4) >Yes it happen quite often. But I don't have idea what cordova might do wrong. Maybe CordovaPerformer performs some I/O operations while the Ant task is running. But it may be correct, I don't know how it should work. Fixed in http://hg.netbeans.org/core-main/rev/81b450a5adc4 Please, check whether the bug is fixed by this change and reopen this issue if not. Thank you.
*** Bug 235312 has been marked as a duplicate of this bug. ***
*** Bug 236745 has been marked as a duplicate of this bug. ***
*** Bug 237263 has been marked as a duplicate of this bug. ***
Have you reproduced this bug since the fix was committed? If so, please reopen this issue. Otherwise, please mark it as verified so that it can be included in 74patch1. Thank you.
I've tried steps from bug 236571 and also created Cordova resources in other HTML5 project, no luck reproducing. Seems like OK to me, verified Product Version: NetBeans IDE Dev (Build 201311130002) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
(In reply to Vladimir Riha from comment #10) > I've tried steps from bug 236571 and also created Cordova resources in other > HTML5 project, no luck reproducing. Seems like OK to me, verified Thank you very much, Vlada. Integrated into release74 branch: http://hg.netbeans.org/releases/rev/1026713ac620 (graft) http://hg.netbeans.org/releases/rev/fb283cf65fea (spec. version and long desc.)
I can create new Cordova project and convert HTML5 to Cordova w/o problems so marking as verified in patch. Product Version: NetBeans IDE 7.4 (Build 201310111528) Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1 Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)