Skip to content

Should use Java from path when starting sbt via BSP config #7245

@adpi2

Description

@adpi2

steps

  1. Set up a Java version in PATH: eval $(cs java --jvm adopt:11 --env)
  2. Generate the BSP config: sbt bspConfig
  3. Switch to another Java version: eval $(cs java --jvm adoptium:11 --env)
  4. Open Metals and connect to sbt as the build server

problem

The sbt server starts with adopt:11.

expectation

The sbt server should start with the current Java version in PATH.

notes

Also if the Java version is removed, sbt server will fail to start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions