-
-
Notifications
You must be signed in to change notification settings - Fork 61
cmd/govim: refactor file watching #1057
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
Conversation
aeee81b to
1cc6d9a
Compare
f22df9c to
227890f
Compare
myitcv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a closer look later, but just a couple of initial questions.
227890f to
d5366e9
Compare
|
Updated per your comments, PTAL when you have time. |
d5366e9 to
dca5475
Compare
myitcv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small nits, and one more fundamental questions. But overall, I'm very supportive and grateful for you tidying up this code. It's one of those areas with loads of edge cases. So better to get this in sooner rather than later, and then iterate of further fixes guided by tests.
2cfd4eb to
483d1c7
Compare
The previous file watchers was broken in several ways, where the two major was: * A race condition in the non-darwin watcher (#492) * Darwin recursively watched the entire module directory, disregarding sub-modules, testdata directories and files/dirs prefixed by _ or . This caused the test suite to always fail on macOS. This change: * Moves the non-recursive handling into os_other.go * Adds an OS independent function that filter events specifically disallowed by Go (i.e. "testdata", sub-modules and directories prefixed by _ or . * Adds more tests to raise file watching cover Closes #492
483d1c7 to
eca085c
Compare
|
Still LGTM 😄 |
The previous file watchers was broken in several ways, where the two
major was:
sub-modules, testdata directories and directories prefixed by _ or .
This caused the test suite to always fail on macOS.
This change:
disallowed by Go (i.e. "testdata", sub-modules and directories
prefixed by _ or .
Closes #492