-
Notifications
You must be signed in to change notification settings - Fork 317
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
metals sbt xdg specification #5796
Comments
If you will need an sbt file or smth like that, just mention me. |
The issue seems to be the bsp config generated by
Which will work if If one manually adds this option to args in In metals we could insert such options when we start the sbt server, but that would work under the assumption that we know how the command for starting the server looks like, which is suboptimal, since metals should be oblivious to such things. |
Shouldn't the environment variable work though? We start the process, so maybe we must make sure these variables are passed to sbt? We can suggest to restart if they changed. |
It seems that it's not possible to fix this while launching via launcher, instead we should check if sbt is available on PATH and use it. For most advanced users it should be on the PATH. Alternatively, you should be able to specify path to sbt by hand in the settings and it should work. (to be checked) |
@untainsYD did setting sbt script in metals settings actually solved the issue for you? |
This issue was closed because no new information was added for the last 30 days. If you have any relevant information, feel free to add it and reopen the issue. |
|
Looks like maybe the env variable is not forwarded to Metals. Might be useful to start VS Code using |
I don't think it will work right now. So it seems that starting |
Discussed in #5775
Originally posted by untainsYD October 21, 2023
When I import an
sbt
build inmetals
(Linux6.5.8-arch1-1
/VSCode
), it creates a~/.sbt
folder in the home directory, ignoring the XDG specification. Even though I have setSBT_OPTS
in.zprofile
as follows, it is still being ignored:I have configured the
Custom sbt launcher
to propagate environment variables, but it doesn't seem to be effective.How can i force metals sbt to start the server in order to my
SBT_OPTS
?The text was updated successfully, but these errors were encountered: