Skip to content

Silence a debug println #12257

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

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

abgruszecki
Copy link
Contributor

Currently, when running testCompilation i1286, the following always gets printed:

error while transforming method splitAt
error while transforming method tuple2ToZippedOps

It seems that the associated error gets caught and handled, so we shouldn't print this message.

@@ -791,7 +791,7 @@ object Denotations {
val currentPeriod = ctx.period
val valid = myValidFor

def signalError() = println(s"error while transforming $this")
def signalError() = () //println(s"error while transforming $this")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since that method is only used in one place I would just replace its call by the commented out println

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use one of the Printers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't a good Printer to use here. Nearby code just uses println.

Currently, when running testCompilation i1286, the following always gets
printed:

error while transforming method splitAt
error while transforming method tuple2ToZippedOps

It seems that the associated error gets caught and handled, so we shouldn't
print this message.
@abgruszecki abgruszecki force-pushed the silence-transforming-error branch from 9b3bbeb to 3c7a682 Compare April 28, 2021 15:58
@abgruszecki abgruszecki enabled auto-merge April 28, 2021 16:52
@abgruszecki abgruszecki merged commit 2d2038e into scala:master Apr 28, 2021
@abgruszecki abgruszecki deleted the silence-transforming-error branch April 28, 2021 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants