Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Gedochao opened this issue Sep 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working IDE

Comments

@Gedochao
Copy link
Contributor

Gedochao commented Sep 2, 2022

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 Gedochao added bug Something isn't working IDE labels Sep 2, 2022
@lwronski lwronski assigned lwronski and unassigned lwronski Sep 19, 2022
@Gedochao Gedochao self-assigned this Mar 7, 2023
@Gedochao
Copy link
Contributor Author

Gedochao commented Mar 7, 2023

image

It seems this has already been fixed in #1519, as what was missing before was support for BSP's buildTarget/jvmRunEnvironment

Closing this.

@Gedochao Gedochao closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working IDE
Projects
Archived in project
Development

No branches or pull requests

2 participants