scala-cli
scala-cli copied to clipboard
IntelliJ Scala worksheets should be working in a Scala CLI BSP-imported project
Version(s) 0.1.12
Describe the bug
When a Scala CLI project is imported via BSP to IntelliJ (after running scala-cli setup-ide .), adding a Scala worksheet and running it doesn't do anything. IntelliJ claims to have run it, but nothing happens and there's no output.
To Reproduce Just create a fresh scala-cli project...
'@main def main() = println("Hello")' > main.scala
scala-cli setup-ide .
Now open the current working directory in IntelliJ, let it automatically import with BSP and create a new Scala worksheet.
Try putting some code in the worksheet and running it, repl or plain, doesn't matter.
Expected behaviour I'd expect the worksheet to be properly runnable, similar to how it works with SBT (screenshot below)