From 74a70a7455754b36bff2e7dc56d0973d33ac25f6 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 14 May 2024 15:36:29 +0200 Subject: [PATCH] bugfix: Use temurin always for coursier I missed one spot. --- packages/metals-languageclient/src/setupCoursier.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/metals-languageclient/src/setupCoursier.ts b/packages/metals-languageclient/src/setupCoursier.ts index e3fb556f..af4b4de1 100644 --- a/packages/metals-languageclient/src/setupCoursier.ts +++ b/packages/metals-languageclient/src/setupCoursier.ts @@ -59,9 +59,13 @@ export async function setupCoursier( handleOutput ); - const getJavaPath = spawn(coursier, ["java-home", "--jvm", javaVersion], { - encoding: "utf8", - }); + const getJavaPath = spawn( + coursier, + ["java-home", "--jvm", `temurin:${javaVersion}`], + { + encoding: "utf8", + } + ); getJavaPath.stderr?.on("data", (out: Buffer) => { const msg = out.toString().trim();