question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SBT is silent on first run looking like it's broken

See original GitHub issue

We just got the following report on the Play mailing list

On my end, running the command “activator ui” took 10 minutes, without any indication it was doing anything. To be honest, I tried it a few times before and just closed the console window. But finally, as I was typing this it opened up a new tab in the background. The initial usability of this isn’t ideal, especially considering there’s no context as to what to expect: That it’ll churn as long as it takes without indicators and then at some point open a browser tab. Second run was faster, but still about a 1min wait time.

I’ve seen this as well. Every time someone joins our company and sets up a new computer we get this report.

If you blast away your ivy repo I’m guessing you’ll see this behavior. I think the issue here is that SBT tells you when it’s fetching jars for your project, but it probably doesn’t tell you when it’s fetching jars for your SBT plugins. So on first run, you type sbt and it downloads all the play plugins, sbt-web plugins, etc. and it takes a long time and meanwhile the user doesn’t know what’s happening and why their SBT console isn’t coming up. They’ll often kill SBT at this point and start it again, which causes it to resume the download, but still look like it’s hanging. Folks will often kill it again and just give up at this point

We should really fix this because it’s really discouraging to new comers

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
eed3si9ncommented, Apr 9, 2015

@havocp We might be able to suspend all JAR download during Ivy resolution, and download everything in parallel off a final list. Then we do have real progress bar. Another quick fix may be:

println("JAR download process initiating... May take hours if you live in Asia or Australia.")
4reactions
dwijnandcommented, Mar 7, 2017

In terms of “SBT is silent on first run looking like it’s broken”, this has been mitigated somewhat by a small change in the messaging.

https://github.com/sbt/launcher/pull/27

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ Cannot Import sbt Project - scala - Stack Overflow
Open a terminal inside IDEA by pressing Alt F12 or use sbt shell · Run sbt - if it is first time it...
Read more >
sbt Reference Manual — Combined Pages
The first is to drop jars in lib/ (unmanaged dependencies) and the other is to add managed dependencies, which will look like this...
Read more >
Getting Started with Scala and sbt on the Command Line
Run sbt . This will open up the sbt console. Type ~run . The ~ is optional and causes sbt to re-run on...
Read more >
1 *FASTEST KILLING* BEST STB 556 CLASS SETUP in MW2 ...
1 *FASTEST KILLING* BEST STB 556 CLASS SETUP in MW2! (Best STB 556 Loadout Modern Warfare 2)How to Make the "STB 556" OVERPOWERED...
Read more >
Release Notes - Flyway by Redgate • Database Migrations ...
Fix issue with Flyway not running correctly on Macs with a path that has a ... now created if the user has edited...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found