Skip to content
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

Frequent EBUSY error on changed file #1213

Open
madbarron opened this issue Oct 14, 2014 · 4 comments
Open

Frequent EBUSY error on changed file #1213

madbarron opened this issue Oct 14, 2014 · 4 comments

Comments

@madbarron
Copy link

When I have the karma server running and I save a tracked file, it often crashes karma with:

ERROR [karma]: { [Error: EBUSY, open 'c:\myfile.js']
  errno: 10,
  code: 'EBUSY',
  path: 'c:\\myfile.js' }
Error: EBUSY, open 'c:\myfile.js'

I have set autoWatchBatchDelay: 1000 in my karma.conf.js, but this error occurs before the delay takes place.

I am in Windows 7, using Sublime Text 3, karma 0.12.24, node 0.10.32

@AbraaoAlves
Copy link

+1
I am in Windows 8.1, using Sublime Text 3, karma 0.12.31, node 0.10.33

@Narretz
Copy link

Narretz commented Jan 19, 2015

I have the same issue. Maybe it was the last Sublime update?

@backmask
Copy link

Currently, files are loaded as soon as a modification is detected. If a file handle is not released yet, karma crashes (or tests are aborted with 095cfb4).

I believe the best fix would be to load modified files after the autoWatchBatchDelay It would also have the nice benefit to reload a file once if it is saved multiple times quickly.

@madbarron
Copy link
Author

Yeah, I expected that karma wouldn't attempt to touch the files until autoWatchBatchDelay. Your PR looks like a reasonable workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants