Skip to content

Commit

Permalink
Merge pull request #1503 from tgodzik/fix-adopt2
Browse files Browse the repository at this point in the history
bugfix: Use temurin always for coursier
  • Loading branch information
tgodzik authored May 14, 2024
2 parents 7d32a02 + 74a70a7 commit 483b174
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 483b174

Please sign in to comment.