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.
The reason for this issue is to have only one issue to track many similar problems and issues with files that are not copied to: - other local directory ("Copy Sources") - other remote directory ("Upload On Save")
Should be fixed hopefully (please notice that this simply _cannot_ work in case of external changes). A few comments: - if some use case does not work for you, try to invoke Source > Scan for external changes; - if it still does not work for you, start NetBeans with "-J-Dorg.netbeans.modules.php.project.util.level=FINE" (or FINEST for even more log messages) and reproduce the steps, create a new issue and attach (do not copy & paste, please) your IDE log (can be found in <userdir>/var/log/messages.log or View > IDE Log). Please, be sure that you have opened only one project, not more. http://hg.netbeans.org/web-main/rev/92156acd0b54 http://hg.netbeans.org/web-main/rev/d24953097e71 http://hg.netbeans.org/web-main/rev/291e240563dc http://hg.netbeans.org/web-main/rev/1f72d33ec1a9 http://hg.netbeans.org/web-main/rev/331efcd9b409 http://hg.netbeans.org/web-main/rev/6b8885a0f8c0 http://hg.netbeans.org/web-main/rev/70e72c3e6d1c http://hg.netbeans.org/web-main/rev/65b0d60b40c2 http://hg.netbeans.org/web-main/rev/212ce56f8235
*** Issue 164795 has been marked as a duplicate of this issue. ***
*** Issue 169139 has been marked as a duplicate of this issue. ***
*** Issue 170726 has been marked as a duplicate of this issue. ***
*** Issue 166672 has been marked as a duplicate of this issue. ***
*** Issue 171336 has been marked as a duplicate of this issue. ***
*** Issue 166855 has been marked as a duplicate of this issue. ***
*** Issue 160301 has been marked as a duplicate of this issue. ***
Please notice that I filed issue #172182 against subversion (currently, if one invokes Subversion > Update in the IDE, files are usually _not_ copied).
BTW I filed issue #172254 as a reminder for issue in VCS.
I'll try to test this later tonight or tomorrow at the latest to see if I still have the problem. (I originally submitted #171336)
Please, if it still doesn't work for you, do not forget to describe steps and attach the IDE log, as mentioned in the desciption #2. Thanks.
One more changeset. http://hg.netbeans.org/web-main/rev/7cd4089d57c6
One note - issue #172182 should be fixed now.
Hi... just reporting back like I promised. I tried this with DEV build 200909151512. I already had a project that had been partially copied from my NB project dir to the local apache server root. This build did not detect the missing files. It therefore did not copy over those missing files. Expected behavior or not? I then deleted the project's "copy-to" directory/files under the Apache root and restarted the NB IDE. After this, the entire project DID copy correctly to the Apache root. My conclusion therefore is: I can no longer replicate the "copy support failed" problem on my system. However, since copy support HAD worked in 6.5, 6.7 and 6.8 earlier without problems for a time... I'm not entirely confident that it might not crop up again. More testing needed I guess, but for now it seems good.
Whoops... I spoke too soon. Copy support did fail again. As requested in comment 2, I've opened a new issue #172589 for this. I attached the IDE log there.
> I already had a project that had been partially copied from my NB project dir to the local apache server root. This > build did not detect the missing files. It therefore did not copy over those missing files. Expected behavior or not? Expected, NetBeans copies files only if it's running. Closing this issue as we have open issue #172589. Thanks for reporting.
Integrated into 'main-golden', will be available in build *200909190201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7cd4089d57c6 User: Tomas Mysik <tmysik@netbeans.org> Log: #172139 cont'd: Copy support does not work FS listener added only if copying enabled. Property changes are processed only once.
Product Version: NetBeans IDE Dev (Build 2009-09-22_12-05-05 ) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 1. check out a project and open in netbeans 2. set configuration to copy to another source 3. commit a folder from another repo 4. update using netbeans 5. update - OK, folder created in project folder 6. check the folder where it should be copied; folder created but empty => differ from project folder 7. run Source->Check for external changes 8. no change => "another folder" still differs from project folder expected result: all folders and files should be copied Notice: I didn't reproduce a problem when I initially checked out my repo -> all folders and files were copied Upload on save is turned off
Created attachment 88104 [details] messages log
Hi, copy support doesn't work for me. I'm using dev build netbeans-trunk-nightly-200909201401-php.zip. My target directory is under svn and on Samba volume. Even if I delete target dir and so .svn folder in it, I get error on startup of IDE "Copy support failed...". I've also specified in versioning.properties -> unversionedFolders=Y:\\targetdir, so that subversion module does not consider targetdir as versioned. Relevant part of log: FINE [org.netbeans.modules.php.project.util.CopySupport]: Copy support INIT for project barRequester FINE [org.netbeans.modules.php.project.util.LocalOperationFactory]: LOCAL copying enabled for project barRequester: true FINE [org.netbeans.modules.php.project.util.LocalOperationFactory]: Creating INIT handler for C:\NB\trunk\tester\vega (project barRequester) FINE [org.netbeans.modules.php.project.util.RemoteOperationFactory]: No INIT handler needed for project barRequester FINE [org.netbeans.modules.php.project.util.CopySupport]: Copy support REGISTERING FS listener for project barRequester FINE [org.netbeans.modules.php.project.util.CopySupport]: -> RECURSIVE listener registered for project barRequester FINE [org.netbeans.modules.php.project.util.CopySupport]: Processing LOCAL copying handler for project barRequester FINE [org.netbeans.modules.php.project.util.LocalOperationFactory]: Running INIT handler for C:\NB\trunk\tester\vega (project barRequester) FINE [org.netbeans.modules.php.project.util.LocalOperationFactory]: Getting target for C:\NB\trunk\tester\vega (project barRequester, deep check: true) INFO [org.netbeans.modules.php.project.util.CopySupport]: LOCAL copying fail: java.lang.NullPointerException at org.netbeans.modules.masterfs.GlobalVisibilityQueryImpl.isVisible(GlobalVisibilityQueryImpl.java:90) at org.netbeans.api.queries.VisibilityQuery.isVisible(VisibilityQuery.java:117) at org.netbeans.modules.php.project.PhpProject.isVisible(PhpProject.java:388) at org.netbeans.modules.php.project.PhpProject.isVisible(PhpProject.java:392) at org.netbeans.modules.php.project.PhpVisibilityQuery$2.isVisible(PhpVisibilityQuery.java:72) at org.netbeans.modules.php.project.util.PhpProjectUtils.isVisible(PhpProjectUtils.java:229) at org.netbeans.modules.php.project.util.FileOperationFactory.isSourceFileValid(FileOperationFactory.java:134) at org.netbeans.modules.php.project.util.LocalOperationFactory.getTarget(LocalOperationFactory.java:266) at org.netbeans.modules.php.project.util.LocalOperationFactory.getTarget(LocalOperationFactory.java:250) at org.netbeans.modules.php.project.util.LocalOperationFactory.access$100(LocalOperationFactory.java:61) at org.netbeans.modules.php.project.util.LocalOperationFactory$1.call(LocalOperationFactory.java:139) at org.netbeans.modules.php.project.util.LocalOperationFactory$1.call(LocalOperationFactory.java:136) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.callLocal(CopySupport.java:392) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:367) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:357) [catch] at org.netbeans.modules.php.project.util.CopySupport$2.run(CopySupport.java:123) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
adding to previous comment that files changed and saved after update in "corrupted folder" were copied successfully.
to nbphpuser: doesn't work at all or there is something missing in the copy? thanks
it does not work at all.
beta stopper => P1
Product Version: NetBeans IDE Dev (Build 2009-09-22_12-05-05 ) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 I tried again with a folder that is not under subversion. 1. create a new project with existing sources 2. set configuration to copy to another source 3. externally add a folder note: here i don't expect copy support working because this is external change 4. run Source->Check for external changes 5. update - OK, folder created in project folder 6. check the folder where it should be copied; folder created but empty => differ from project folder expected result: files should be there 7. change a file in "corrupted folder", not a file in subfolder of "corrupted folder" result: OK, file is in "corrupted folder" now 8. change a file in subfolder result: file is not copied messages log attached
Created attachment 88142 [details] messages-log-no-svn
*** Issue 172726 has been marked as a duplicate of this issue. ***
NPE obviously caused because from FileChangeListener we take FileObject and its conversion to file returns null, which is later thrown from GlobalVisibilityQuery => will be fixed in php I'll try reproduce Filip's steps to reproduce
External change with not versioned files (see comment from Sep 22 16:44:38 +0000 2009) behaves as Filip describes - but because its external change I don't see justification for such high priority. No regression - the same behavior as we had in 6.7, 6.5. Reason for current behavior is relying on FS events which are delivered in different way for both cases (meaning external and internal). For internal changes we get one event for every copied file, for external changes we get just one for the top most folder. I'm going to test the scenario with subversion also
I agree with Radek, that this issue is not of such high priority for external changes ... the one that is more important is the svn scenario that behaves exactly as the one without svn.
for people who don't use svn, there is a workaround how to avoid external changes on file system. If you need to copy files into your project from another location do it using netbeans "Favorites" (ctrl+3 or Window->Favorites). You can copy files and/or directories in this view. All files will be "catched" this way and you won't have missing files in your project folder.
scenario with subversion: svn impl. just makes external changes then is called refreshFor on FS and we get just one event about created top folder again
So, 4 problems I see here: 1/ NPE from VisibilityQuery 2/ #172589 .svn/entries 3/ create folder (with files and subfolders) externally 4/ update svn versioned project (after update added folder with subfolders and files) Reason: 1/ FileUtil.toFile returns null and not additional check in php code 2/ probably: old impl. of copysupport relied on VisibilityQuery. Impl. of this query claims about files that are visible even if for its parent claim that isn't visible 3/ for external changes we get just one FS event notifying about created top folder (not about subfolders) 4/ actually the same as 3/ Won't be probably completely fixed for beta. I will hotfix 1/ NPE. For 2/ we can just recommend delete the target of the copy support (or at least the svn metadata) and sshould not happen again. 3/ and 4/ existed even in 6.5,6.7 - so no regression but might be fixed for FCS - P2 for me
Hotfix for NPE (1/) http://hg.netbeans.org/web-main/rev/e7efad581b78 Reassigning back to tmysik
*** Issue 172589 has been marked as a duplicate of this issue. ***
3/ and 4/ fix - copying folder recursively http://hg.netbeans.org/web-main/rev/30cf97ff17a0 Filip, please test Consider this issue to be fixed
verified, works as expected; one enhancement will be submitted for ignored files;
Integrated into 'main-golden', will be available in build *200909251401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/30cf97ff17a0 User: Radek Matous <rmatous@netbeans.org> Log: #172139 copy support - external changes fire just FS event for top most folder
I'm using latest dev build netbeans-trunk-nightly-200909270201-php and copy support still failing as before
@nbphpuser: does it mean you are still getting the exception? Can you report it, please? Thanks
yes, if I specify target directory then: SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.php.project.util.CopySupport$1 java.lang.IllegalArgumentException: Was not listening to C:\NB\trunk\tester\project at org.openide.filesystems.FileUtil.removeFileChangeListenerImpl(FileUtil.java:293) at org.openide.filesystems.FileUtil.removeRecursiveListener(FileUtil.java:348) at org.netbeans.modules.php.project.util.CopySupport.unregisterFileChangeListener(CopySupport.java:206) at org.netbeans.modules.php.project.util.CopySupport.init(CopySupport.java:167) at org.netbeans.modules.php.project.util.CopySupport$1.run(CopySupport.java:108) Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:655) at org.netbeans.modules.php.project.util.CopySupport.propertyChange(CopySupport.java:278) at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:188) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at org.netbeans.spi.project.support.ant.SequentialPropertyEvaluator.stateChanged(SequentialPropertyEvaluator.java:205) at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:321) at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:130) at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:116) at org.netbeans.spi.project.support.ant.ProjectProperties$PP$2.run(ProjectProperties.java:344) at org.netbeans.spi.project.support.ant.ProjectProperties$PP$2.run(ProjectProperties.java:342) at org.openide.util.Mutex.readAccess(Mutex.java:285) at org.netbeans.spi.project.support.ant.ProjectProperties$PP.fireChange(ProjectProperties.java:350) at org.netbeans.spi.project.support.ant.ProjectProperties$PP.put(ProjectProperties.java:219) at org.netbeans.spi.project.support.ant.ProjectProperties.putProperties(ProjectProperties.java:128) at org.netbeans.spi.project.support.ant.AntProjectHelper$6.run(AntProjectHelper.java:729) at org.netbeans.spi.project.support.ant.AntProjectHelper$6.run(AntProjectHelper.java:727) at org.openide.util.Mutex.writeAccess(Mutex.java:394) at org.netbeans.spi.project.support.ant.AntProjectHelper.putProperties(AntProjectHelper.java:727) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties.saveProperties(PhpProjectProperties.java:494) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties$1.run(PhpProjectProperties.java:404) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties$1.run(PhpProjectProperties.java:402) at org.openide.util.Mutex.writeAccess(Mutex.java:433) at org.netbeans.modules.php.project.ui.customizer.PhpProjectProperties.save(PhpProjectProperties.java:402) at org.netbeans.modules.php.project.ui.customizer.CustomizerProviderImpl$StoreListener.actionPerformed(CustomizerProviderImpl. java:119) at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1.run(CustomizerDialog.java:277) at org.openide.util.Mutex.writeAccess(Mutex.java:394) [catch] at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2.run(CustomizerDialog.java:273) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084) INFO [org.netbeans.modules.php.project.util.CopySupport]: LOCAL copying fail: java.lang.NullPointerException at org.netbeans.modules.masterfs.GlobalVisibilityQueryImpl.isVisible(GlobalVisibilityQueryImpl.java:90) at org.netbeans.api.queries.VisibilityQuery.isVisible(VisibilityQuery.java:117) at org.netbeans.modules.php.project.PhpProject.isVisible(PhpProject.java:388) at org.netbeans.modules.php.project.PhpProject.isVisible(PhpProject.java:400) at org.netbeans.modules.php.project.PhpVisibilityQuery$2.isVisible(PhpVisibilityQuery.java:72) at org.netbeans.modules.php.project.util.PhpProjectUtils.isVisible(PhpProjectUtils.java:229) at org.netbeans.modules.php.project.util.FileOperationFactory.isSourceFileValid(FileOperationFactory.java:134) at org.netbeans.modules.php.project.util.LocalOperationFactory.getTarget(LocalOperationFactory.java:272) at org.netbeans.modules.php.project.util.LocalOperationFactory.getTarget(LocalOperationFactory.java:256) at org.netbeans.modules.php.project.util.LocalOperationFactory.access$100(LocalOperationFactory.java:61) at org.netbeans.modules.php.project.util.LocalOperationFactory$1.call(LocalOperationFactory.java:144) at org.netbeans.modules.php.project.util.LocalOperationFactory$1.call(LocalOperationFactory.java:141) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.callLocal(CopySupport.java:392) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:367) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:357) [catch] at org.netbeans.modules.php.project.util.CopySupport$2.run(CopySupport.java:123) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084) INFO [org.netbeans.modules.php.project.util.CopySupport]: LOCAL copying fail: java.lang.NullPointerException at org.netbeans.modules.masterfs.GlobalVisibilityQueryImpl.isVisible(GlobalVisibilityQueryImpl.java:90) at org.netbeans.api.queries.VisibilityQuery.isVisible(VisibilityQuery.java:117) at org.netbeans.modules.php.project.PhpProject.isVisible(PhpProject.java:388) at org.netbeans.modules.php.project.PhpProject.isVisible(PhpProject.java:400) at org.netbeans.modules.php.project.PhpVisibilityQuery$2.isVisible(PhpVisibilityQuery.java:72) at org.netbeans.modules.php.project.util.PhpProjectUtils.isVisible(PhpProjectUtils.java:229) at org.netbeans.modules.php.project.util.FileOperationFactory.isSourceFileValid(FileOperationFactory.java:134) at org.netbeans.modules.php.project.util.LocalOperationFactory.getTarget(LocalOperationFactory.java:272) at org.netbeans.modules.php.project.util.LocalOperationFactory.getTarget(LocalOperationFactory.java:256) at org.netbeans.modules.php.project.util.LocalOperationFactory.access$100(LocalOperationFactory.java:61) at org.netbeans.modules.php.project.util.LocalOperationFactory$1.call(LocalOperationFactory.java:144) at org.netbeans.modules.php.project.util.LocalOperationFactory$1.call(LocalOperationFactory.java:141) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.callLocal(CopySupport.java:392) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:367) at org.netbeans.modules.php.project.util.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:357) [catch] at org.netbeans.modules.php.project.util.CopySupport$2.run(CopySupport.java:123) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
@nbphpuser: 173407 has been submitted since your report is another issue as the originally reported one