Repository navigation
Bug fixes to OSX FSW - #2140
Bug fixes to OSX FSW#2140
Conversation
There was a problem hiding this comment.
Is there nothing we can assert here?
There was a problem hiding this comment.
The previous assumptions about this assert were incorrect in that we can have a rename without a pair when an item is moved out / in from / to the watcher directory. The current index may be the last item in the array of events, meaning the only thing we could assert is that the index is within the bounds of the array, but we would have other (more fundamental issues) if that ever occurred. I should remove the line though...forgot to do that
|
I would rebase and squash 9af76dd into the previous commit for a nicer history. |
There was a problem hiding this comment.
Can you help me understand what was going on here before? It seems like now we just disable coalescing from the OS, was the coalescing causing problems?
There was a problem hiding this comment.
This value didn't seem to cause a difference in coalescing...the OS still coalesced events as expected. I'm not 100% sure what this value is supposed to affect since changing it to 0 made no noticeable difference; due to that, making it 0 is much more clear that it isn't some magic value
|
@ellismg I'll squash before I put out my final iteration |
There was a problem hiding this comment.
Your most recent commit updated the comment to include moving out of the watched folder, but it didn't update the implementation accordingly... wouldn't moving out be treated as deletion, not creation?
|
@stephentoub @ellismg updated with squashed version and all tests passing |
There was a problem hiding this comment.
@stephentoub Now that I think about it, should this be Path.DirectorySeparatorChar?
There was a problem hiding this comment.
Ideally, but it's not a big deal in this case, since the file is already specific to OS X.
|
@dotnet-bot test this please |
There was a problem hiding this comment.
Why this change? Just curious. I had to count the number of Fs to verify it was correct.
There was a problem hiding this comment.
This is just making it exactly what it is in the header file and not having to look up the specific value for MaxValue....it just made it more explicit
|
@stephentoub @ellismg latest version passing with all comments fixed |
|
LGTM |
|
Thanks all! Merging now |
Fixing bugs in the OS X FileSystemWatcher so all tests pass
Fixing bugs in the OSX FileSystemWatcher to make almost all tests pass (minus 3)
@stephentoub @ellismg