-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Should we ignore -Werror
in HLS?
#853
Comments
I think simply discarding -Werror is probably the best approach. People use Werror to really say "fail if there are any warnings", and that's something we definitely don't want to do in an IDE, so best ignore it and keep going. The other option would be to remove it then retroactively upgrade the warnings to errors, which means people see the same thing on the command line as in the IDE. I'd be OK with that too. |
* Ignore -Werror Fixes #735 * Compat with GHC < 8.8
* Ignore -Werror Fixes #735 * Compat with GHC < 8.8
* Ignore -Werror Fixes haskell/ghcide#735 * Compat with GHC < 8.8
* Ignore -Werror Fixes haskell/ghcide#735 * Compat with GHC < 8.8
* Ignore -Werror Fixes haskell/ghcide#735 * Compat with GHC < 8.8
I'm still experiencing this issue in the repo https://github.com/input-output-hk/cardano-node, for example when working with the cardano-api package. NB: In this repo, |
Ok, thanks for noting it, reopening issue |
@runeksvendsen i had a report today in discord asking to display warnings as errors in the ide, so it seems it works, have you the chance to try again with a recent hls version? |
I just noticed that
I think this would be the better option, since it reflects what the compiler outputs and actually shows errors as errors. |
-Werror
-Werror
keeping explicit warnings as errors
We are ignoring -WError but it seems is not the ideal behaviour, changing title to relfect it |
-Werror
keeping explicit warnings as errors-Werror
in HLS?
Is there any update on this? I have |
Currently
-Werror
breaks type checking in the presence of warnings. That is, hover and other LSP features stop working or use stale data.The text was updated successfully, but these errors were encountered: