Comments (8)
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.
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.
thank you very much. closing.
from cook.
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.
I will solve this during the next few days.
from cook.
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.
no rush, enjoy New Year.
from cook.
Yes, I hope you did as well.
I merged the PR after making sure that it works on Windows.
from cook.
Related Issues (20)
- Improve website HOT 1
- Improve documentation HOT 1
- Investigate Rust Rules HOT 1
- C++ feature detection / configuration
- Option to choose debug / release
- Improve IDE support HOT 1
- Path handling HOT 1
- Determine default environment to run commands within HOT 1
- output build directory / tracking BUILD.py HOT 5
- Warnings are not restored HOT 1
- Automatically regenerate CLion project HOT 1
- Git Bash on Windows - UI issues HOT 1
- decider option like scons HOT 4
- Cook name duplicates established work of art HOT 2
- Investigate C Rules
- Investigate Java Rules
- Handle unknown output filenames HOT 5
- Integrate other build systems HOT 1
- Generic rule for arbitrary commands HOT 2
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 cook.