Skip to content
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

--power not reflected via --json-options for bsp subcommand #2678

Closed
ramytanios opened this issue Jan 15, 2024 · 0 comments · Fixed by #2997
Closed

--power not reflected via --json-options for bsp subcommand #2678

ramytanios opened this issue Jan 15, 2024 · 0 comments · Fixed by #2997
Assignees
Labels
bsp Issues tied to the implementation of BSP (Build Server Protocol) bug Something isn't working IDE

Comments

@ramytanios
Copy link

Version(s)
1.1.1

Describe the bug
scala-cli bsp --power sets power while scala-cli bsp --json-options jsonOptions.json where jsonOptions.json is

{"powerOptions": {"power":true}}

does not set power to true.

To Reproduce
1.

//app.scala
@main def run = println("Hello world!")
//project.scala
//> using scala 3.3.1
//> using buildInfo
  1. Open the project with an IDE with metals support. There should be a generated .bsp/scala-cli.json and .scala-build/ide-options-v2.json.

  2. In project.scala, there should be the error on using buildInfo

image that complains about the `power` option.
  1. In the root of the project, do scala-cli setup-ide . --power. Look at content of .scala-build/ide-options-v2.json, you should find
{"powerOptions": {"power":true}}
  1. However the error in project.scala on using buildInfo does not go away although ide-options-v2.json is read through the arg --json-options in .bsp/scala-cli.json.

  2. Go to .bsp/scala-cli.json and append --power to args. Error in project.scala disappears.

Expected behaviour
--power should be picked up when set through --json-options

@ramytanios ramytanios added the bug Something isn't working label Jan 15, 2024
@Gedochao Gedochao added the IDE label Jan 16, 2024
@Gedochao Gedochao self-assigned this May 23, 2024
@Gedochao Gedochao added the bsp Issues tied to the implementation of BSP (Build Server Protocol) label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bsp Issues tied to the implementation of BSP (Build Server Protocol) bug Something isn't working IDE
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants