I am a beginner in Scala and every time I start sbt from command prompt it goes into a long update and it takes several minutes for the sbt to update. I read in the instructions that the sbt was going to update the first time it was started from the command prompt but in my case it is updating every time I start it. I have to wait several minutes for it to update and it takes away some of the joy of learning Scala. So my question is how do I stop sbt from updating every time and is it normal for it to do so?
edit:
This is how my sbt command looks and after this it goes into a long update.
edit2:
SBT is designed to be started once when you start working on the project and not shut down. This saves you the time it takes for the JVM to start as well as any start up tasks that SBT dose at start up.
So instead of running:
sbt test
at your operating systems shell prompt you can run
sbt
With no arguments which will drop you into the sbt prompt.
From hear you can run sbt commands (the same as you normally do but without the sbt prefix because your already in sbt (eg compile, test ....) one after the other with no start up time which is much quicker.
Another big time saver is that in the sbt prompt you can put a ~ at the start of many sbt commands to have them run automatically. eg
~test
Will start running your tests as soon as you save in your IDE/editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With