Skip to content

Commit 0657b89

Browse files
committed
Bump bloop-core to 1.5.16-sc-2 & ensure the false positive fatal invariant warnings are no longer raised
1 parent b284360 commit 0657b89

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

modules/integration/src/test/scala/scala/cli/integration/RunTestDefinitions.scala

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,6 +2193,29 @@ abstract class RunTestDefinitions
21932193
}
21942194
}
21952195

2196+
test("running a .scala file several times doesn't produce Bloop errors") {
2197+
val msg = "Hello"
2198+
val input = "Main.scala"
2199+
TestInputs(
2200+
os.rel / input ->
2201+
s"""object Main {
2202+
| def main(args: Array[String]): Unit = {
2203+
| println("$msg")
2204+
| }
2205+
|}
2206+
|""".stripMargin
2207+
).fromRoot { root =>
2208+
// ensure the test will be run on a fresh Bloop instance
2209+
os.proc(TestUtil.cli, "bloop", "exit", "--power").call(cwd = root)
2210+
(0 to 2).foreach { _ =>
2211+
val res = os.proc(TestUtil.cli, "run", input, extraOptions)
2212+
.call(cwd = root, stderr = os.Pipe)
2213+
expect(res.out.trim() == msg)
2214+
expect(!res.err.trim().toLowerCase.contains("error"))
2215+
}
2216+
}
2217+
}
2218+
21962219
test(s"warn about invalid values present in JAVA_OPTS") {
21972220
val expectedOutput = "Hello"
21982221
TestInputs(os.rel / "example.sc" -> s"println(\"$expectedOutput\")")

project/deps.sc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ object Deps {
101101
def signingCli = "0.2.3"
102102
def signingCliJvmVersion = 17
103103
def javaClassName = "0.1.3"
104-
def bloop = "1.5.16-sc-1"
104+
def bloop = "1.5.16-sc-2"
105105
}
106106
// DO NOT hardcode a Scala version in this dependency string
107107
// This dependency is used to ensure that Ammonite is available for Scala versions

0 commit comments

Comments
 (0)