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.
After I start Netbeans, some files in the .git directory gets locked. If I try to delete these files it fails... rm: cannot unlink `src\\dependencies\\some-module/.git/objects/pack/pack-09e580a4d7c62a821e101e78e2ccdaf416cc7d71.pack': Permission denied rm: cannot remove directory `src\\dependencies\\some-module/.git/objects/pack': Directory not empty rm: cannot remove directory `src\\dependencies\\some-module/.git/objects': Directory not empty rm: cannot remove directory `src\\dependencies\\some-module/.git': Directory not empty In my particular situation there is multiple nested git repositories project\.git project\src\dependencies\some-module\.git project\src\dependencies\some-module-other\.git project\src\dependencies\some-module-other\sub-module\.git etc
And if netbeans is not started are you able to delete them? In that case NetBeans is probably running some scanning and reads from the file. BTW, isn't "Permission denied" something different then that the file is opened in another process? Anyway, deleting metadata folders while the IDE is working with them is not a good idea and i don't intend to support that in any case.
Yes, If I close Netbeans, I can delete them. Also Netbeans does not indicate that it is scanning, and even after leaving it for more than 30mins (for a small repo) it is still locked. And no, you get permission denied in the console when using rm, but if I try to delete it in Windows Explore it says cannot delete file because it is in use by another process. My particular case I copied a sub directory in my project to another directory, and then tried to delete the old one.
I reopening this because in the development release you added support for composer in php but because netbeans locks the files when we run a "composer update" command he is unable to delete the folders if necessary.
*** This bug has been marked as a duplicate of bug 218443 ***