Skip to content

Commit

Permalink
chore: Update Bloop to 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Sep 20, 2024
1 parent 932866d commit 4297a75
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ class ArgsFileTests extends ScalaCliSuite {
os.rel / "args.txt" -> """|-release
|8""".stripMargin,
os.rel / fileName ->
s"""|import java.net.http.HttpClient
|
|println("Hello :)")
s"""|
|println("Hello :)".repeat(11))
|""".stripMargin
)

Expand All @@ -40,9 +39,8 @@ class ArgsFileTests extends ScalaCliSuite {
os.rel / "args.txt" -> """|-release 8""".stripMargin,
os.rel / "script-with-shebang" ->
s"""|#!/usr/bin/env -S ${TestUtil.cli.mkString(" ")} shebang @args.txt
|import java.net.http.HttpClient
|
|println("Hello :)")
|println("Hello :)".repeat(11))
|""".stripMargin
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,18 @@ class BloopTests extends ScalaCliSuite {
val content =
if (isScala)
"""|package a
|import java.net.http.HttpClient
|
|
|trait Simple {
| def httpClient: HttpClient
| val str = "".repeat(2)
|}
|""".stripMargin
else """|package a;
|
|import java.net.http.HttpClient;
|
|interface Simple {
| HttpClient httpClient();
|class Simple {
| void hello(){
| String str = "".repeat(2);
| }
|}
|""".stripMargin
val inputs = TestInputs(os.rel / s"Simple.$lang" -> s"$directive$content")
Expand All @@ -234,8 +234,8 @@ class BloopTests extends ScalaCliSuite {

val compilationError = res.err.text()
val message =
if (isScala) "value http is not a member of java.net"
else "error: package java.net.http does not exist"
if (isScala) "value repeat is not a member of String"
else "error: cannot find symbol"

assert(compilationError.contains("Compilation failed"))
assert(compilationError.contains(message))
Expand Down
2 changes: 1 addition & 1 deletion project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ object Deps {
def signingCliJvmVersion = Java.defaultJava
def javaSemanticdb = "0.10.0"
def javaClassName = "0.1.3"
def bloop = "2.0.0"
def bloop = "2.0.2"
def mavenVersion = "3.8.1"
def mavenScalaCompilerPluginVersion = "4.9.1"
def mavenExecPluginVersion = "3.3.0"
Expand Down

0 comments on commit 4297a75

Please sign in to comment.