Skip to content
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

Merged
merged 1 commit into from
Aug 27, 2021
Merged

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Jul 29, 2021

Fixes #2808
Fixes #2311

@tgodzik tgodzik force-pushed the update-bloop branch 2 times, most recently from 78ff1a8 to 63ccaa7 Compare July 29, 2021 14:15
@tgodzik tgodzik force-pushed the update-bloop branch 8 times, most recently from 258b86f to 13597e0 Compare August 2, 2021 17:31
_ <- debugger.initialize
_ <- debugger.launch
_ <- debugger.configurationDone
_ <- debugger.awaitOutput("Bar\n")
_ <- debugger.disconnect
Copy link
Contributor Author

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)
Copy link
Contributor Author

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(()))
Copy link
Contributor Author

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

@tgodzik
Copy link
Contributor Author

tgodzik commented Aug 27, 2021

The tests started to get really flaky for the ImplementationSuite, but it's not related to this PR, so I will take a look at it next week.

@tgodzik tgodzik merged commit 3379446 into scalameta:main Aug 27, 2021
@tgodzik tgodzik deleted the update-bloop branch August 27, 2021 15:56
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.

Error running a class on macOS with Apple M1 Don't write all program output to .metals/metals.log
3 participants