scala-cli
scala-cli copied to clipboard
`--power` not reflected via `--json-options` for `bsp` subcommand
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
-
Open the project with an IDE with
metalssupport. There should be a generated.bsp/scala-cli.jsonand.scala-build/ide-options-v2.json. -
In
project.scala, there should be the error onusing buildInfothat complains about the
poweroption. -
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}}
-
However the error in
project.scalaonusing buildInfodoes not go away althoughide-options-v2.jsonis read through the arg--json-optionsin.bsp/scala-cli.json. -
Go to
.bsp/scala-cli.jsonand append--powerto args. Error inproject.scaladisappears.
Expected behaviour
--power should be picked up when set through --json-options