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

Constant shutdown and restart of scala-cli build server when trying to add an import that doesn't exist. #274

Closed
ckipp01 opened this issue Oct 23, 2021 · 1 comment

Comments

@ckipp01
Copy link
Contributor

ckipp01 commented Oct 23, 2021

When using scala-cli as a build server in Metals and you try to add an import that has a version that doesn't exist, it seems to shut down the build server and restart it constantly. This ends up looking like this:

2021-10-23 21 52 15

The bottom part of the screen is the BSP logs and it basically shows diagnostics being returned that it can't find the dependency, then there is a build/shutdown, and then immediately another build/initialize that just goes on and on.

You can reproduce this with the following file:

import $dep.`com.lihaoyi::requests:0.6.5` // <-- doesn't exist in Scala 3

object Main extends App  {
  println("hi")
}

Then the moment you comment it out, it stops.

@lwronski
Copy link
Contributor

@ckipp01 Thanks for reporting bug, it should be fixed in the next version of scala-cli - PR

@lwronski lwronski closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants