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

Use scala-debug-adapter as a dependency #1454

Merged
merged 1 commit into from
May 25, 2021
Merged

Conversation

adpi2
Copy link
Member

@adpi2 adpi2 commented Feb 8, 2021

As orginally discussed here, the plan is to extract the Bloop DebugServer in a separate repostiory, scala-debug-adapter, so that we can reuse it for implementing the debugSession/start endpoint in other build tools. We'll start with sbt, but it could also be implemented in Mill.

In this PR I just want to test back that Bloop integrates well with the scala-debug-adapter library. It is not meant to be merged until the scala-debug-adapter is released.

@adpi2 adpi2 force-pushed the debug-server branch 5 times, most recently from 34721c9 to 02d6a98 Compare February 12, 2021 09:21
@adpi2
Copy link
Member Author

adpi2 commented Feb 12, 2021

The scala-debug-adapter v1.0.0 is released. So this PR is ready to be reviewed.

@adpi2 adpi2 marked this pull request as ready for review February 12, 2021 09:22
@adpi2 adpi2 changed the title [POC] Use scala-debug-adapter as a dependency Use scala-debug-adapter as a dependency Feb 12, 2021
@adpi2 adpi2 requested a review from tgodzik February 13, 2021 11:32
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for getting so late to it. I thought that I would work on zinc first, but it makes sense to maybe work a bit on fixing some current Bloop issues, so let's merge this one and release a new version before the zinc migration.

initialState: State,
ioScheduler: Scheduler
) extends BloopDebuggeeRunner(initialState, ioScheduler) {
override def name: String = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the name needed for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name is used by the DebugServer for logging when there is a problem:

  • a timeout waiting for the DebuggeeRunner to start
  • a timeout waiting for the Terminated event

@adpi2 adpi2 merged commit c2d941d into scalacenter:master May 25, 2021
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.

2 participants