-
Notifications
You must be signed in to change notification settings - Fork 201
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 recent regressions not allowing Metals to pass its tests #2363
Conversation
I will look into the DAP changes and if need to adjust anything. Looks the CI here is failing? |
Previously, if `--best-effort` option was set, every project would be compiled in the best effort mode, including those using scala 2.
@@ -337,7 +337,7 @@ object TestTask { | |||
taskDefs.map { | |||
case TaskDefWithFramework(taskDef, _) => | |||
selectedTests.get(taskDef.fullyQualifiedName()) match { | |||
case None => | |||
case None | Some(Nil) => |
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 fixes the DebugProtocolSuite tests (previously it was
selectedTests.get(taskDef.fullyQualifiedName()).getOrElse(Nil) match {
case Nil =>
case selectedTests =>
and I think the Some(Nil) got lost in the refactor)
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.
Ach! Good catch!
I removed some leftover logs, hopefully that should help with the CI tests here (no idea why they broke) |
Ready for review! This should fix all of the tests in metals from https://github.com/scalameta/metals/actions/runs/9760409386/job/26939422405?pr=5219 outside of MillServerCodeLensSuite in |
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.
Awesome! LGTM
Previously, if
--best-effort
option was set, every project would be compiled in the best effort mode, including those using scala 2. This first commit fixes theCodeLensLspSuite
test.DebugProtocolSuite
might have been broken by 7154823 (before that merge it works),but I am still investigating that (or maybe the broken metals test should change?)