New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sbt doesn't propagate SBT_OPTS
to the generated bsp config
#7469
Comments
Thanks for the report! I don't expect the |
That seems to work as expected.
Is there a different way to add |
No I don't think it is currently possible without a fix in sbt itself. My suggestion would be to change the way sbt generates the BSP config. It should generate It would solve other issues like:
|
How should we generate the config then? We generate it running |
Yes it is. I am suggesting to change the implementation of
|
Oh, yeah, sorry. I misread what you wrote. |
steps
-Dsbt.boot.directory=<some_path>
inSBT_OPTS
env variable,sbt bspConfig
,sbt.json
, which in my case look like this:[...]/java -Xms100m -Xmx100m -classpath [...]/sbt-launch.jar -Dsbt.script=[...]/sbt xsbt.boot.Boot -bsp
.problem
-Dsbt.boot.directory=<some_path>
option doesn't seem to be propagated to args generated in the bsp config, and the launcher starting the sbt server uses the defaultsbt.boot.directory
.expectation
SBT_OPTS
to be propagated to the generated bsp config where relevant and possibly add the necessary args to the generated config:[...]/java -Xms100m -Xmx100m -classpath [...]/sbt-launch.jar -Dsbt.script=[...]/sbt -Dsbt.boot.directory=<some_path> xsbt.boot.Boot -bsp
notes
connected to: scalameta/metals#5796
The text was updated successfully, but these errors were encountered: