core.useBuiltinFSMonitor and file locking #3274
Unanswered
johnburnett
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I bet this is not just any old directory that is getting deleted, but a clone of a Git repository. The problem with that is that the @jeffhostetler do you think we can |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - I was just trying the new core.useBuiltinFSMonitor feature and ran into issues with a product failing due to file locks. Specifically, we have a repo that's storing a Unity (https://unity.com/) project, and one of the things Unity does is store/update packages within a subdir of the project using its own package manager. This subdir is .gitignore'd for us. However, it appears that when Unity updates its packages it's attempting to delete some working files/dirs and was unable to due to directories being locked (I'm including the error text below for future google searches).
I'm curious if this is expected behavior, or is the file watching intended to be a bit more unobtrusive (e.g. opening with FILE_SHARE_DELETE, not setting cwd into subdirs of the repo, and anything else that might avoid locking files/dirs on Windows). Or is this an inherent limitation of how it works?
John
Beta Was this translation helpful? Give feedback.
All reactions