Skip to content

.sbtopts doesn't get picked up when sbt server gets started by Metals #6575

@Jasper-M

Description

@Jasper-M

If I manually start sbt and then start vscode everything works fine. But if I start vscode first and Metals starts the sbt server, the JVM options from the .sbtopts file in my project folder don't seem be used.

This is the .bsp/sbt.json file that sbt generates:

{"name":"sbt","version":"1.5.2","bspVersion":"2.0.0-M5","languages":["scala"],"argv":["/Users/jasper.moeys/.sdkman/candidates/java/11.0.11.hs-adpt/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/jasper.moeys/.sdkman/candidates/sbt/1.5.1/bin/sbt-launch.jar","xsbt.boot.Boot","-bsp","--sbt-launch-jar=/Users/jasper.moeys/.sdkman/candidates/sbt/1.5.1/bin/sbt-launch.jar"]}

This is on OS X. I think this did work on Ubuntu a while ago, but then that was with different versions of sbt, vscode and metals.

@tgodzik

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions