Comments (3)
I've seen similar behavior with several different compiler errors. The main way it affects me is that sometimes I will save in the middle of a change out of habit, the server will stop, and then I won't notice until I finish my change and go check it out.
The only behavior besides dying would be to not reload unless the code compiles. This would be a little more pleasant for developing, but would also require moving the reloading part of the code from werkzeug.serving into clastic. It also requires running some sort of compile/lint/syntax check on the code without running it (since you can't have two processes with the same socket), but I imagine this is something straightforward in python.
from clastic.
Well, first off you can definitely have multiple processes with the same socket. Remind me to show you the ways at some point. (aside from fork(), which is aight, here is some cool, but heavy and dry stuff: http://infohost.nmt.edu/~eweiss/222_book/222_book/0201433079/ch17lev1sec4.html)
While not documented yet, Clastic actually does have an error server, which displays an error page without killing the server, it's just that I've only thought to test it with NameErrors and SyntaxErrors, and I forgot about IndentationErrors.
Avoiding reload if the new code doesn't compile was the original intent, but it occurred to me that that sort of robustness is desirable (to some) in production environments, but Clastic's devserver is only for development. In development we want fast failure, hence the current behavior of Flaw (aka the error application).
Anyhoo, I'll push the fix for this ASAP.
from clastic.
closing as invalid/wontfix. try reading the man page next time.
jkfixed in 20e017d . ;D When you get a chance, let me know if that works for you, then I'll push the new version to PyPI.
from clastic.
Related Issues (14)
- Not compatible with Werkzeug 0.11.11 HOT 6
- Python 3 support HOT 3
- Dynamic binding example doesn't work HOT 1
- WhiteNoise middleware for static files? HOT 4
- More documentation HOT 3
- Sending Responses Later HOT 6
- App Level Middleware Invocation and Route Ordering HOT 5
- Accessing POST JSON and a requests raw body HOT 4
- Paths are not matched in order HOT 2
- Accessing Secure Cookie in request HOT 5
- Recent failing HOT 3
- Drop official support for Python 3.7, add Python 3.12
- Can't figure out how to build URLs from Request HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clastic.