Skip to content

Commit

Permalink
fixed scripted for jdk 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
iusildra committed Aug 9, 2023
1 parent 0a55cbe commit 9c11cc6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def source = Def.task((Compile / sources).value.find(_.getName == "A.scala").get
def checkBreakpointTask = Def.inputTask {
val uri = (Compile / startMainClassDebugSession).evaluated
implicit val context: TestingContext = TestingContext(source.value, scalaV)
DebugState.state = DebugTest.checkWithoutShutdown(uri)(Outputed("A"), Breakpoint(6))

def runChecks = DebugTest.init(uri) _
DebugState.state = runChecks(Seq(Outputed("A"), Breakpoint(6)))
}

def checkHotCodeReplaceTask = Def.task {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ val pluginVersion = sys.props

addSbtPlugin("ch.epfl.scala" % "sbt-debug-adapter" % pluginVersion)
libraryDependencies += "ch.epfl.scala" %% "scala-debug-adapter-test" % pluginVersion
addSbtPlugin("org.scala-debugger" % "sbt-jdi-tools" % "1.1.1")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("org.scala-debugger" % "sbt-jdi-tools" % "1.1.1")
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ trait DebugTest {
finally client.close()
}

def checkWithoutShutdown(uri: URI)(steps: DebugStepAssert*): DebugCheckState = {
def init(uri: URI)(steps: DebugStepAssert*): DebugCheckState = {
val client = TestingDebugClient.connect(uri)
check(client, None)(steps*)
}
Expand Down

0 comments on commit 9c11cc6

Please sign in to comment.