Skip to content

Commit

Permalink
bugfix: Use metals Java versions as default
Browse files Browse the repository at this point in the history
Otherwise, we might end up using an older Java from javaHome
  • Loading branch information
tgodzik committed Sep 9, 2024
1 parent 0d1567e commit 47f3641
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ final class BloopServers(
}

private def metalsJavaHome(userConfiguration: UserConfiguration) =
userConfiguration.javaHome
sys.props
.get("java.home")
.orElse(sys.env.get("JAVA_HOME"))
.orElse(sys.props.get("java.home"))

private lazy val bloopLogger: BloopRifleLogger = new BloopRifleLogger {
def info(msg: => String): Unit = scribe.info(msg)
Expand Down

0 comments on commit 47f3641

Please sign in to comment.