-
Notifications
You must be signed in to change notification settings - Fork 337
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
Update Bloop Java Home to that of Metals #3871
Conversation
…ve a preferred different one!
metals/src/main/scala/scala/meta/internal/metals/UserConfiguration.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
…loop global json file
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
…estart conditions!
If anyone else could also take a look and double check the approach here I would be super thankful! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remind me what are the benefits from coupling Metals' java and Bloop's java?
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
An easy way to setup what we are using for compilation and also this way we would make sure that we use the same java version everywhere. In the long run this would be the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind of having this approach.
The only I'm worried is that javaHome changes silently lead to a notification bloop properties was changed: Restart/Now now
that might be not clear for a user.
@zmerr could we make sure that when java Home changes we get a different messages than when properties change? |
Sure! so as to avoid surprises for the user! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks almost ready to merge. Just a few minor comments and you can change it from the draft PR to a normal one.
metals/src/main/scala/scala/meta/internal/metals/Messages.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/BloopServers.scala
Outdated
Show resolved
Hide resolved
…properties is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
If Metals Java Home gets updated, the Bloop java home gets also updated with that of the metals, through the Bloop global json file.