-
Notifications
You must be signed in to change notification settings - Fork 346
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
Update Bloop to the newest nightly #3003
Conversation
78ff1a8
to
63ccaa7
Compare
258b86f
to
13597e0
Compare
_ <- debugger.initialize | ||
_ <- debugger.launch | ||
_ <- debugger.configurationDone | ||
_ <- debugger.awaitOutput("Bar\n") | ||
_ <- debugger.disconnect |
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.
No need to disconnect in this test, we can just replace wait
above and finish normally.
@@ -65,7 +65,6 @@ final class Debugger(server: RemoteServer)(implicit ec: ExecutionContext) { | |||
def disconnect: Future[Unit] = { | |||
val args = new DisconnectArguments | |||
args.setRestart(false) | |||
args.setTerminateDebuggee(false) |
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 doesn't need to be specified, the server should take care of it appropriately.
https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disconnect
@@ -89,7 +89,7 @@ final class TestDebugger( | |||
} | |||
|
|||
def disconnect: Future[Unit] = { | |||
ifNotFailed(debugger.disconnect) | |||
ifNotFailed(debugger.disconnect).map(_ => terminated.trySuccess(())) |
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.
It seems that sometimes we might not get the terminated message, so this is to work around scalacenter/scala-debug-adapter#66
The tests started to get really flaky for the |
Fixes #2808
Fixes #2311