-
Notifications
You must be signed in to change notification settings - Fork 843
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
Ability to use -Wall without -Werror #2035
Comments
The issue is probably that ghc does not rebuild when -Wall is added. Does It may also be due to building multiple packages concurrently. In that case you need to look at build logs for warnings, or build the package individually. |
It was definitely building before. |
It works for me. Can you please provide a repro based on publically available code? Might also be worthwhile trying with HEAD stack, though I doubt that's the difference. |
Following this by I'm using this version of stack:
|
This is most likely caused by logs for multi-package projects being sent to log files instead of to the console. If you want to see the output on the console, you need to specify just one package to build, e.g.:
Does that work? |
That works, but it is not a sufficient solution IMO. |
The reason that I thoroughly agree that we should be able to show all output, and potentially even make it a default. Sounds like this is the main issue here, and it's currently tracked by #426, so marking as a dupe of that. |
Might also be running into #2063 |
Sounds good. If #426 is the dupe for this, my main thought is that it should be possible to configure the option from the stack.yaml file so it can be set on a per-project basis rather than whenever developers think to do it. |
I find it very useful to build with -Wall in situations where -Werror is not desirable.
stack build --ghc-options="-Wall"
does not display any warnings, so this does not appear to be possible right now.The text was updated successfully, but these errors were encountered: