Skip to content

Commit

Permalink
Bump bloop-core to 1.5.16-sc-2 & ensure the false positive fatal in…
Browse files Browse the repository at this point in the history
…variant warnings are no longer raised
  • Loading branch information
Gedochao committed Apr 10, 2024
1 parent b284360 commit 0657b89
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2193,6 +2193,29 @@ abstract class RunTestDefinitions
}
}

test("running a .scala file several times doesn't produce Bloop errors") {
val msg = "Hello"
val input = "Main.scala"
TestInputs(
os.rel / input ->
s"""object Main {
| def main(args: Array[String]): Unit = {
| println("$msg")
| }
|}
|""".stripMargin
).fromRoot { root =>
// ensure the test will be run on a fresh Bloop instance
os.proc(TestUtil.cli, "bloop", "exit", "--power").call(cwd = root)
(0 to 2).foreach { _ =>
val res = os.proc(TestUtil.cli, "run", input, extraOptions)
.call(cwd = root, stderr = os.Pipe)
expect(res.out.trim() == msg)
expect(!res.err.trim().toLowerCase.contains("error"))
}
}
}

test(s"warn about invalid values present in JAVA_OPTS") {
val expectedOutput = "Hello"
TestInputs(os.rel / "example.sc" -> s"println(\"$expectedOutput\")")
Expand Down
2 changes: 1 addition & 1 deletion project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ object Deps {
def signingCli = "0.2.3"
def signingCliJvmVersion = 17
def javaClassName = "0.1.3"
def bloop = "1.5.16-sc-1"
def bloop = "1.5.16-sc-2"
}
// DO NOT hardcode a Scala version in this dependency string
// This dependency is used to ensure that Ammonite is available for Scala versions
Expand Down

0 comments on commit 0657b89

Please sign in to comment.