Coursera Scala SBT submission issues

2.1k views Asked by At

I am a current student at the EPFL functional programming in SCALA course on coursera. I have successfully passed the first course by submitting my assignments via sbt with no issues until now.

When I tried to submit the 'calculator' assignment with my generated token, I get error messages like

Set current project to src (in build file:/C:/Users/user/Desktop/cousera%20class/calculator/calculator/src/)

submit [error] Not a valid command: submit (similar: set) [error] Not a valid project ID: submit [error] Expected ':' (if selecting a configuration) [error] Not a valid key: submit [error] submit

Please who's faced this challenge in the past? I need help

3

There are 3 answers

0
Glorian On

You are likely running sbt in the wrong directory.

Make sure you are running sbt command in the directory that contains the source code (src/), and build file (build.sbt). Then, run the submit command:

submit <[email protected]> <token>
0
dblh90 On

Here is what I have done.

  • Ignored all the setup tutorials that are there.
  • Installed sbt on my Ubuntu using apt.
  • Imported the example project here.
  • Went into following the steps there.
  • Submitted using sbt then submit [email protected] [token].

Hope that can be helpful.

0
Ian McNaney On

Just in case this helps anybody else, I had the same problem. I tried running

sbt submit {[email protected]} {token}
from the project root, but that didn't work. Running sbt by itself entered an interpreter type thing, which accepts commands, and running
submit {[email protected]} {token}
from there worked.

Very strange.