Skip to content

fix: [1.x] Fixes BSP #7824

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

Merged
merged 1 commit into from
Oct 24, 2024
Merged

fix: [1.x] Fixes BSP #7824

merged 1 commit into from
Oct 24, 2024

Conversation

eed3si9n
Copy link
Member

Fixes #7792

Problem

Calling -bsp with --sbt-launch-jar causes "Unrecognized option: --server". This is because --server is passed in twice since #7775

Solution

Since the server invocation by BSP client already passes in --server, we can remove the extra --server append.

**Problem**
Calling -bsp with --sbt-launch-jar causes "Unrecognized option: --server".
This is because --server is passed in twice since $7775

**Solution**
Since the server invocation by BSP client already passes in --server,
we can remove the extra --server append.
@eed3si9n eed3si9n requested review from adpi2 and BillyAutrey October 24, 2024 05:48
@eed3si9n eed3si9n added this to the 1.10.4 milestone Oct 24, 2024
Copy link
Member

@adpi2 adpi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure to understand why this --server option was added here and where it is added again.

But I guess you checked that it is working with or without the --sbt-launch-jar option so LGTM.

@eed3si9n
Copy link
Member Author

I am not sure to understand why this --server option was added here and where it is added again.

This is a flag mostly intended for the Bash script to indicate you want to invoke sbt server. When I made sbtn the default I was concerned with creating an infinite loop as sbtn would call sbt and then it would call sbtn again. So I added --server. The problem is that I had the same idea before so it was already there.

@adpi2 adpi2 merged commit 234781b into sbt:1.10.x Oct 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[1.10.3] Metals stopped working with the embedded launcher jar
3 participants