-
Notifications
You must be signed in to change notification settings - Fork 1.1k
scala 3 compiler version msg is written to stdout, not stderr #18845
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ package config | |
|
||
import scala.language.unsafeNulls | ||
|
||
import dotty.tools.dotc.reporting.{ConsoleReporter} | ||
import java.io.{ BufferedReader, PrintWriter } | ||
import Settings._ | ||
import core.Contexts._ | ||
import printing.Highlighting | ||
|
@@ -130,7 +132,8 @@ trait CliCommand: | |
report.echo(ifErrorsMsg) | ||
None | ||
else if settings.version.value then | ||
report.echo(versionMsg) | ||
// ctx defaults to Console.err | ||
ConsoleReporter(writer = new PrintWriter(Console.out, true)).printMessage(versionMsg) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should be handled by the reporter instead, then in the ConsoleReporter you can add an extra writer for where echo messages go (set to Typically we do want all |
||
None | ||
else if isHelpFlag then | ||
report.echo(helpMsg) | ||
|
Uh oh!
There was an error while loading. Please reload this page.