Skip to content

Commit

Permalink
bugfix: Use temurin always for coursier
Browse files Browse the repository at this point in the history
I missed one spot.
  • Loading branch information
tgodzik committed May 14, 2024
1 parent 7d32a02 commit 74a70a7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/metals-languageclient/src/setupCoursier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 74a70a7

Please sign in to comment.