mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
We've for a long time been plagued by run-dev.py needing to be restarted every time one does a rebase that has merge conflicts, because the Tornado process restarts itself into a syntax error and crashes. This fixes the Tornado autoreload process to check explicitly for whether files actually syntax-check before trying to actually reload the Tornado process to run that code. There are a few things that are a bit janky: * Ideally, this would go into Tornado upstream * We removed the `_watched_files` feature, which we weren't using. * Ideally, we'd use something other than `importlib.reload` that just does the syntax-check without adjusting the state within our current process. Fixes #4351. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| application.py | ||
| autoreload.py | ||
| descriptors.py | ||
| event_queue.py | ||
| exceptions.py | ||
| handlers.py | ||
| ioloop_logging.py | ||
| socket.py | ||
| views.py | ||
| websocket_client.py | ||