Skip to content

Platform should be set when non default JVM is used. #2663

@tgodzik

Description

@tgodzik

Version(s)
1.1.1

Describe the bug
Currently, if the user specifies JDK 11 as the JVM to use as in:

The platform section used for Bloop should show that, but it doesn't:
"platform": { "name": "jvm", "config": { "options": [] }, "mainClass": [] },

This means when running the wrong JVM will be used, the one Bloop runs on.

To Reproduce

//> using scala 3.3.1
//> using jvm adopt:1.11

@main
def main = 
    println(s"Hello java ${sys.props("java.home")}!")

prints:
Hello java /usr/lib/jvm/graal17! in my case, since I have graal17.

Expected behaviour
Prints:

Hello java <coursier-java-path>!

Metadata

Metadata

Assignees

Labels

BloopIssues tied with Bloop integration.bspIssues tied to the implementation of BSP (Build Server Protocol)bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions