New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kqueue FileSystemWatcher doesn't handle subdirectories #1093
Conversation
Couple of comments:
|
Thanks @migueldeicaza. I have one other question: I'm calling |
Leave it here, for two reasons: (a) This is BSD specific, so it does not matter. |
Any updates regarding adding test (if they only work on OSX for now, make them only work there) and the white space changes? |
Cody, any chance you can contribute the test suites as a Unit test? |
@bratsche , the code doesn't seem to work in subdirectories that already exist (e.g. adding files to them does not trigger events). New subdirectories are correctly listened to. If you don't have time to look at it, give me a couple of hints and I'll try to fix it :) |
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message. |
is now a separate thread and a separate kqueue for each FileSystemWatcher object.
@alexischr I finally got the creation/deletion tests working with that last commit. The main issue for the create test seemed to be that as soon as I created and setup the FSW I would create the file almost immediately and in most cases that was too soon. The delete test has the same issue and solution, but also needed to sleep between creating the file and setting up the FSW. It sucks to have these sleeps in there slowing down our test suite, but I can't find a better solution. If you can, have at it. :) |
@alexischr I added a test for changing files now. It works, but it's using |
…f there are errors they don't break the next run of the test suite.
…we're testing what this branch was originally intended to fix.
This is on master now. |
…-unity-vprintf-redirect Add ability to redirect mono stdout logging to unity's vprintf function.
Reimplemented much of the kqueue-based file watcher so that watching subdirectories works.
https://bugzilla.xamarin.com/show_bug.cgi?id=16259