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

IntelliJ Scala worksheets should be working in a Scala CLI BSP-imported project

Open Gedochao opened this issue 3 years ago • 0 comments

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.

image

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. image 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)

image

Gedochao avatar Sep 02 '22 12:09 Gedochao