watchr icon indicating copy to clipboard operation
watchr copied to clipboard

continuously running w/ docs.watchr variant?

Open pjfitzgibbons opened this issue 14 years ago • 2 comments

Hello,

I have a docs.watchr running to YARD my docs. http://gist.github.com/584315

After the first file detection, watchr then runs continuously (every 1-2 sec).

Thoughts?

Thanks, Peter Fitzgibbons

pjfitzgibbons avatar Sep 17 '10 14:09 pjfitzgibbons

I've been able to reproduce on OSX with the portable handler. Looks like as it detects the change, the .rb files get touched, which in turn triggers another event, .....

Obviously that's broken. Thanks for bug report. Meanwhile, you should install the rev or fsevent handler, it should fix it (the README gives you more details on this). It'll also increase watchr's responsiveness, so that's the recommended usage.

mynyml avatar Sep 19 '10 20:09 mynyml

Excellent! I'd say it would be worth a "warning" to the watchr output if you detect this scenario. The degradation is a worth-while compromise to the newly-minted users who need to figure out which enivornment they're installing (Linux/BSD = rev, OSX = ruby-fsevent)

Thanks for the hint.

pjfitzgibbons avatar Sep 20 '10 14:09 pjfitzgibbons