Git Product home page Git Product logo

Comments (3)

plowman avatar plowman commented on May 18, 2024

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.

mahmoud avatar mahmoud commented on May 18, 2024

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.

mahmoud avatar mahmoud commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.