Hi Aymeric, I feel like using Watchman might be the easiest solution. It keeps triggering the command once an event occurs, so autoreload.py does not need to restart the server in case of a syntax error. Pywatchman does not work on Python 3 and has some dependency problems, so I'm planning to use the command line interface of the Watchman library. Watchdog only triggers the given command once, so it cannot survive a syntax error and requires the auto-reloader to deal with multi-threading, the most challenging part in this project (likely to enter the same problem described in #2330 <http://code.djangoproject.com/ticket/2330>.) Therefore, I'd start with Watchman and see how to implement this with Watchdog later. How do you feel about this plan?
Cheers, David Ma On Sunday, April 2, 2017 at 6:33:38 AM UTC-7, Aymeric Augustin wrote: > > Hello, > > On 1 Apr 2017, at 05:52, [email protected] <javascript:> wrote: > > For the pure-Python solution, I might implement a standalone autoreloader > based on Carl's work and replace the current one. Does this look good to > you? > > > Perhaps. > > It depends on the details (features, installation requirements, cross > platform support, etc.). > > It's up to you to argument in your proposal why this would be a good > solution. > > Best regards, > > -- > Aymeric. > > > > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3c284301-15e9-44d9-9b7c-2d866b7f7d13%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
