-
Notifications
You must be signed in to change notification settings - Fork 123
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
ibazel watch stops working after 2 refreshes #117
Comments
Is it consistent on every other save it stops working? Is it consistent across editors? The other report says OS X (which I don't have one of unfortunately), does it happen on your linux workstations the same? |
I'm able to repro it consistently across any shell/editor on MacOS. All of the repros of this that I'm aware were on MacOS. |
I have a work lap'n'top that is a mac. I'll test it out on there when I get back to the states. Sorry for slow response on this one -- it'll take me a couple of days to get a test rig set up. |
No problem, we're in this for the long term. +1 that I haven't observed it on Linux. Sorry this project is so platform-finicky |
Has anyone had a chance to look into this further? I'm running into the same issue, but if anyone has made any progress I'd appreciate not duplicating that work. |
We're running into this on Ubuntu 16.04. We're going to dive in and attempt to fix it in the next few weeks. Anyone have any additional info on this? We think it might be related to the open files/inotify watches errors issues in this project, but that's a guess right now. |
We have dived into this issue for pass few days on Ubuntu 16.04. It turned out we found a bug on our custom version of bazel-watcher, it should be unrelated to the issue here. We are not able to reproduce the problem on Linux, it seems to happen only on macOS. @clintharrison What OS are you running? We appreciate if anyone can provide more information. |
I'm also on macOS, 10.12.6 currently. I unfortunately haven't had time to look into this, so I don't have any more details to provide :\ |
This may affect adoption especially for web projects, where a livereload workflow is expected. Is there a working commit to use before this issue was introduced? |
@joprice which OS are you using? We spent quite a bit of time trying to reproduce this on Ubuntu. We found a bug in code we wrote that isn't on master, but otherwise couldn't reproduce this issue. |
I'm on an osx 10.12.6 using bazel 0.15.2 |
Not sure if it's related, but I added a listener for errors on
go func() {
for err := range handler.SourceFileWatcher.Errors {
fmt.Fprintf(os.Stderr, "Error %s\n", err)
}
}() |
I just noticed that changes to build files continue to trigger. Perhaps it has to do with how many files are being watched? I ran |
In my testing on a single-file |
Setting nowritebackup works. I'm still confused why the BUILD file continues to work under the same conditions though. |
@joprice, can you tell me what version of iBazel you're using? That sounds like a very old bug (#10) that we fixed. Vim writes out a temporary file and If you wanted to add a test to demonstrate this, it would be pretty easy to do in https://github.com/bazelbuild/bazel-watcher/blob/master/e2e/simple/simple_test.go |
@achew22 I have this happening on master. Since macOS uses the |
@clintharrison, we are now in a much better world CI wise where we actually have a mac machine we can run tests on through BuildKite/Travis. Is that something you would be able to reproduce in a test case? |
I’m using a locally built version off master. |
I think this is fixed now and is released to NPM. homebrew is in review. |
I still have this issue 😮 (Ubuntu 19.10) |
@flolu can you construct an example repo/testcase that this fails consistently in? |
@achew22 Unfortunately not until now. For the moment it seems to occur randomly. But it seems to occur often when compiler has thrown errors and I fixed them. |
Originally reported at:
angular/angular#21770
Has been observed by several engineers on the Angular team.
The text was updated successfully, but these errors were encountered: