-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add actionable item to PatternMatchExhaustivity diagnostic #18314
Conversation
@ckipp01 could you give it a look? |
91bdc53
to
bf29c1f
Compare
Just a note about something we need to figure out. Testing this I now see our e2e with Dotty/sbt/Metals isn't working as expected. I know there was some recent changes in sbt, but the behavior I'm seeing now is that the diagnostic is published with the actions, but then published again without them with
I'm not really sure why this is happening now. |
I think this was already fixed in sbt/zinc#1225 ? We had same issues when discussing sbt/zinc#1214 |
Yea, it's just odd that we didn't hit on this before with the other examples for Scala 3. I'm trying to update https://github.com/lampepfl/dotty/blob/10503b0345550259e9381f4fe59da80fb35b32b9/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java#L139-L140 right now which I also believe might be problematic here because it's not using the new |
6ddd045
to
8386b64
Compare
Alright I hope it's ok, but I just rebase this @ghostbuster91 because I want to test it now that #18322 is merged in. |
Nice, thanks:) Could you also share how you are testing it together with these e2e tests with metals? |
Sure, I know you're using
O and make sure you're on the latest release of Metals. Very cool 😄 |
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.
This looks great @ghostbuster91! Thanks for doing this! Just one small nit on the test, let's make sure we also have one with significant whitespace being used just to be safe.
Thanks for making it possible :) |
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.
This looks good to me. Thanks a lot @ghostbuster91! LGTM
It's not actually letting me merge. @dwijnand I think since you requested changes it's waiting for your approval. |
The purpose of this PR is to add an actionable item for non-exhaustive pattern match diagnostic, so that people can auto insert missing cases.
Relates to scalameta/metals-feature-requests#350