From f065bda889117f932fe7b7c581375963512a56be Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Fri, 16 Aug 2024 12:05:59 +0200 Subject: [PATCH] improvement: Don't allow empty sbtScript setting --- .../main/scala/scala/meta/internal/builds/SbtBuildTool.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metals/src/main/scala/scala/meta/internal/builds/SbtBuildTool.scala b/metals/src/main/scala/scala/meta/internal/builds/SbtBuildTool.scala index 162ed3a7b0b..1c6319c3548 100644 --- a/metals/src/main/scala/scala/meta/internal/builds/SbtBuildTool.scala +++ b/metals/src/main/scala/scala/meta/internal/builds/SbtBuildTool.scala @@ -118,9 +118,9 @@ case class SbtBuildTool( val sbtScript = userConfig().sbtScript.orElse(findSbtInPath()) sbtScript match { - case Some(script) => + case Some(script) if script.nonEmpty => script :: sbtArgs - case None => + case _ => val javaArgs = List[String]( JavaBinary(userConfig().javaHome), "-Djline.terminal=jline.UnsupportedTerminal",