-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #51. Prevents hard failure and lets tasks like watch keep running #52
Conversation
Is |
no, thats not the point. If grunt watch is running and stylus has an issue, like not finding a file or a problem with the parsing the code, it kills watch. Other tasks report the error and keep watch running. Having to see the issue, fix it, and then restart the watch command is one step too many. |
Never have problems with In my opinion tasks should fail if there are some problems and if they are not started with |
@sapegin There are different sort of problems. Some problems are unfixable (broken grunt config settings for example or missing important executables) that will not be fixed unless you restart grunt. However, other problems are fixable without changing the grunt settings (i.e. by fixing the .styl file). In the grunt-sass task any problem it will output that problem in the browser as well as in the command line and watch continues to work - very comfortable. (I agree with @eddiemonge +1) |
I'm a little confused. I agree with @eddiemonge that grunt-contrib-stylus should play nice with grunt-contrib-watch, and with @sapegin that tasks should fail when they hit errors. Failing on errors usually means calling
But the changes in this PR don't prevent |
callback(css, null); | ||
} | ||
}); | ||
} catch (e) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we grunt.fail.warn
here?
No description provided.