-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Watching is not working properly on linux #1113
Comments
Solve bug in watch service by using pooling Closes karma-runner#1113
@ertwroc This is hitting me as well. I know this has worked correctly in the past. |
I just created a test project to test this bug and I have not found any release in the 0.12.x series that works. I also tried the latest 0.12.16 release with some older versions of chokidar (0.7.1, 0.8.0) and that doesn't work either. I am going to back off and use your workaround from #1114 to just use polling. This works but does seem less than optimal. @vojtajina Looking through the commit history it looks like you were using Linux and non-polling detection with no issues late last year. Any hints at what we could try next? |
The problem is still presented in 0.12.19. |
I am having a related problem with chokidar 0.8.2 in 0.12.19. When using watchify, the karma server appears to serve up and cache the resultant .js file before it is fully written to disk (?). I keep getting errors like these:
If I navigate to the debug screen and view the source of app.js the contents are abruptly cut off at a seemingly random location. I can split this one off, but it seems related in that switching to polling via #1114 works just fine. |
Same problem here :-(
The fix in #1114 works for me. |
This is a sad story. Somebody should invent OS where these events work. Btw. you can do it yourself in the config: |
If anyone runs into this in the future, what worked for me was adding the following line to karma.conf.js: transports: ['polling'] |
Another suggestion for those reading this in the future, what worked for me was increasing the amount of inotify watchers. Check out this Increasing the amount of inotify watchers to learn about the details, but here's a snippet if you want to try it out:
Hope this helps. |
Watching functionality is not working properly on linux. After initial execution of test Karma is only watching one change in file and stop watching it.
The text was updated successfully, but these errors were encountered: