These are chat archives for MasseGuillaume/ScalaKata2

22nd
Jun 2016
Flavio W. Brasil
@fwbrasil
Jun 22 2016 17:50
Hi there. I’m trying to run scalakata2 locally, but I’m getting this error:
[info] Starting application quill-scalakata in the background ...
quill-scalakata Starting com.scalakata.Boot.main(8081, localhost, 7331, false, 20 seconds, /Users/fbrasil/workspace/quill-scalakata/target/scala-2.11/kata-classes:/Users/fbrasil/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.8.jar:/Users/fbrasil/.ivy2/cache/com.h2database/h2/jars/h2-1.4.191.jar:/Users/fbrasil/.ivy2/cache/io.getquill/quill-jdbc_2.11/jars/quill-jdbc_2.11-0.6.0.jar:/Users/fbrasil/.ivy2/cache/io.getquill/quill-sql_2.11/jars/quill-sql_2.11-0.6.0.jar:/Users/fbrasil/.ivy2/cache/io.getquill/quill-core_2.11/jars/quill-core_2.11-0.6.0.jar:/Users/fbrasil/.ivy2/cache/org.scalamacros/resetallattrs_2.11/jars/resetallattrs_2.11-1.0.0.jar:/Users/fbrasil/.ivy2/cache/com.typesafe/config/bundles/config-1.3.0.jar:/Users/fbrasil/.ivy2/cache/com.typesafe.scala-logging/scala-logging_2.11/jars/scala-logging_2.11-3.4.0.jar:/Users/fbrasil/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.8.jar:/Users/fbrasil/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.21.jar:/Users/fbrasil/.ivy2/cache/com.zaxxer/HikariCP/bundles/HikariCP-2.4.5.jar:/Users/fbrasil/.ivy2/cache/com.scalakata/annotation_2.11/jars/annotation_2.11-1.1.4.jar:/Users/fbrasil/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.8.jar:/Users/fbrasil/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.4.jar:/Users/fbrasil/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.4.jar:/Users/fbrasil/.ivy2/cache/com.scalakata/model_sjs0.6_2.11/jars/model_sjs0.6_2.11-1.1.4.jar:/Users/fbrasil/.ivy2/cache/org.scala-js/scalajs-library_2.11/jars/scalajs-library_2.11-0.6.10.jar:/Users/fbrasil/.ivy2/cache/com.lihaoyi/pprint_2.11/jars/pprint_2.11-0.4.0.jar:/Users/fbrasil/.ivy2/cache/com.lihaoyi/derive_2.11/jars/derive_2.11-0.4.0.jar:/Users/fbrasil/.ivy2/cache/com.lihaoyi/sourcecode_2.11/jars/sourcecode_2.11-0.1.1.jar:/Users/fbrasil/.ivy2/cache/com.dallaway.richard/woot-model_sjs0.6_2.11/jars/woot-model_sjs0.6_2.11-0.1.1.jar:/Users/fbrasil/.ivy2/cache/org.scala-js/scalajs-dom_sjs0.6_2.11/jars/scalajs-dom_sjs0.6_2.11-0.8.0.jar:/Users/fbrasil/workspace/quill-scalakata/target/scala-2.11/classes:/Users/fbrasil/workspace/quill-scalakata/target/scala-2.11/test-classes, -Xplugin:/Users/fbrasil/.ivy2/cache/org.scalamacros/paradise_2.11.8/jars/paradise_2.11.8-2.1.0.jar, -deprecation, -encoding, UTF-8, -feature, -language:existentials, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -unchecked, -Xexperimental, -Xfuture, -Xlint, -Ybackend:GenBCode, -Ydelambdafy:method, -Yinline-warnings, -Yno-adapted-args, -Yrangepos, -Ywarn-unused-import, -Ywarn-dead-code, -Ywarn-numeric-widen, -Ywarn-value-discard)
[success] Total time: 2 s, completed Jun 22, 2016 10:47:04 AM
quill-scalakata[ERROR] Exception in thread "main" java.lang.NumberFormatException: For input string: "20 seconds"
quill-scalakata[ERROR]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
quill-scalakata[ERROR]     at java.lang.Long.parseLong(Long.java:589)
quill-scalakata[ERROR]     at java.lang.Long.parseLong(Long.java:631)
quill-scalakata[ERROR]     at scala.collection.immutable.StringLike$class.toLong(StringLike.scala:276)
quill-scalakata[ERROR]     at scala.collection.immutable.StringOps.toLong(StringOps.scala:29)
quill-scalakata[ERROR]     at com.scalakata.Boot$.main(Boot.scala:16)
quill-scalakata[ERROR]     at com.scalakata.Boot.main(Boot.scala)
quill-scalakata ... finished with exit code 1
I’ve tried to add this config to build.sbt, but it still fails:
import scala.concurrent.duration._

timeout := 20.seconds