You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I used native flask run to launch a functions as a server, it will keep running even though I raise a syntax error. But functions-framework can't. Is there a way to implement this mechanism in this nice tool? It's annoying to always re-command manually.
I survey how flask works with it and found an article about this mechanism.
The text was updated successfully, but these errors were encountered:
ALiangLiang
changed the title
Continue to run even if introduce syntax errors
[Feature Request] Continue to run even if introduce syntax errors
Jul 3, 2021
This is a bit tricky, because the execution of the user-supplied source happens before the Flask development server is started, during the creation of the WSGI app:
This means that we haven't started Flask's reloader yet and don't have access to another reloader. We'd need to manually catch any exceptions and raise them to the user in a reloader loop, but ideally one that's able to watch the filesystem for changes so as not to constantly be executing the module.
I agree that this can be annoying though, so I'll leave this open for now and see if we can find a better solution.
Uh oh!
There was an error while loading. Please reload this page.
If I used native
flask run
to launch a functions as a server, it will keep running even though I raise a syntax error. But functions-framework can't. Is there a way to implement this mechanism in this nice tool? It's annoying to always re-command manually.I survey how flask works with it and found an article about this mechanism.
The text was updated successfully, but these errors were encountered: