Skip to content

Commit

Permalink
Make the sbt tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Dec 15, 2023
1 parent 19539c6 commit daa4ba5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/slow/src/test/scala/tests/sbt/SbtStepDapSuite.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package tests.sbt

import scala.meta.internal.metals.BuildInfo

import tests.SbtBuildLayout
import tests.SbtServerInitializer
import tests.debug.BaseStepDapSuite
Expand All @@ -9,4 +11,8 @@ class SbtStepDapSuite
s"sbt-debug-step",
SbtServerInitializer,
SbtBuildLayout,
)
) {

// otherwise we get both Scala 2.12 and 2.13 dependencies, whchich is more tricky for the tests
override def scalaVersion: String = BuildInfo.scala212
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ abstract class BaseStepDapSuite(
.at("a/src/main/scala/Main.scala", line = 5)(StepIn)
.atDependency(
server.toPathFromSymbol("scala.Predef", "scala/Predef.scala"),
line = 427,
line = if (scalaVersion.startsWith("2.13")) 427 else 405,
)(Continue)
},
)
Expand Down

0 comments on commit daa4ba5

Please sign in to comment.