SBT Submission only possible from interactive console

wintermute
Erstie
Erstie
Beiträge: 15
Registriert: 6. Jul 2016 13:07

SBT Submission only possible from interactive console

Beitrag von wintermute » 30. Okt 2017 14:20

Hi all,

I had problems with the submission of my solution of assignment 0. After some experimenting I have found out that the submit task only works from the interactive sbt console for me.

If I type the following directly into my command prompt

Code: Alles auswählen

sbt submit <tu-id> <token>
I get this error

Code: Alles auswählen

[error]
[error] Invalid input to 'submit'. The required syntax for 'submit' is:
[error]  submit <tu-id> <submit-token>
[error]
[error] java.lang.RuntimeException: Submission failed!
[error] 	at scala.sys.package$.error(package.scala:27)
[error] 	at de.tudarmstadt.stg.SbtSubmission$autoImport$.failSubmission(SbtSubmission.scala:74)
[error] 	at de.tudarmstadt.stg.SbtSubmission$autoImport$SedcSubmitSetting.$anonfun$defaultSettings$3(SbtSubmission.scala:102)
[error] 	at de.tudarmstadt.stg.SbtSubmission$autoImport$SedcSubmitSetting.$anonfun$defaultSettings$3$adapted(SbtSubmission.scala:84)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error] 	at sbt.std.Transform$$anon$4.work(System.scala:64)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] 	at sbt.Execute.work(Execute.scala:266)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] (*:submit) Submission failed!
But when I first start a sbt command prompt by invoking sbt and then type submit <tu-id> <token> everything works.

In case anyone has similar problems I hope this helps.

mirko-koehler
Mausschubser
Mausschubser
Beiträge: 80
Registriert: 16. Okt 2017 12:28

Re: SBT Submission only possible from interactive console

Beitrag von mirko-koehler » 30. Okt 2017 15:03

Make sure to use quotation marks when running sbt in batch mode, i.e.

Code: Alles auswählen

sbt "submit <tu-id> <token>"
works for me.


Mirko

0b101101101
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 179
Registriert: 15. Apr 2015 18:24

Re: SBT Submission only possible from interactive console

Beitrag von 0b101101101 » 30. Okt 2017 15:13

I always use sbt in my terminal and it works. :)

Potentially you could try

$ sbt "submit <tu-id> <token>"

and

$ sbt
...
...
> submit <tu-id> <token>

wintermute
Erstie
Erstie
Beiträge: 15
Registriert: 6. Jul 2016 13:07

Re: SBT Submission only possible from interactive console

Beitrag von wintermute » 30. Okt 2017 15:54

mirko-koehler hat geschrieben:
30. Okt 2017 15:03
Make sure to use quotation marks when running sbt in batch mode, i.e.

Code: Alles auswählen

sbt "submit <tu-id> <token>"
works for me.


Mirko
I have just tried it. Using quotation marks does the trick for me.

Thanks mirko-koehler and 0b101101101 for your help.

Username123
Neuling
Neuling
Beiträge: 7
Registriert: 7. Nov 2017 15:48

Re: SBT Submission only possible from interactive console

Beitrag von Username123 » 12. Nov 2017 20:13

I tried submitting Assignment1 using the following cmd..

Code: Alles auswählen

sbt "submit <yourTUId> <submissionToken>"
But I got the following error..

Code: Alles auswählen

[error] Expected ID character
[error] Not a valid command: sbt (similar: set, boot, last)
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: sbt (similar: submit, test, state)

Username123
Neuling
Neuling
Beiträge: 7
Registriert: 7. Nov 2017 15:48

Re: SBT Submission only possible from interactive console

Beitrag von Username123 » 12. Nov 2017 20:25

I tried the following and it worked.

> sbt
> submit <tu-id> <token>

Thank you!

Antworten

Zurück zu „Archiv“