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

Error downloading sbt launcher, url is missing the version in the artifact name #6202

Open
arturopala opened this issue Mar 6, 2024 · 5 comments
Labels
needs more information Use if we need more information for a specific ticket

Comments

@arturopala
Copy link

2024.03.06 14:06:24 ERROR Downloading sbt launcher for 1.9.9:
2024.03.06 14:06:24 ERROR   From  http://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt-launch/1.9.9/sbt-launch.jar
2024.03.06 14:06:24 ERROR     To  /Users/arturopala/.sbt/launchers/1.9.9/sbt-launch.jar
2024.03.06 14:06:25 INFO  Download failed. Obtain the jar manually and place it at /Users/arturopala/.sbt/launchers/1.9.9/sbt-launch.jar

Expected behaviour:

Use version in the artifact name, like: https://repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.9.9/sbt-launch-1.9.9.jar

Operating system:
Mac OS X

Java version:
21.0.1

Editor/extension:
Visual Studio Code v1.87.0

Metals version:
1.2.2+60-c95ba517-SNAPSHOT

Extra context or search terms:

Workspace information:

  • Scala versions: 2.13.12; 2.12.18
  • Build tools: 0. sbt
  • Build servers:
    0. Bloop v1.5.15
  • All build tools in workspace: Bloop; sbt
@arturopala arturopala changed the title Error dowloading sbt launcher, url is missing the version in the artifact name Error downloading sbt launcher, url is missing the version in the artifact name Mar 6, 2024
@tgodzik
Copy link
Contributor

tgodzik commented Mar 6, 2024

Thanks for reporting! When did this start happening? Did you set the path to sbt in the metals.sbtScript setting?

@tgodzik tgodzik added the needs more information Use if we need more information for a specific ticket label Mar 6, 2024
@arturopala
Copy link
Author

@tgodzik my sbtScript is empty, I think it has started when I did complain on Discord that I can't use sbt build server anymore in my projects

@tgodzik
Copy link
Contributor

tgodzik commented Mar 7, 2024

@tgodzik my sbtScript is empty, I think it has started when I did complain on Discord that I can't use sbt build server anymore in my projects

Och, I thought that was on Windows, but I must have merged it with another issue.

Looks like the URL is wrong, it's missing the version in the jar, should be https://repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.9.9/sbt-launch-1.9.9.jar

We are either finding a script on your PATH that is not working with the newest or it's our launcher that needs to be updated. Do you have sbt available on your PATH?

@arturopala
Copy link
Author

I'm using sbtenv to manage my sbt versions https://github.com/sbtenv/sbtenv

@arturopala
Copy link
Author

@tgodzik I've been able to fix the build, most likely running sbt bloopInstall manually broke sbt command, resetting the terminal session and metals did help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information Use if we need more information for a specific ticket
Projects
None yet
Development

No branches or pull requests

2 participants