Open GoogleCodeExporter opened 9 years ago
It will also be nice to know limit.
Original comment by techtonik@gmail.com
on 20 Jun 2013 at 6:46
In inotify_file_watcher.py:104 it looks like there's a sweet spot to set up a
regex filter based on the -skip_files directive. I do not know how to access
that list from inotify_file_watcher, though.
If the app.yaml file isn't available/loaded yet (ostensibly because it also
needs to be watched for changes) then at least a new command line parameter
would be very helpful.
I know of two workarounds, both have helped me plenty:
- Patch the _IGNORED_DIRS list at watcher_common.py:21 and add extra subdirs to
the list. It's limited to an exact directory name match, and the match function
doesn't receive the full path. The default is ['.git', '.hg', '.svn']. Helpful,
but we can do better. (Personally, I add 'node_modules' to the list. ;))
- Allow inotify to watch more files at once. This should work on most Linux
systems:
echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo
sysctl -p
Original comment by jdiaz5...@gmail.com
on 26 Oct 2013 at 3:47
I have no detailed knowledge about this topic but stumbled upon this
discussion. Please check if the implementation doesn't make the same mistake as
described here
https://code.google.com/p/dart/issues/detail?id=14941#c8
Original comment by gzoe...@gmail.com
on 3 Jul 2014 at 11:02
Original issue reported on code.google.com by
techtonik@gmail.com
on 20 Jun 2013 at 6:45