scala-cli
scala-cli copied to clipboard
`setup-ide` ignoring `--bsp-directory`
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.scscript on/tmp/(for some reason, this seems to makesetup-idefail) - Call
scala.cli setup-ide test.sc - Follow the recommendation to use
--bsp-directoryand callscala.cli setup-ide --bsp-directory .bsp test.sc
Expected behaviour
The command should run. Instead, it keeps recommending one to use --bsp-directory.