-
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
Warnings aren't visible #298
Comments
We discussed parsing GHC's and having a |
I'm not opposed to this change, but given the way stack works now I think it's not terribly urgent. When working on a single package, all output is sent to the console, so you'll see the warnings. The only time when the warnings are hidden away in a log file is when you're building multiple packages at once, where (IME) not seeing the warnings is acceptable. Another option to work around this is to use the |
A note: "When working on a single package, all output is sent to the console" I just ran this against a single package with a warning, and it is silent, although there are warnings in the log file.
|
I need a little more information about what's going on here. When I run |
The project in question is https://github.com/alanz/ghc-exactprint/tree/wip at commit 27e90e45729f81b7a1b439ca2a04cc4d169d2d56 Using current ghc-7.10 head, and What I see after deleting
However, the log file has
Perhaps it is related to a git ref for a location? |
Try running flags: {}
packages:
- '.'
- location:
git: git@github.com:mpickering/refact
commit: 5fc6585cefb50a0fddba0f56cc8dabb9fad832e8
valid-wanted: false
extra-deps:
# - ghc-7.10.1.20150612
- ghc-syb-utils-0.2.3
resolver: nightly-2015-06-16
# resolver: lts-2.14 The |
Using Setting either |
Sorry, I got the syntax incorrect, it's
|
I actually saw via the wiki it should be Perhaps there should be an error message for attributes that are not processed. |
It's planned, see #48. |
I'm closing this in favor of #426, which proposes adding a flag to send ghc output to stdout. |
Relevant PR: #4097 |
Currently there isn't any indication that a warning was outputted while building a package. This can be resolved by grepping for
Warning:
in logs, but that's a bit hacky and you need to remember to do it.I realize that it could be a bit problematic to extract out the warnings from the rest of GHC's output. Instead of going for that level of support, it would be helpful to simply inform the user that there appear to be warnings (by searching for
Warning:
in the logs. This might look like this:The text was updated successfully, but these errors were encountered: