karma-runner / karma

Spectacular Test Runner for JavaScript
http://karma-runner.github.io
MIT License
11.95k stars 1.71k forks source link

auto-watch mode does not detect renames #960

Closed jrvidal closed 10 years ago

jrvidal commented 10 years ago

Some editors (Sublime 3 in my case) "save" the changes by writing to a temp file and then renaming. This is not detected by the watcher, and in any case chokidar does not emit a rename event. Would it be possible to detect them?

vojtajina commented 10 years ago

Would you be interested in fixing the issue? See https://github.com/paulmillr/chokidar/issues/35

You can try setting usePolling: false (which will use OS events rather than polling), but that has other problems... Probably the best workaround is to set "atomic_save": false (in your Sublime Text settings).

I'm closing this, as it is a known bug in chokidar/nodejs.

vojtajina commented 10 years ago

I mean, this is an issue, but there is already an issue for it - https://github.com/paulmillr/chokidar/issues/35

jrvidal commented 10 years ago

Thanks @vojtajina, I'll take a look

vojtajina commented 10 years ago

@jrvidal I looked into this a bit more, see https://github.com/karma-runner/karma/issues/974