Reputation: 11426
Trying to submit my assignments. Looks easy from the demo, but receiving weird error. SBT version is correct. What may be wrong?
> sbt-version
[info] 0.12.4
> submit
[error] Not a valid command: submit (similar: set)
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: submit
Upvotes: 7
Views: 7538
Reputation: 38267
yes, I watched all the videos... but imported the example incorrectly :)
To correctly import the example, you need to run sbt
in the folder with the build.sbt
file. In my case, the scalatest
version was not found. To fix, it could be updated to (in CommonBuild.scala
):
lazy val scalaTestDependency = "org.scalatest" %% "scalatest" % "3.2.0-SNAP10" % Test
Upvotes: 2
Reputation: 38247
You need to be using the code package for the course downloaded from the Coursera course web site, otherwise there will be no submit
command available as it's not a built-in of SBT or Scala or anything. This is also covered by the tutorial video lecture, and you will be able to obtain the link from the course site.
Also, you need to provide your e-mail address and submission key (which you can obtain from the course web site) as parameters to the submit
command.
Upvotes: 6