-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Warning summary respects -nowarn #8923
Conversation
Some tests failed because summaries no longer show in repl tests |
Edit: fixed just the REPL output, which was due to |
It still says 1 warning, which is better than 9.
|
@lrytz That leaking warning is because The division of state and responsibility between Probably just make |
Also picks up a commit to check that compiler options to a partest Noticed while linting |
I don't really follow what happens here. All that should not have anything to do with
I think the division exists because of being within or outside the global cake. But I see the point: it would probably be good to move everything to |
Yes, patmat issues warning, debug stack trace:
It is "counted", so This PR adds two checks for But if As a footnote, not only cake per se but the split due to |
Previously, hasWarning meant a warning had been displayed (as opposed to counted). Since last refactor, it means counted, so warnings were summarized under -nowarn. Until 2.13.1, there was no summary under -nowarn. Let -nowarn mean -Xmaxwarns 0 (to mean show me no warnings) and additionally don't summarize any warnings (including erroring under -Werror). Named constants for Reporter.filter Test that suppression is relaxed in debug mode. Restore maxwarns after suppressing Scaladoc also touches nowarn ConsoleReporter respects nowarn, since PerRunReporting suppression mechanism has a checkpoint after typer, such that subsequent warnings are issued directly and therefore bump the warnings count.
If there is an error running a forked command, such as a Test or javac, log it instead of letting sbt swallow the exception. (It offers to let you run the last command to see the stack trace.) This helps if javac goes missing.
Previously, a bad compiler option was ignored. Add a common idiom to StreamCapture to set stdout; the idiom may be suboptimal for testing. Convert a partest to junit for regex, and eliminate one check file.
|
/rebuild |
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.
Thank you for giving so much of your patience and time budgeds!
Previously, hasWarning meant a warning had been displayed
(as opposed to counted). Since last refactor, it means
counted, so warnings were summarized under -nowarn.
Until 2.13.1, there was no summary under -nowarn.
Let -nowarn mean -Xmaxwarns 0 (to mean show me no warnings)
and additionally don't summarize any warnings (including
erroring under -Werror).
Fixes scala/bug#11952