-
-
Notifications
You must be signed in to change notification settings - Fork 288
Fix diagnostics for Scala 2.13.12 #1522
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
Fix diagnostics for Scala 2.13.12 #1522
Conversation
385d7be to
bddc526
Compare
liucijus
left a comment
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.
Thanks @scoquelin!
|
There's another wrinkle to this. It's also broken in 2.12, if you enable SemanticDB. The problem is semanticDB wraps the reporter but only calls doReport on the underlying one (so info0 never gets called). Problem is here Could we just override |
d6d61ba to
a4d18fb
Compare
|
@aishfenton thanks for reporting! I gave it a shot could you please double-check last commit in this PR and confirm it matches with what you had in mind ? FYI I had compile issues with Also, any chance that you have a way to test that the fix works on your end? |
|
LGTM @scoquelin. Taking more careful look at when I wonder if we could split |
|
@aishfenton OK I see thanks for the feedback I got confused when you mentioned |
a4d18fb to
feebb1d
Compare
|
@aishfenton I addressed your feedback and added I initially tried to simplify the branching logic to have basically 2 branches : before I believe the reason it fails and we need a dedicated
Please kindly review/test my last commit and thanks for the insights I have a better understanding of some of the internals here now after digging a bit more into this! |
|
Hi, @scoquelin, thanks for PR. Is this finished (I see new commit). Are we good to merge? |
|
@simuons Yes it's OK to merge! 👍 Thanks! |
Description
This PR fixes diagnostics issue (i.e. generating empty diagnosticsproto files) when using Scala
2.13.12Again, this particular change in the Scala library means that we now need to override
doReportmethod instead ofinfo0inProtoReporter.javaMoreover, there is also another change introduced in Scala 2.13.12 that modifies the positioning and therefore expectations in the
DiagnosticsReporterTest.javareason why we now need 2 versions of that file (before/after Scala2.13.12)Motivation
Closes #1484