Skip to content

Message comparison in FilteringReporter strips trailing [quickfixable] #10521

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 2 commits into from
Aug 30, 2023

Conversation

lrytz
Copy link
Member

@lrytz lrytz commented Aug 28, 2023

No description provided.

@scala-jenkins scala-jenkins added this to the 2.13.13 milestone Aug 28, 2023
@lrytz
Copy link
Member Author

lrytz commented Aug 28, 2023

2 steps forward (by som), one back (by me)

@lrytz lrytz force-pushed the filteringQuickfix branch from 86df4b4 to 361a97c Compare August 28, 2023 15:04
@lrytz lrytz modified the milestones: 2.13.13, 2.13.12 Aug 28, 2023
@SethTisue SethTisue added the prio:hi high priority (used only by core team, only near release time) label Aug 29, 2023
@SethTisue SethTisue requested a review from som-snytt August 29, 2023 19:57
@som-snytt
Copy link
Contributor

maybe try putting your shoes on backward.

Copy link
Contributor

@som-snytt som-snytt left a comment

Choose a reason for hiding this comment

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

Well that worked out. I just noticed javac prefixes the message as you had done, probably to make it easier to machine process?

Y.java:21: warning: [removal] ContentSignerParameters in com.sun.jarsigner has been deprecated and marked for removal

Maybe my issue with it was the length of [quickfixable]; [fixable] is the same length as [removal]. In ancient times, I remember log files with left-side columns that aligned nicely for visual scanning and machine parsing, ERR: com.acme: uhoh, or I don't remember exactly except that alignment mattered.

private def stripQuickfixable(msg: String): String = {
val i = msg.indexOf(" [quickfixable]")
if (i > 0) msg.substring(0, i) else msg
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would have if (msg.endsWith(" [qfa]")) etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed it's not always at the end, the "Scala 3 migration messages are errors under -Xsource:3..." appendix is added in RunReporting, after [quickfixable].

Copy link
Contributor

Choose a reason for hiding this comment

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

ok I'm sorry I updated your title.

@som-snytt som-snytt changed the title strip [quickfixable] for message comparison in FilteringReporter Message comparison in FilteringReporter strips trailing [quickfixable] Aug 30, 2023
@som-snytt
Copy link
Contributor

I updated the title to look more like the problem.

@lrytz lrytz merged commit b079015 into scala:2.13.x Aug 30, 2023
@SethTisue SethTisue removed the prio:hi high priority (used only by core team, only near release time) label Aug 30, 2023
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.

4 participants