scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

`setup-ide` ignoring `--bsp-directory`

Open JD557 opened this issue 1 year ago • 3 comments

Version(s) 1.2.0

Describe the bug

When scala-cli setup-ide fails with:

[error]  scala-cli can not determine where to write its BSP configuration.
Set an explicit BSP directory path via `--bsp-directory`.

Calling it with --bsp-directory doesn't appear to do anything

To Reproduce

  • Create a test.sc script on /tmp/ (for some reason, this seems to make setup-ide fail)
  • Call scala.cli setup-ide test.sc
  • Follow the recommendation to use --bsp-directory and call scala.cli setup-ide --bsp-directory .bsp test.sc

Expected behaviour

The command should run. Instead, it keeps recommending one to use --bsp-directory.

JD557 avatar Mar 12 '24 11:03 JD557