wrhunt0 / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

inotify_file_watcher.py:115] There are too many directories in your application for changes in all of them to be monitored #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download AppEngine SDK into local directory, such as .aesdk/
2. python .aesdk/dev_appserver.py

What is the expected output? What do you see instead?
WARNING  2013-06-20 06:26:18,330 inotify_file_watcher.py:115] There are too 
many directories in your application for changes in all of them to be 
monitored. You may have to restart the development server to see some changes 
to your files.

What version of the product are you using? On what operating system?
Ubuntu 13.04, AppEngine 1.8.1 .zip

Please provide any additional information below.
inotify_file_watcher.py should honour and ignore \..* directories (which also 
usually include version control files) or app.yaml skip file list.

Original issue reported on code.google.com by techtonik@gmail.com on 20 Jun 2013 at 6:45

GoogleCodeExporter commented 8 years ago
It will also be nice to know limit.

Original comment by techtonik@gmail.com on 20 Jun 2013 at 6:46

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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