Community
Participate
Working Groups
Deleting a synchronized project on an NFS (network file system) with the option "delete project contents on disk" selected fails to delete all files. Errors similar to the following are reported: error 1: Synchronization error for project: nd8: Commit on repo without HEAD currently not supported error 2: An exception has been caught while processing the refactoring 'Delete Resource' Reason: Problems encountered while deleting resources.
I've traced this to a failure to delete a .nfs file in .ptp-sync/objects/pack
This seems to be related to bug 349200
I've placed a workaround on the wiki under the "Known Issues" section. The workaround is to close Eclipse, restart, and then delete. This works because the pack files are not yet open on Eclipse startup.
I committed a small change to PTP_5_0 and HEAD that disables sync'ing for a project just before it is deleted. Otherwise it's possible, although I've never seen it happen, that a malfunctioning delete could trigger a sync that deletes files remotely. (Note that the files could be recovered from the git repo, but it would not be obvious how to do it.)
Fixed in master by closing repository just before project deletion.
Fixed also in ptp_5_0
Refactoring for Juno disabled the fix for this bug. It also occurs on Windows, which locks open files (the pack files used by JGit in this case).
Fixed in master