Giter Site home page Giter Site logo

Comments (8)

jachris avatar jachris commented on July 2, 2024

You are totally right. Not sure how I could miss this... I will add it next week, currently busy with university. Also, I have to see if we can improve the current behaviour when issuing Ctrl+C. Currently it justs crashes the programm more or less. We can let it shut down gracefully and save current process...

Also, I think a flag is more appropriate since I consider continuation after failure a feature. But maybe we can invert the default setting...

I'll ping this thread after making progess.

from cook.

jachris avatar jachris commented on July 2, 2024

Okay, so I did a rough implementation of what we have discussed.

d78de78 implements handling of Ctrl+C during build. The build will be stopped, all current tasks killed and current progress will be saved.

bfc4292 adds the -f or --fastfail option to the command-line interface. If being set and a task fails, all other tasks will be killed and the current progress will be saved.

Is this what you were looking for? The implementation is not very good right now (i.e. error messages) but it does the job and can be improved soon.


Edit: I just noticed there are some UI issues going on when using bash on windows. Will have to investigate. In the meantime, cmd.exe should work fine.

from cook.

velkyel avatar velkyel commented on July 2, 2024

thank you very much. closing.

from cook.

velkyel avatar velkyel commented on July 2, 2024

When task fails (and option --fastfail is enabled) error messages about failing other tasks are annoying and user have to scroll terminal and find what really fails first.

from cook.

jachris avatar jachris commented on July 2, 2024

I will solve this during the next few days.

from cook.

jachris avatar jachris commented on July 2, 2024

Actually I could not resist to already make some minor adjustments.

I want to solve this properly: Currently subprocesses (invoked by core.call) receive the Ctrl+C as well. Pull request #26 should change this behaviour. Only the main process should receive it. While this may seem only tangential to this issue, it is required to ensure that no messages regarding failed tasks are printed when using Ctrl+C. It also replaces the error messages in favor for a simple Aborting <XY> tasks. You can try it out if you want, but it might not work on Windows. I will test that soon.

from cook.

velkyel avatar velkyel commented on July 2, 2024

no rush, enjoy New Year.

from cook.

jachris avatar jachris commented on July 2, 2024

Yes, I hope you did as well.
I merged the PR after making sure that it works on Windows.

from cook.

Related Issues (20)

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.