vmunier / play-scalajs.g8 Goto Github PK
View Code? Open in Web Editor NEWGiter8 template to get started with Play and Scala.js.
License: Apache License 2.0
Giter8 template to get started with Play and Scala.js.
License: Apache License 2.0
Here is the error
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
error No main class detected.
Help me out of this
Every time you run test
fastOptJS gets run for every js project. As far as I can tell this shouldn't be nessecary and it takes up a good chunk of time when running test a lot. Would it be possible to exclude that when testing?
I have a problem now (looks like a common issue for this kind of a project) I want to use i18n messages from Play in Scala.js subproject. So far, I couldn't find a way to do that.
May be you know the way how to do that? Sorry, it not looks like an issue, but more a like usage problem.
After downloading the application and following instructions in the README, I receive the following error:
../play-with-scalajs-example-master/build.sbt:24: error: type mismatch; found : String("org.scala-js") required: ?{def %%%(x$1: ? >: String("scalajs-dom")): ?} Note that implicit conversions are not applicable because they are ambiguous: both method toCrossGroupID in object AutoImport of type (groupID: String)sbtcrossproject.CrossGroupID and method toScalaJSGroupID in trait DependencyBuilders of type (groupID: String)org.scalajs.sbtplugin.impl.ScalaJSGroupID are possible conversion functions from String("org.scala-js") to ?{def %%%(x$1: ? >: String("scalajs-dom")): ?} "org.scala-js" %%% "scalajs-dom" % "0.9.1" ^ ../play-with-scalajs-example-master/build.sbt:24: error: value %%% is not a member of String "org.scala-js" %%% "scalajs-dom" % "0.9.1" ^ ../play-with-scalajs-example-master/build.sbt:29: error: reference to crossProject is ambiguous; it is imported twice in the same scope by import _root_.org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ and import _root_.sbtcrossproject.CrossPlugin.autoImport._ lazy val shared = (crossProject.crossType(CrossType.Pure) in file("shared")). ^ sbt.compiler.EvalException: Type error in expression [error] sbt.compiler.EvalException: Type error in expression
Any ideas as to the best way to resolve this?
I'm running Java 1.8 and Scala 2.12.1. Let me know if there is other information I can provide which may be helpful.
While executing sbt command, I am getting:-
[SUCCESSFUL ] org.scala-sbt#apply-macro;0.13.5!apply-macro.jar (3167ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
44 artifacts copied, 0 already retrieved (13482kB/121ms)
Getting Scala 2.10.4 (for sbt)...
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
5 artifacts copied, 0 already retrieved (24459kB/184ms)
[info] Loading project definition from /home/ayush/nodejsExample/play-with-scalajs-example/project
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/io/apigee/trireme/trireme-core/0.7.5/trireme-core-0.7.5.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/io/apigee/trireme/trireme-core/0.7.5/trireme-core-0.7.5.pom
[warn] module not found: io.apigee.trireme#trireme-core;0.7.5
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/io.apigee.trireme/trireme-core/0.7.5/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io.apigee.trireme/trireme-core/0.7.5/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/io.apigee.trireme/trireme-core/0.7.5/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/io/apigee/trireme/trireme-core/0.7.5/trireme-core-0.7.5.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/io/apigee/trireme/trireme-core/0.7.5/trireme-core-0.7.5.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/io.apigee.trireme/trireme-node10src/0.7.5/ivys/ivy.xml
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io.apigee.trireme/trireme-node10src/0.7.5/ivys/ivy.xml
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/io/apigee/trireme/trireme-node10src/0.7.5/trireme-node10src-0.7.5.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/io/apigee/trireme/trireme-node10src/0.7.5/trireme-node10src-0.7.5.pom
[warn] module not found: io.apigee.trireme#trireme-node10src;0.7.5
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/io.apigee.trireme/trireme-node10src/0.7.5/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/io.apigee.trireme/trireme-node10src/0.7.5/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/io.apigee.trireme/trireme-node10src/0.7.5/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/io/apigee/trireme/trireme-node10src/0.7.5/trireme-node10src-0.7.5.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/io/apigee/trireme/trireme-node10src/0.7.5/trireme-node10src-0.7.5.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/org.slf4j/slf4j-simple/1.7.7/ivys/ivy.xml
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.slf4j/slf4j-simple/1.7.7/ivys/ivy.xml
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.7/slf4j-simple-1.7.7.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/org/slf4j/slf4j-simple/1.7.7/slf4j-simple-1.7.7.pom
[warn] module not found: org.slf4j#slf4j-simple;1.7.7
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.slf4j/slf4j-simple/1.7.7/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.slf4j/slf4j-simple/1.7.7/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/org.slf4j/slf4j-simple/1.7.7/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.7/slf4j-simple-1.7.7.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/slf4j/slf4j-simple/1.7.7/slf4j-simple-1.7.7.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe/npm_2.10/1.0.0/ivys/ivy.xml
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe/npm_2.10/1.0.0/ivys/ivy.xml
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/com/typesafe/npm_2.10/1.0.0/npm_2.10-1.0.0.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/com/typesafe/npm_2.10/1.0.0/npm_2.10-1.0.0.pom
[warn] module not found: com.typesafe#npm_2.10;1.0.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe/npm_2.10/1.0.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe/npm_2.10/1.0.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/com.typesafe/npm_2.10/1.0.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/npm_2.10/1.0.0/npm_2.10-1.0.0.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/npm_2.10/1.0.0/npm_2.10-1.0.0.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-web/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-web/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.10_0.13/1.0.0/sbt-web-1.0.0.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-web_2.10_0.13/1.0.0/sbt-web-1.0.0.pom
[warn] module not found: com.typesafe.sbt#sbt-web;1.0.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-web/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-web/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.10_0.13/1.0.0/sbt-web-1.0.0.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-web_2.10_0.13/1.0.0/sbt-web-1.0.0.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-webdriver/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] problem while downloading module descriptor: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-webdriver/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml: invalid sha1: expected=<!doctype computed=911e44c36247c9b5981482057c5ed546b8b3583c (3539ms)
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-webdriver_2.10_0.13/1.0.0/sbt-webdriver-1.0.0.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-webdriver_2.10_0.13/1.0.0/sbt-webdriver-1.0.0.pom
[warn] module not found: com.typesafe.sbt#sbt-webdriver;1.0.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-webdriver/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-webdriver/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/com.typesafe.sbt/sbt-webdriver/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/sbt/sbt-webdriver_2.10_0.13/1.0.0/sbt-webdriver-1.0.0.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-webdriver_2.10_0.13/1.0.0/sbt-webdriver-1.0.0.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/net.virtual-void/sbt-dependency-graph/scala_2.10/sbt_0.13/0.7.4/ivys/ivy.xml
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/net.virtual-void/sbt-dependency-graph/scala_2.10/sbt_0.13/0.7.4/ivys/ivy.xml
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/net/virtual-void/sbt-dependency-graph_2.10_0.13/0.7.4/sbt-dependency-graph-0.7.4.pom
[warn] problem while downloading module descriptor: http://repo.typesafe.com/typesafe/releases/net/virtual-void/sbt-dependency-graph_2.10_0.13/0.7.4/sbt-dependency-graph-0.7.4.pom: invalid sha1: expected=<!doctype computed=86df50bf7d800276091d6389519163a52a8c3eee (9504ms)
[warn] module not found: net.virtual-void#sbt-dependency-graph;0.7.4
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/net.virtual-void/sbt-dependency-graph/scala_2.10/sbt_0.13/0.7.4/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/net.virtual-void/sbt-dependency-graph/scala_2.10/sbt_0.13/0.7.4/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/net.virtual-void/sbt-dependency-graph/scala_2.10/sbt_0.13/0.7.4/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/net/virtual-void/sbt-dependency-graph_2.10_0.13/0.7.4/sbt-dependency-graph-0.7.4.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/net/virtual-void/sbt-dependency-graph_2.10_0.13/0.7.4/sbt-dependency-graph-0.7.4.pom
[warn] problem while downloading module descriptor: http://repo.typesafe.com/typesafe/ivy-releases/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.3/ivys/ivy.xml: invalid sha1: expected=<!doctype computed=0d7a68616f33665ef3173fab749c3c924d6e9305 (15482ms)
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.3/ivys/ivy.xml
[warn] Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/scala-lang/modules/scalajs/scalajs-sbt-plugin_2.10_0.13/0.5.3/scalajs-sbt-plugin-0.5.3.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/releases/org/scala-lang/modules/scalajs/scalajs-sbt-plugin_2.10_0.13/0.5.3/scalajs-sbt-plugin-0.5.3.pom
[warn] module not found: org.scala-lang.modules.scalajs#scalajs-sbt-plugin;0.5.3
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.3/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.3/ivys/ivy.xml
[warn] ==== local: tried
[warn] /home/ayush/.ivy2/local/org.scala-lang.modules.scalajs/scalajs-sbt-plugin/scala_2.10/sbt_0.13/0.5.3/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/scala-lang/modules/scalajs/scalajs-sbt-plugin_2.10_0.13/0.5.3/scalajs-sbt-plugin-0.5.3.pom
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/scala-lang/modules/scalajs/scalajs-sbt-plugin_2.10_0.13/0.5.3/scalajs-sbt-plugin-0.5.3.pom
[warn] Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.3.0/jars/sbt-plugin.jar
[warn] [NOT FOUND ] com.typesafe.play#sbt-plugin;2.3.0!sbt-plugin.jar (1ms)
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.3.0/jars/sbt-plugin.jar
[warn] [FAILED ] com.typesafe.play#build-link;2.3.0!build-link.jar: repo.typesafe.com (1ms)
[warn] [FAILED ] com.typesafe.play#build-link;2.3.0!build-link.jar: repo.typesafe.com (1ms)
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/build-link/2.3.0/build-link-2.3.0.jar
[warn] [FAILED ] com.typesafe.play#play-exceptions;2.3.0!play-exceptions.jar: repo.typesafe.com (1ms)
[warn] [FAILED ] com.typesafe.play#play-exceptions;2.3.0!play-exceptions.jar: repo.typesafe.com (1ms)
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-exceptions/2.3.0/play-exceptions-2.3.0.jar
[warn] [FAILED ] com.typesafe.play#routes-compiler_2.10;2.3.0!routes-compiler_2.10.jar: repo.typesafe.com (1ms)
[warn] [FAILED ] com.typesafe.play#routes-compiler_2.10;2.3.0!routes-compiler_2.10.jar: repo.typesafe.com (1ms)
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/routes-compiler_2.10/2.3.0/routes-compiler_2.10-2.3.0.jar
[warn] [FAILED ] com.google.guava#guava;16.0.1!guava.jar(bundle): repo1.maven.org (33474ms)
[warn] [FAILED ] com.google.guava#guava;16.0.1!guava.jar(bundle): repo1.maven.org (33474ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/google/guava/guava/16.0.1/guava-16.0.1.jar
[warn] [FAILED ] org.avaje.ebeanorm#avaje-ebeanorm-agent;3.2.2!avaje-ebeanorm-agent.jar: repo1.maven.org (2ms)
[warn] [FAILED ] org.avaje.ebeanorm#avaje-ebeanorm-agent;3.2.2!avaje-ebeanorm-agent.jar: repo1.maven.org (2ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/avaje/ebeanorm/avaje-ebeanorm-agent/3.2.2/avaje-ebeanorm-agent-3.2.2.jar
[warn] [FAILED ] com.h2database#h2;1.3.175!h2.jar: repo1.maven.org (1ms)
[warn] [FAILED ] com.h2database#h2;1.3.175!h2.jar: repo1.maven.org (1ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/h2database/h2/1.3.175/h2-1.3.175.jar
[warn] [FAILED ] org.javassist#javassist;3.18.2-GA!javassist.jar(bundle): repo1.maven.org (1ms)
[warn] [FAILED ] org.javassist#javassist;3.18.2-GA!javassist.jar(bundle): repo1.maven.org (1ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/javassist/javassist/3.18.2-GA/javassist-3.18.2-GA.jar
[warn] [FAILED ] net.contentobjects.jnotify#jnotify;0.94!jnotify.jar: repo.typesafe.com (24472ms)
[warn] [FAILED ] net.contentobjects.jnotify#jnotify;0.94!jnotify.jar: repo.typesafe.com (24472ms)
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/net/contentobjects/jnotify/jnotify/0.94/jnotify-0.94.jar
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-twirl/scala_2.10/sbt_0.13/1.0.0/jars/sbt-twirl.jar
[warn] [NOT FOUND ] com.typesafe.sbt#sbt-twirl;1.0.0!sbt-twirl.jar (24120ms)
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-twirl/scala_2.10/sbt_0.13/1.0.0/jars/sbt-twirl.jar
[warn] [FAILED ] com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar: invalid sha1: expected=<!doctype computed=066b8d93c9bfb72235ba6267085d19b3fe350d52 (45094ms)
[warn] [FAILED ] com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar: invalid sha1: expected=<!doctype computed=066b8d93c9bfb72235ba6267085d19b3fe350d52 (45094ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.10_0.13/1.5.1/sbt-idea-1.5.1.jar
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/0.7.1/jars/sbt-native-packager.jar
[warn] [NOT FOUND ] com.typesafe.sbt#sbt-native-packager;0.7.1!sbt-native-packager.jar (44832ms)
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/0.7.1/jars/sbt-native-packager.jar
[warn] Host repo.scala-sbt.org not found. url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-js-engine/scala_2.10/sbt_0.13/1.0.0/jars/sbt-js-engine.jar
[warn] [NOT FOUND ] com.typesafe.sbt#sbt-js-engine;1.0.0!sbt-js-engine.jar (1ms)
[warn] ==== sbt-plugin-releases: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-js-engine/scala_2.10/sbt_0.13/1.0.0/jars/sbt-js-engine.jar
[warn] [FAILED ] commons-io#commons-io;2.0.1!commons-io.jar: invalid sha1: expected=<!doctype computed=baea971999a998bb0de8addf19de9c03d6419423 (28925ms)
[warn] [FAILED ] commons-io#commons-io;2.0.1!commons-io.jar: invalid sha1: expected=<!doctype computed=baea971999a998bb0de8addf19de9c03d6419423 (28925ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar
[warn] [FAILED ] com.typesafe.play#twirl-compiler_2.10;1.0.0!twirl-compiler_2.10.jar: invalid sha1: expected=<!doctype computed=f08c02db7b8893dfb33bf1e7455c2a8c8065baca (5852ms)
[warn] [FAILED ] com.typesafe.play#twirl-compiler_2.10;1.0.0!twirl-compiler_2.10.jar: invalid sha1: expected=<!doctype computed=f08c02db7b8893dfb33bf1e7455c2a8c8065baca (5852ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/play/twirl-compiler_2.10/1.0.0/twirl-compiler_2.10-1.0.0.jar
[warn] [FAILED ] com.typesafe.play#twirl-api_2.10;1.0.0!twirl-api_2.10.jar: invalid sha1: expected=<!doctype computed=80d6e7d22c4c543d708ae9fc98223c4b085e84d1 (2418ms)
[warn] [FAILED ] com.typesafe.play#twirl-api_2.10;1.0.0!twirl-api_2.10.jar: invalid sha1: expected=<!doctype computed=80d6e7d22c4c543d708ae9fc98223c4b085e84d1 (2418ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/play/twirl-api_2.10/1.0.0/twirl-api_2.10-1.0.0.jar
[warn] [FAILED ] com.typesafe.play#twirl-parser_2.10;1.0.0!twirl-parser_2.10.jar: invalid sha1: expected=<!doctype computed=989fd1836a7c328e1c4fbc780a5f49e47f683d68 (3069ms)
[warn] [FAILED ] com.typesafe.play#twirl-parser_2.10;1.0.0!twirl-parser_2.10.jar: invalid sha1: expected=<!doctype computed=989fd1836a7c328e1c4fbc780a5f49e47f683d68 (3069ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/play/twirl-parser_2.10/1.0.0/twirl-parser_2.10-1.0.0.jar
[warn] [FAILED ] org.apache.commons#commons-lang3;3.1!commons-lang3.jar: invalid sha1: expected=<!doctype computed=89521d3054d94fdffea348acfe287fabed10bfec (2432ms)
[warn] [FAILED ] org.apache.commons#commons-lang3;3.1!commons-lang3.jar: invalid sha1: expected=<!doctype computed=89521d3054d94fdffea348acfe287fabed10bfec (2432ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
[warn] [FAILED ] org.apache.commons#commons-compress;1.4.1!commons-compress.jar: invalid sha1: expected=<!doctype computed=b694dd7c74180e09d031b6fc247624b5fda2d52f (3648ms)
[warn] [FAILED ] org.apache.commons#commons-compress;1.4.1!commons-compress.jar: invalid sha1: expected=<!doctype computed=b694dd7c74180e09d031b6fc247624b5fda2d52f (3648ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar
[warn] [FAILED ] org.tukaani#xz;1.0!xz.jar: invalid sha1: expected=<!doctype computed=f4a5dede1a199f954026adb8d17985310016a0a7 (2291ms)
[warn] [FAILED ] org.tukaani#xz;1.0!xz.jar: invalid sha1: expected=<!doctype computed=f4a5dede1a199f954026adb8d17985310016a0a7 (2291ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/tukaani/xz/1.0/xz-1.0.jar
[warn] [FAILED ] com.typesafe#jse_2.10;1.0.0!jse_2.10.jar: repo.typesafe.com (20771ms)
[warn] [FAILED ] com.typesafe#jse_2.10;1.0.0!jse_2.10.jar: repo.typesafe.com (20771ms)
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/jse_2.10/1.0.0/jse_2.10-1.0.0.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: io.apigee.trireme#trireme-core;0.7.5: not found
[warn] :: io.apigee.trireme#trireme-node10src;0.7.5: not found
[warn] :: org.slf4j#slf4j-simple;1.7.7: not found
[warn] :: com.typesafe#npm_2.10;1.0.0: not found
[warn] :: com.typesafe.sbt#sbt-web;1.0.0: not found
[warn] :: com.typesafe.sbt#sbt-webdriver;1.0.0: not found
[warn] :: net.virtual-void#sbt-dependency-graph;0.7.4: not found
[warn] :: org.scala-lang.modules.scalajs#scalajs-sbt-plugin;0.5.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.play#sbt-plugin;2.3.0!sbt-plugin.jar
[warn] :: com.typesafe.play#build-link;2.3.0!build-link.jar
[warn] :: com.typesafe.play#play-exceptions;2.3.0!play-exceptions.jar
[warn] :: org.javassist#javassist;3.18.2-GA!javassist.jar(bundle)
[warn] :: com.typesafe.play#routes-compiler_2.10;2.3.0!routes-compiler_2.10.jar
[warn] :: commons-io#commons-io;2.0.1!commons-io.jar
[warn] :: com.google.guava#guava;16.0.1!guava.jar(bundle)
[warn] :: org.avaje.ebeanorm#avaje-ebeanorm-agent;3.2.2!avaje-ebeanorm-agent.jar
[warn] :: com.h2database#h2;1.3.175!h2.jar
[warn] :: net.contentobjects.jnotify#jnotify;0.94!jnotify.jar
[warn] :: com.typesafe.sbt#sbt-twirl;1.0.0!sbt-twirl.jar
[warn] :: com.typesafe.play#twirl-compiler_2.10;1.0.0!twirl-compiler_2.10.jar
[warn] :: com.typesafe.play#twirl-api_2.10;1.0.0!twirl-api_2.10.jar
[warn] :: org.apache.commons#commons-lang3;3.1!commons-lang3.jar
[warn] :: com.typesafe.play#twirl-parser_2.10;1.0.0!twirl-parser_2.10.jar
[warn] :: com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar
[warn] :: com.typesafe.sbt#sbt-native-packager;0.7.1!sbt-native-packager.jar
[warn] :: org.apache.commons#commons-compress;1.4.1!commons-compress.jar
[warn] :: org.tukaani#xz;1.0!xz.jar
[warn] :: com.typesafe.sbt#sbt-js-engine;1.0.0!sbt-js-engine.jar
[warn] :: com.typesafe#jse_2.10;1.0.0!jse_2.10.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbt:sbt-web:1.0.0 (sbtVersion=0.13, scalaVersion=2.10)
[warn] com.typesafe.sbt:sbt-webdriver:1.0.0 (sbtVersion=0.13, scalaVersion=2.10)
[warn] net.virtual-void:sbt-dependency-graph:0.7.4 (sbtVersion=0.13, scalaVersion=2.10)
[warn] org.scala-lang.modules.scalajs:scalajs-sbt-plugin:0.5.3 (sbtVersion=0.13, scalaVersion=2.10)
[warn]
sbt.ResolveException: unresolved dependency: io.apigee.trireme#trireme-core;0.7.5: not found
unresolved dependency: io.apigee.trireme#trireme-node10src;0.7.5: not found
unresolved dependency: org.slf4j#slf4j-simple;1.7.7: not found
unresolved dependency: com.typesafe#npm_2.10;1.0.0: not found
unresolved dependency: com.typesafe.sbt#sbt-web;1.0.0: not found
unresolved dependency: com.typesafe.sbt#sbt-webdriver;1.0.0: not found
unresolved dependency: net.virtual-void#sbt-dependency-graph;0.7.4: not found
unresolved dependency: org.scala-lang.modules.scalajs#scalajs-sbt-plugin;0.5.3: not found
download failed: com.typesafe.play#sbt-plugin;2.3.0!sbt-plugin.jar
download failed: com.typesafe.play#build-link;2.3.0!build-link.jar
download failed: com.typesafe.play#play-exceptions;2.3.0!play-exceptions.jar
download failed: org.javassist#javassist;3.18.2-GA!javassist.jar(bundle)
download failed: com.typesafe.play#routes-compiler_2.10;2.3.0!routes-compiler_2.10.jar
download failed: commons-io#commons-io;2.0.1!commons-io.jar
download failed: com.google.guava#guava;16.0.1!guava.jar(bundle)
download failed: org.avaje.ebeanorm#avaje-ebeanorm-agent;3.2.2!avaje-ebeanorm-agent.jar
download failed: com.h2database#h2;1.3.175!h2.jar
download failed: net.contentobjects.jnotify#jnotify;0.94!jnotify.jar
download failed: com.typesafe.sbt#sbt-twirl;1.0.0!sbt-twirl.jar
download failed: com.typesafe.play#twirl-compiler_2.10;1.0.0!twirl-compiler_2.10.jar
download failed: com.typesafe.play#twirl-api_2.10;1.0.0!twirl-api_2.10.jar
download failed: org.apache.commons#commons-lang3;3.1!commons-lang3.jar
download failed: com.typesafe.play#twirl-parser_2.10;1.0.0!twirl-parser_2.10.jar
download failed: com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar
download failed: com.typesafe.sbt#sbt-native-packager;0.7.1!sbt-native-packager.jar
download failed: org.apache.commons#commons-compress;1.4.1!commons-compress.jar
download failed: org.tukaani#xz;1.0!xz.jar
download failed: com.typesafe.sbt#sbt-js-engine;1.0.0!sbt-js-engine.jar
download failed: com.typesafe#jse_2.10;1.0.0!jse_2.10.jar
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:217)
at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:126)
at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:125)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:115)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:115)
at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:103)
at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:48)
at sbt.IvySbt$$anon$3.call(Ivy.scala:57)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
at xsbt.boot.Using$.withResource(Using.scala:11)
at xsbt.boot.Using$.apply(Using.scala:10)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.IvySbt.withDefaultLogger(Ivy.scala:57)
at sbt.IvySbt.withIvy(Ivy.scala:98)
at sbt.IvySbt.withIvy(Ivy.scala:94)
at sbt.IvySbt$Module.withModule(Ivy.scala:115)
at sbt.IvyActions$.update(IvyActions.scala:125)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1223)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1221)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$74.apply(Defaults.scala:1244)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$74.apply(Defaults.scala:1242)
at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1246)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1241)
at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
at sbt.Classpaths$.cachedUpdate(Defaults.scala:1249)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1214)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1192)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
error sbt.ResolveException: unresolved dependency: io.apigee.trireme#trireme-core;0.7.5: not found
[error] unresolved dependency: io.apigee.trireme#trireme-node10src;0.7.5: not found
[error] unresolved dependency: org.slf4j#slf4j-simple;1.7.7: not found
[error] unresolved dependency: com.typesafe#npm_2.10;1.0.0: not found
[error] unresolved dependency: com.typesafe.sbt#sbt-web;1.0.0: not found
[error] unresolved dependency: com.typesafe.sbt#sbt-webdriver;1.0.0: not found
[error] unresolved dependency: net.virtual-void#sbt-dependency-graph;0.7.4: not found
[error] unresolved dependency: org.scala-lang.modules.scalajs#scalajs-sbt-plugin;0.5.3: not found
[error] download failed: com.typesafe.play#sbt-plugin;2.3.0!sbt-plugin.jar
[error] download failed: com.typesafe.play#build-link;2.3.0!build-link.jar
[error] download failed: com.typesafe.play#play-exceptions;2.3.0!play-exceptions.jar
[error] download failed: org.javassist#javassist;3.18.2-GA!javassist.jar(bundle)
[error] download failed: com.typesafe.play#routes-compiler_2.10;2.3.0!routes-compiler_2.10.jar
[error] download failed: commons-io#commons-io;2.0.1!commons-io.jar
[error] download failed: com.google.guava#guava;16.0.1!guava.jar(bundle)
[error] download failed: org.avaje.ebeanorm#avaje-ebeanorm-agent;3.2.2!avaje-ebeanorm-agent.jar
[error] download failed: com.h2database#h2;1.3.175!h2.jar
[error] download failed: net.contentobjects.jnotify#jnotify;0.94!jnotify.jar
[error] download failed: com.typesafe.sbt#sbt-twirl;1.0.0!sbt-twirl.jar
[error] download failed: com.typesafe.play#twirl-compiler_2.10;1.0.0!twirl-compiler_2.10.jar
[error] download failed: com.typesafe.play#twirl-api_2.10;1.0.0!twirl-api_2.10.jar
[error] download failed: org.apache.commons#commons-lang3;3.1!commons-lang3.jar
[error] download failed: com.typesafe.play#twirl-parser_2.10;1.0.0!twirl-parser_2.10.jar
[error] download failed: com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar
[error] download failed: com.typesafe.sbt#sbt-native-packager;0.7.1!sbt-native-packager.jar
[error] download failed: org.apache.commons#commons-compress;1.4.1!commons-compress.jar
[error] download failed: org.tukaani#xz;1.0!xz.jar
[error] download failed: com.typesafe.sbt#sbt-js-engine;1.0.0!sbt-js-engine.jar
[error] download failed: com.typesafe#jse_2.10;1.0.0!jse_2.10.jar
I think it will be more natural to make play project (ScalaJVM) a default one as getting errors "no main project" when trying to use "play" commands on top of it is rather distracting
I cloned your porject and tried to run this. I obtained error:
sbt run
Getting org.scala-sbt sbt 0.13.16 (this may take some time)...
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.16/jars/sbt.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;0.13.16!sbt.jar (6908ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.16/jars/main.jar ...
[SUCCESSFUL ] org.scala-sbt#main;0.13.16!main.jar (2959ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.16/jars/compiler-interface.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.13.16!compiler-interface.jar (4920ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.16/jars/actions.jar ...
[SUCCESSFUL ] org.scala-sbt#actions;0.13.16!actions.jar (5783ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main-settings/0.13.16/jars/main-settings.jar ...
[SUCCESSFUL ] org.scala-sbt#main-settings;0.13.16!main-settings.jar (4832ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.13.16/jars/interface.jar ...
[SUCCESSFUL ] org.scala-sbt#interface;0.13.16!interface.jar (8987ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.13.16/jars/io.jar ...
[SUCCESSFUL ] org.scala-sbt#io;0.13.16!io.jar (5981ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.13.16/jars/ivy.jar ...
[SUCCESSFUL ] org.scala-sbt#ivy;0.13.16!ivy.jar (8051ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.13.16/jars/logging.jar ...
[SUCCESSFUL ] org.scala-sbt#logging;0.13.16!logging.jar (4753ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logic/0.13.16/jars/logic.jar ...
[SUCCESSFUL ] org.scala-sbt#logic;0.13.16!logic.jar (5632ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/process/0.13.16/jars/process.jar ...
[SUCCESSFUL ] org.scala-sbt#process;0.13.16!process.jar (5729ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.13.16/jars/run.jar ...
[SUCCESSFUL ] org.scala-sbt#run;0.13.16!run.jar (11335ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.13.16/jars/command.jar ...
[SUCCESSFUL ] org.scala-sbt#command;0.13.16!command.jar (3882ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.0.1/launcher-interface-1.0.1.jar ...
[SUCCESSFUL ] org.scala-sbt#launcher-interface;1.0.1!launcher-interface.jar (275ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classpath/0.13.16/jars/classpath.jar ...
[SUCCESSFUL ] org.scala-sbt#classpath;0.13.16!classpath.jar (5635ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.13.16/jars/completion.jar ...
[SUCCESSFUL ] org.scala-sbt#completion;0.13.16!completion.jar (6887ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.13.16/jars/api.jar ...
[SUCCESSFUL ] org.scala-sbt#api;0.13.16!api.jar (11100ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-integration/0.13.16/jars/compiler-integration.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-integration;0.13.16!compiler-integration.jar (5795ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-ivy-integration/0.13.16/jars/compiler-ivy-integration.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-ivy-integration;0.13.16!compiler-ivy-integration.jar (11263ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/relation/0.13.16/jars/relation.jar ...
[SUCCESSFUL ] org.scala-sbt#relation;0.13.16!relation.jar (4652ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/task-system/0.13.16/jars/task-system.jar ...
[SUCCESSFUL ] org.scala-sbt#task-system;0.13.16!task-system.jar (12036ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tasks/0.13.16/jars/tasks.jar ...
[SUCCESSFUL ] org.scala-sbt#tasks;0.13.16!tasks.jar (10019ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tracking/0.13.16/jars/tracking.jar ...
[SUCCESSFUL ] org.scala-sbt#tracking;0.13.16!tracking.jar (6060ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/testing/0.13.16/jars/testing.jar ...
[SUCCESSFUL ] org.scala-sbt#testing;0.13.16!testing.jar (6743ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.13.16/jars/control.jar ...
[SUCCESSFUL ] org.scala-sbt#control;0.13.16!control.jar (11252ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.13.16/jars/collections.jar ...
[SUCCESSFUL ] org.scala-sbt#collections;0.13.16!collections.jar (2776ms)
downloading https://repo1.maven.org/maven2/jline/jline/2.14.4/jline-2.14.4.jar ...
[SUCCESSFUL ] jline#jline;2.14.4!jline.jar (341ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classfile/0.13.16/jars/classfile.jar ...
[SUCCESSFUL ] org.scala-sbt#classfile;0.13.16!classfile.jar (9968ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.16/jars/incremental-compiler.jar ...
[SUCCESSFUL ] org.scala-sbt#incremental-compiler;0.13.16!incremental-compiler.jar (7000ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.16/jars/compile.jar ...
[SUCCESSFUL ] org.scala-sbt#compile;0.13.16!compile.jar (4725ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist/0.13.16/jars/persist.jar ...
[SUCCESSFUL ] org.scala-sbt#persist;0.13.16!persist.jar (7808ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cross/0.13.16/jars/cross.jar ...
[SUCCESSFUL ] org.scala-sbt#cross;0.13.16!cross.jar (4669ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.jar ...
[SUCCESSFUL ] org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4!ivy.jar (723ms)
downloading https://repo1.maven.org/maven2/com/jcraft/jsch/0.1.50/jsch-0.1.50.jar ...
[SUCCESSFUL ] com.jcraft#jsch;0.1.50!jsch.jar (230ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.13.16/jars/cache.jar ...
[SUCCESSFUL ] org.scala-sbt#cache;0.13.16!cache.jar (9945ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-agent/0.13.16/jars/test-agent.jar ...
[SUCCESSFUL ] org.scala-sbt#test-agent;0.13.16!test-agent.jar (4785ms)
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.16/jars/apply-macro.jar ...
[SUCCESSFUL ] org.scala-sbt#apply-macro;0.13.16!apply-macro.jar (9949ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar ...
[SUCCESSFUL ] org.scala-sbt#template-resolver;0.1!template-resolver.jar (273ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
49 artifacts copied, 0 already retrieved (17616kB/63ms)
[info] Loading project definition from /home/daniel/exp/play-scalajs.g8/project
[info] Updating {file:/home/daniel/exp/play-scalajs.g8/project/}play-scalajs-g8-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.foundweekends.giter8/sbt-giter8/scala_2.10/sbt_0.13/0.10.0/jars/sbt-giter8.jar ...
[info] [SUCCESSFUL ] org.foundweekends.giter8#sbt-giter8;0.10.0!sbt-giter8.jar (6054ms)
[info] downloading https://repo1.maven.org/maven2/org/foundweekends/giter8/giter8-lib_2.10/0.10.0/giter8-lib_2.10-0.10.0.jar ...
[info] [SUCCESSFUL ] org.foundweekends.giter8#giter8-lib_2.10;0.10.0!giter8-lib_2.10.jar (439ms)
[info] downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/scripted-plugin/0.13.16/jars/scripted-plugin.jar ...
[info] [SUCCESSFUL ] org.scala-sbt#scripted-plugin;0.13.16!scripted-plugin.jar (4677ms)
[info] downloading https://repo1.maven.org/maven2/org/clapper/scalasti_2.10/2.1.2/scalasti_2.10-2.1.2.jar ...
[info] [SUCCESSFUL ] org.clapper#scalasti_2.10;2.1.2!scalasti_2.10.jar (168ms)
[info] downloading https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.pgm/3.7.0.201502260915-r/org.eclipse.jgit.pgm-3.7.0.201502260915-r.jar ...
[info] [SUCCESSFUL ] org.eclipse.jgit#org.eclipse.jgit.pgm;3.7.0.201502260915-r!org.eclipse.jgit.pgm.jar (179ms)
[info] downloading https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/2.7.1/plexus-archiver-2.7.1.jar ...
[info] [SUCCESSFUL ] org.codehaus.plexus#plexus-archiver;2.7.1!plexus-archiver.jar (176ms)
[info] downloading https://repo1.maven.org/maven2/org/clapper/grizzled-scala_2.10/3.1.0/grizzled-scala_2.10-3.1.0.jar ...
[info] [SUCCESSFUL ] org.clapper#grizzled-scala_2.10;3.1.0!grizzled-scala_2.10.jar (237ms)
[info] downloading https://repo1.maven.org/maven2/org/clapper/classutil_2.10/1.1.0/classutil_2.10-1.1.0.jar ...
[info] [SUCCESSFUL ] org.clapper#classutil_2.10;1.1.0!classutil_2.10.jar (156ms)
[info] downloading https://repo1.maven.org/maven2/org/antlr/ST4/4.0.8/ST4-4.0.8.jar ...
[info] [SUCCESSFUL ] org.antlr#ST4;4.0.8!ST4.jar (173ms)
[info] downloading https://repo1.maven.org/maven2/org/ow2/asm/asm/5.1/asm-5.1.jar ...
[info] [SUCCESSFUL ] org.ow2.asm#asm;5.1!asm.jar (157ms)
[info] downloading https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.jar ...
[info] [SUCCESSFUL ] org.ow2.asm#asm-commons;5.1!asm-commons.jar (149ms)
[info] downloading https://repo1.maven.org/maven2/org/ow2/asm/asm-util/5.1/asm-util-5.1.jar ...
[info] [SUCCESSFUL ] org.ow2.asm#asm-util;5.1!asm-util.jar (152ms)
[info] downloading https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.jar ...
[info] [SUCCESSFUL ] org.ow2.asm#asm-tree;5.1!asm-tree.jar (145ms)
[info] downloading https://repo1.maven.org/maven2/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar ...
[info] [SUCCESSFUL ] org.antlr#antlr-runtime;3.5.2!antlr-runtime.jar (168ms)
[info] downloading https://repo1.maven.org/maven2/args4j/args4j/2.0.12/args4j-2.0.12.jar ...
[info] [SUCCESSFUL ] args4j#args4j;2.0.12!args4j.jar (143ms)
[info] downloading https://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.6/commons-compress-1.6.jar ...
[info] [SUCCESSFUL ] org.apache.commons#commons-compress;1.6!commons-compress.jar (179ms)
[info] downloading https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.archive/3.7.0.201502260915-r/org.eclipse.jgit.archive-3.7.0.201502260915-r.jar ...
[info] [SUCCESSFUL ] org.eclipse.jgit#org.eclipse.jgit.archive;3.7.0.201502260915-r!org.eclipse.jgit.archive.jar (159ms)
[info] downloading https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit/3.7.0.201502260915-r/org.eclipse.jgit-3.7.0.201502260915-r.jar ...
[info] [SUCCESSFUL ] org.eclipse.jgit#org.eclipse.jgit;3.7.0.201502260915-r!org.eclipse.jgit.jar (378ms)
[info] downloading https://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.ui/3.7.0.201502260915-r/org.eclipse.jgit.ui-3.7.0.201502260915-r.jar ...
[info] [SUCCESSFUL ] org.eclipse.jgit#org.eclipse.jgit.ui;3.7.0.201502260915-r!org.eclipse.jgit.ui.jar (142ms)
[info] downloading https://repo1.maven.org/maven2/org/tukaani/xz/1.4/xz-1.4.jar ...
[info] [SUCCESSFUL ] org.tukaani#xz;1.4!xz.jar (155ms)
[info] downloading https://repo1.maven.org/maven2/org/osgi/org.osgi.core/4.3.1/org.osgi.core-4.3.1.jar ...
[info] [SUCCESSFUL ] org.osgi#org.osgi.core;4.3.1!org.osgi.core.jar (177ms)
[info] downloading https://repo1.maven.org/maven2/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.jar ...
[info] [SUCCESSFUL ] com.googlecode.javaewah#JavaEWAH;0.7.9!JavaEWAH.jar(bundle) (153ms)
[info] downloading https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.3/httpclient-4.1.3.jar ...
[info] [SUCCESSFUL ] org.apache.httpcomponents#httpclient;4.1.3!httpclient.jar (177ms)
[info] downloading https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.jar ...
[info] [SUCCESSFUL ] org.slf4j#slf4j-api;1.7.2!slf4j-api.jar (158ms)
[info] downloading https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.1.4/httpcore-4.1.4.jar ...
[info] [SUCCESSFUL ] org.apache.httpcomponents#httpcore;4.1.4!httpcore.jar (161ms)
[info] downloading https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar ...
[info] [SUCCESSFUL ] commons-logging#commons-logging;1.1.1!commons-logging.jar (150ms)
[info] downloading https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.jar ...
[info] [SUCCESSFUL ] commons-codec#commons-codec;1.4!commons-codec.jar (144ms)
[info] downloading https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar ...
[info] [SUCCESSFUL ] org.codehaus.plexus#plexus-container-default;1.0-alpha-9-stable-1!plexus-container-default.jar (158ms)
[info] downloading https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/3.0.18/plexus-utils-3.0.18.jar ...
[info] [SUCCESSFUL ] org.codehaus.plexus#plexus-utils;3.0.18!plexus-utils.jar (189ms)
[info] downloading https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-io/2.2/plexus-io-2.2.jar ...
[info] [SUCCESSFUL ] org.codehaus.plexus#plexus-io;2.2!plexus-io.jar (158ms)
[info] Done updating.
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn]
[warn] * org.codehaus.plexus:plexus-utils:3.0.18 is selected over 1.0.4
[warn] +- org.codehaus.plexus:plexus-archiver:2.7.1 (depends on 1.0.4)
[warn] +- org.codehaus.plexus:plexus-io:2.2 (depends on 1.0.4)
[warn] +- org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1 (depends on 1.0.4)
[warn]
[warn] Run 'evicted' to see detailed eviction warnings
[info] Set current project to play-scalajs.g8 (in build file:/home/daniel/exp/play-scalajs.g8/)
[info] Updating {file:/home/daniel/exp/play-scalajs.g8/}play-scalajs-g8...
[info] Resolving org.scala-sbt#scripted-sbt;0.13.16 ...
[warn] module not found: org.scala-sbt#scripted-sbt;0.13.16
[warn] ==== local: tried
[warn] /home/daniel/.ivy2/local/org.scala-sbt/scripted-sbt/0.13.16/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/scala-sbt/scripted-sbt/0.13.16/scripted-sbt-0.13.16.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /home/daniel/.sbt/preloaded/org.scala-sbt/scripted-sbt/0.13.16/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/daniel/.sbt/preloaded/org/scala-sbt/scripted-sbt/0.13.16/scripted-sbt-0.13.16.pom
[info] Resolving org.scala-sbt#sbt-launch;0.13.16 ...
[warn] module not found: org.scala-sbt#sbt-launch;0.13.16
[warn] ==== local: tried
[warn] /home/daniel/.ivy2/local/org.scala-sbt/sbt-launch/0.13.16/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/scala-sbt/sbt-launch/0.13.16/sbt-launch-0.13.16.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /home/daniel/.sbt/preloaded/org.scala-sbt/sbt-launch/0.13.16/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/daniel/.sbt/preloaded/org/scala-sbt/sbt-launch/0.13.16/sbt-launch-0.13.16.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-sbt#scripted-sbt;0.13.16: not found
[warn] :: org.scala-sbt#sbt-launch;0.13.16: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.scala-sbt:scripted-sbt:0.13.16 ((sbt.ScriptedPlugin) ScriptedPlugin.scala#L104)
[warn] +- default:play-scalajs-g8_2.10:0.1-SNAPSHOT
[warn] org.scala-sbt:sbt-launch:0.13.16 ((sbt.ScriptedPlugin) ScriptedPlugin.scala#L104)
[warn] +- default:play-scalajs-g8_2.10:0.1-SNAPSHOT
sbt.ResolveException: unresolved dependency: org.scala-sbt#scripted-sbt;0.13.16: not found
unresolved dependency: org.scala-sbt#sbt-launch;0.13.16: not found
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:191)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:168)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:133)
at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
at sbt.IvySbt$$anon$4.call(Ivy.scala:65)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
at sbt.IvySbt.withIvy(Ivy.scala:128)
at sbt.IvySbt.withIvy(Ivy.scala:125)
at sbt.IvySbt$Module.withModule(Ivy.scala:156)
at sbt.IvyActions$.updateEither(IvyActions.scala:168)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1541)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1537)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$121.apply(Defaults.scala:1572)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$121.apply(Defaults.scala:1570)
at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:37)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1575)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1569)
at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:60)
at sbt.Classpaths$.cachedUpdate(Defaults.scala:1592)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1519)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1471)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.ResolveException: unresolved dependency: org.scala-sbt#scripted-sbt;0.13.16: not found
[error] unresolved dependency: org.scala-sbt#sbt-launch;0.13.16: not found
[error] Total time: 0 s, completed 2018-03-22 11:40:53
Additional info
Ubuntu 16.04
javac 1.8.0_161
sbt version 0.13.16
How to solve this?
In many cases play is started without being packed to dist, just by play start command, it would be nice if play start initiated optimizeJS
To reproduce:
mv client/src/main/scala/example/ScalaJSExample.scala client/
(This is totally valid in sbt!)rm -r client/src/
sbt run
localhost:9000
. Looks good, right? FastOpJS runs fine.client/src
.Expected behavior: It should recompile the Scala.js code and show the new message.
Actual behavior: It shows the old message and doesn't bother to recompile.
First of all, I wanted to thank you by creating this project. Makes it really easy to get started with Play/Scala.js integreation. I can not believe it works so smoothly and changes are re-compiled automatically!
Now... to the issue. Unfortunately the "scalajvm" project is not generated, so that I can not import the Play part into Eclipse.
This is my output:
[play-example] $ eclipse
[info] About to create Eclipse project files for your project(s).
[info] Updating {file:/home/sen/projects/play-with-scalajs/}scalajs...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Successfully created Eclipse project files for project(s):
[info] scalajs-example
[info] shared-scala-example
Is this an issue because of the project definitions...?
Does it work for you?
When setting up according to the following:
Result: I get no code completion for dependencies in the scalajs project (it seems unaware of the scalajs-dom library, or the shared package).
This affects windows, too, after manually working around #8
unmanagedSourceDirectories in Compile <++= baseDirectory { base =>
Seq(
base / "server/target/scala-2.11/routes",
base / "server/target/scala-2.11/twirl"
)
}
> sbt eclipse
[info] Loading global plugins from /home/oniltonmaciel/.sbt/0.13/plugins/project
[info] Loading global plugins from /home/oniltonmaciel/.sbt/0.13/plugins
[info] Loading project definition from /home/oniltonmaciel/play-with-scalajs-example/project
java.lang.UnsupportedClassVersionError: play/runsupport/classloader/ApplicationClassLoaderProvider : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at play.sbt.run.PlayRun$.<init>(PlayRun.scala:35)
at play.sbt.run.PlayRun$.<clinit>(PlayRun.scala)
at play.sbt.PlaySettings$.defaultSettings$lzycompute(PlaySettings.scala:70)
at play.sbt.PlaySettings$.defaultSettings(PlaySettings.scala:47)
at play.sbt.Play$.projectSettings(Play.scala:26)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:664)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:664)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
at sbt.Load$.autoPluginSettings$1(Load.scala:664)
at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:679)
at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:680)
at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:680)
at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
at scala.collection.mutable.WrappedArray.foldLeft(WrappedArray.scala:34)
at scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:138)
at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:105)
at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:680)
at sbt.Load$.resolveProject(Load.scala:682)
at sbt.Load$.finalizeProject$1(Load.scala:549)
at sbt.Load$.discoverAndLoad$1(Load.scala:562)
at sbt.Load$.loadTransitive(Load.scala:570)
at sbt.Load$.loadTransitive(Load.scala:583)
at sbt.Load$.loadProjects$1(Load.scala:442)
at sbt.Load$.loadUnit(Load.scala:446)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
at sbt.BuildLoader.apply(BuildLoader.scala:140)
at sbt.Load$.loadAll(Load.scala:334)
at sbt.Load$.loadURI(Load.scala:289)
at sbt.Load$.load(Load.scala:285)
at sbt.Load$.load(Load.scala:276)
at sbt.Load$.apply(Load.scala:130)
at sbt.Load$.defaultLoad(Load.scala:36)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:98)
at sbt.MainLoop$.run(MainLoop.scala:91)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
at sbt.MainLoop$.runLogged(MainLoop.scala:24)
at sbt.StandardMain$.runManaged(Main.scala:53)
at sbt.xMain.run(Main.scala:28)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.UnsupportedClassVersionError: play/runsupport/classloader/ApplicationClassLoaderProvider : Unsupported major.minor version 52.0
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
Hi, would it be possible to update this template to recent versions of play, scala an sbt?
Hi,
I downloaded the project, compiled it in Activator UI and when I try to run it I hit the error below. I also tried to run the activator template and hit the same error.
(run-main-1) java.lang.ClassNotFoundException: example.ExampleJS
example.ExampleJS
Exception in thread "sbt-bg-threads-3" java.lang.RuntimeException: Nonzero exit code: 1
at scala.sys.package$.error(package.scala:27)
at sbt.BuildCommon$$anonfun$toError$1.apply(Defaults.scala:1938)
at sbt.BuildCommon$$anonfun$toError$1.apply(Defaults.scala:1938)
at scala.Option.foreach(Option.scala:236)
at sbt.BuildCommon$class.toError(Defaults.scala:1938)
at sbt.package$.toError(package.scala:4)
at sbt.plugins.BackgroundRun$$$$b4c18989468ecd5aa4b4422d7494c6$$$$onfun$apply$6.apply(BackgroundRunPlugin.scala:38)
at sbt.plugins.BackgroundRun$$$$b4c18989468ecd5aa4b4422d7494c6$$$$onfun$apply$6.apply(BackgroundRunPlugin.scala:37)
at sbt.BackgroundThreadPool$$anonfun$1.apply$mcV$sp(AbstractBackgroundJobService.scala:134)
at sbt.BackgroundThreadPool$BackgroundRunnable.run(AbstractBackgroundJobService.scala:68)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
It has really helped my get a handle on all the play / scalajs build process.
Right now this package seems like the best practice for integrating scalajs / play, and I plan on using it as the foundation for a project.
Do you know of any potential gotchas that I may encounter while dev'ing with this project setup?
A few small things I noticed while setting up the project in IntelliJ :
When I add the scalajs-jquery dependency for the client, like this:
lazy val client = (project in file("client")).settings(
scalaVersion := scalaV,
persistLauncher := true,
persistLauncher in Test := false,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.8.0",
"com.lihaoyi" %%% "upickle" % "0.3.6",
"be.doeraene" %%% "scalajs-jquery" % "0.8.0"
)
).enablePlugins(ScalaJSPlugin, ScalaJSPlay).
dependsOn(sharedJs)
When I load the Play page I get this exception:
! @6ng342o0l - Internal server error, for (GET) [/] ->
play.sbt.PlayExceptions$UnexpectedException: Unexpected exception[JSLibResolveException: Some references to JS libraries could not be resolved:
- Ambiguous reference to a JS library: jquery.js
Possible paths found on the classpath:
- scala/tools/nsc/doc/html/resource/lib/jquery.js
- META-INF/resources/webjars/jquery/2.1.3/jquery.js
originating from: root:compile
]
at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:51) ~[na:na]
at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library-2.11.7.jar:na]
at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44) ~[na:na]
at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40) ~[na:na]
at play.sbt.run.PlayReload$$anonfun$compile$2$$anonfun$apply$3.apply(PlayReload.scala:20) ~[na:na]
at play.sbt.run.PlayReload$$anonfun$compile$2$$anonfun$apply$3.apply(PlayReload.scala:20) ~[na:na]
at scala.util.Either$LeftProjection.map(Either.scala:377) ~[scala-library-2.11.7.jar:na]
at play.sbt.run.PlayReload$$anonfun$compile$2.apply(PlayReload.scala:20) ~[na:na]
at play.sbt.run.PlayReload$$anonfun$compile$2.apply(PlayReload.scala:18) ~[na:na]
Caused by: org.scalajs.core.tools.classpath.JSLibResolveException: Some references to JS libraries could not be resolved:
- Ambiguous reference to a JS library: jquery.js
Possible paths found on the classpath:
- scala/tools/nsc/doc/html/resource/lib/jquery.js
- META-INF/resources/webjars/jquery/2.1.3/jquery.js
originating from: root:compile
at org.scalajs.core.tools.classpath.PartialClasspath.resolveAllResourceNames(PartialClasspath.scala:137) ~[na:na]
at org.scalajs.core.tools.classpath.PartialClasspath.resolveDependencies(PartialClasspath.scala:80) ~[na:na]
at org.scalajs.core.tools.classpath.PartialClasspath.resolve(PartialClasspath.scala:64) ~[na:na]
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$16.apply(ScalaJSPluginInternal.scala:220) ~[na:na]
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$16.apply(ScalaJSPluginInternal.scala:217) ~[na:na]
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) ~[scala-library-2.11.7.jar:na]
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) ~[na:na]
at sbt.std.Transform$$anon$4.work(System.scala:63) ~[na:na]
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) ~[na:na]
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) ~[na:na]
Out-commenting the "webjars" dependency for the "server" does not solve the issue:
// "org.webjars" % "jquery" % "1.11.1",
This is probably not an issue with this setup itself, but due to my ignorance of how to deal with this problem.
When sbt-jshint plugin is added, jshint
task fails with the following error:
[info] Fast optimizing /home/guersam/study/play-with-scalajs-example/example-client/target/scala-2.11/exampleclient-fastopt.js
[info] JavaScript linting on 2 source(s)
[trace] Stack trace suppressed: run last exampleServer/web-assets:jshint for the full output.
[error] (exampleServer/web-assets:jshint) No mapping for /home/guersam/study/play-with-scalajs-example/example-client/target/scala-2.11/exampleclient-fastopt.js
[error] application -
! @6l7obo21d - Internal server error, for (GET) [/] ->
play.PlayExceptions$UnexpectedException: Unexpected exception[RuntimeException: No mapping for /home/guersam/study/play-with-scalajs-example/example-client/target/scala-2.11/exampleclient-fastopt.js]
at play.PlayReloader$$anon$1$$anonfun$play$PlayReloader$$anon$$taskFailureHandler$1.apply(PlayReloader.scala:237) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$play$PlayReloader$$anon$$taskFailureHandler$1.apply(PlayReloader.scala:230) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library-2.11.5.jar:na]
at play.PlayReloader$$anon$1.play$PlayReloader$$anon$$taskFailureHandler(PlayReloader.scala:230) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2.apply(PlayReloader.scala:90) ~[na:na]
Caused by: java.lang.RuntimeException: No mapping for /home/guersam/study/play-with-scalajs-example/example-client/target/scala-2.11/exampleclient-fastopt.js
at scala.sys.package$.error(package.scala:27) ~[scala-library-2.11.5.jar:na]
at sbt.Mapper$$anonfun$fail$1.apply(PathMapper.scala:37) ~[na:na]
at sbt.Mapper$$anonfun$fail$1.apply(PathMapper.scala:37) ~[na:na]
at sbt.Alternatives$$anon$1$$anonfun$$bar$1$$anonfun$apply$3.apply(PathMapper.scala:117) ~[na:na]
at sbt.Alternatives$$anon$1$$anonfun$$bar$1$$anonfun$apply$3.apply(PathMapper.scala:117) ~[na:na]
Although it's unusual to have jshint with scala-js, It's annoying when it happens.
Let me start by openly admitting that I have no idea what %%% exactly means, but I'm using it in another Scala.js-only project...
Now for this play-integration project I wanted to add the jQuery wrapper to the Scala.js dependencies like this in Build.scala
:
object Dependencies {
// [...other lines omitted...]
val scalajs = Seq(
"org.scala-lang.modules.scalajs" %%% "scalajs-jquery" % "0.6",
"org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test"
) ++ shared
}
But it results in an SBT error:
[error] /home/sen/projects/play-with-scalajs/project/Build.scala:107: `value` can only be used within a task or setting macro, such as :=, +=, ++=, Def.task, or Def.setting.
[error] "org.scala-lang.modules.scalajs" %%% "scalajs-jquery" % "0.6",
I figured out (by looking at the resolved dependency in the other project) that entering it like this works, but it strikes me as "hackish":
"org.scala-lang.modules.scalajs" % "scalajs-jquery_sjs0.5_2.10" % "0.6",
Is there a solution? Something I need to do differently?
Thanks in advance.
That would be great if this sample project had a few integration tests. That way it will be easier for people adopting Scalajs + Play + SBT combo.
There are some caveats (I believe because the way sbt-web
works: sbt/sbt-web#54). But it would be nice to mention the best workaround here.
Hi,
I'm very interested in this project, I've try to migrate to this kind of a project for my current Play app. The problem is, that slug size exceed 300 Mb. Did you face that kind of issues? May be I'm missing something?
! Compiled slug size: 618.8MB is too large (max is 300MB).
! See: http://devcenter.heroku.com/articles/slug-sizefailed
Hello,
right now I have existing project so I can not start from beginning. I was wondering if I could use this approach even for existing applications. I would go over all commits and read them, but it would be gibberish to me. This is my first project with Scala, Scala.js and Play!.
If it isn't much asking, would someone be interested in doing blog post/tutorial on how to add Scala.js to Play! project? I think that most of Play! developers would appreciate it, because who likes JavaScript, right? :-)
When I try installing the project from the command line by typing sbt new vmunier/play-scalajs.g8
, I get following error:
[error] java.io.IOException: Unable to delete file: D:\Users\xxxx\AppData\Local\Temp\giter8-12821319927662\src\main\g8.gitignore
I have confirmed the file exists and my user account has full access rights to it. I was able to delete it from the explorer without any issues.
The project seems to be create fine.
This is on Windows 10 x64 pro. I have git command line and TortoiseGit installed on my machine.
Creating a project with the template and running sbt test
gives me this:
[error] Error during tests:
[error] IntegrationSpec
[error] (Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 9 s, completed Apr 24, 2020, 7:44:52 PM
It would be great to have setup for Scala.js 0.6 ( maybe in dev branch as it is not stable yet)
I've used this example as a seed for new projects a few times now - I assume this is the intended purpose 🤐 .
Given that Lightbend's Activator is on the way out, in favour of sbt new
...
It would be great to make getting started with Play and Scala.js consistent with creating a plain Play Scala project, e.g. sbt new vmunier/play-with-scalajs-seed.g8
. It should be quite straightforward to change this repo into a giter8 template.
Thoughts?
When using the ~run
command, the newest version of the Scala.js output (client-fastopt.js
) doesn't always seem to be copied to the server target directory. I just tested with a fresh project created from this template, and after one or two successful compilation cycles triggered by client code changes, the changes won't propagate anymore.
Steps I took:
sbt new vmunier/play-scalajs.g8
commandsbt
and then ~run
ScalaJSExample.scala
, and reload the browserSbt output is as follows:
[server] $ ~run
[info] Updating {file:/home/karo/Projects/scalajs-demo/test-g8/}sharedJVM...
[info] Done updating.
[info] Updating {file:/home/karo/Projects/scalajs-demo/test-g8/}server...
[info] Done updating.
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * com.google.guava:guava:22.0 is selected over 19.0
[warn] +- com.typesafe.play:play_2.12:2.6.6 (depends on 22.0)
[warn] +- com.google.inject:guice:4.1.0 (depends on 19.0)
[warn] * com.typesafe.akka:akka-stream_2.12:2.5.4 is selected over 2.4.19
[warn] +- com.typesafe.play:play-streams_2.12:2.6.6 (depends on 2.5.4)
[warn] +- com.typesafe.akka:akka-http-core_2.12:10.0.10 (depends on 2.4.19)
[warn] * com.typesafe.akka:akka-actor_2.12:2.5.4 is selected over 2.4.19
[warn] +- com.typesafe.akka:akka-slf4j_2.12:2.5.4 (depends on 2.5.4)
[warn] +- com.typesafe.play:play_2.12:2.6.6 (depends on 2.5.4)
[warn] +- com.typesafe.akka:akka-stream_2.12:2.5.4 (depends on 2.5.4)
[warn] +- com.typesafe.akka:akka-parsing_2.12:10.0.10 (depends on 2.4.19)
[warn] Run 'evicted' to see detailed eviction warnings
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/shared/.jvm/target/scala-2.12/classes ...
[info] Done compiling.
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the console...)
[info] Updating {file:/home/karo/Projects/scalajs-demo/test-g8/}sharedJS...
[info] Done updating.
[info] Updating {file:/home/karo/Projects/scalajs-demo/test-g8/}client...
[info] Done updating.
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/shared/.js/target/scala-2.12/classes ...
[info] Done compiling.
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/classes ...
[info] Done compiling.
[info] Fast optimizing /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/client-fastopt.js
[info] Compiling 9 Scala sources and 2 Java sources to /home/karo/Projects/scalajs-demo/test-g8/server/target/scala-2.12/classes ...
[info] Done compiling.
[success] Compiled in 10s
[success] Compiled in 1s
[info] p.a.h.EnabledFilters - Enabled Filters (see <https://www.playframework.com/documentation/latest/Filters>):
play.filters.csrf.CSRFFilter
play.filters.headers.SecurityHeadersFilter
play.filters.hosts.AllowedHostsFilter
[info] play.api.Play - Application started (Dev)
[success] Compiled in 1s
[warn] p.a.m.DefaultJWTCookieDataCodec - decode: cookie has invalid signature! message = JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
[info] p.a.m.DefaultJWTCookieDataCodec - The JWT signature in the cookie does not match the locally computed signature with the server.
This usually indicates the browser has a leftover cookie from another Play application,
so clearing cookies may resolve this error message.
[warn] p.a.m.DefaultJWTCookieDataCodec - decode: cookie has invalid signature! message = JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
[info] p.a.m.DefaultJWTCookieDataCodec - The JWT signature in the cookie does not match the locally computed signature with the server.
This usually indicates the browser has a leftover cookie from another Play application,
so clearing cookies may resolve this error message.
[warn] p.a.m.DefaultJWTCookieDataCodec - decode: cookie has invalid signature! message = JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
[info] p.a.m.DefaultJWTCookieDataCodec - The JWT signature in the cookie does not match the locally computed signature with the server.
This usually indicates the browser has a leftover cookie from another Play application,
so clearing cookies may resolve this error message.
[success] Compiled in 1s
[success] Compiled in 962ms
[success] Compiled in 982ms
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/server/target/scala-2.12/classes ...
[info] Done compiling.
[success] Compiled in 1s
[success] Compiled in 2s
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/classes ...
[info] Done compiling.
[info] Fast optimizing /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/client-fastopt.js
[success] Compiled in 1s
[success] Compiled in 1s
--- (RELOAD) ---
[info] p.a.h.EnabledFilters - Enabled Filters (see <https://www.playframework.com/documentation/latest/Filters>):
play.filters.csrf.CSRFFilter
play.filters.headers.SecurityHeadersFilter
play.filters.hosts.AllowedHostsFilter
[info] play.api.Play - Application started (Dev)
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/classes ...
[info] Done compiling.
[info] Fast optimizing /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/client-fastopt.js
[success] Compiled in 1s
[info] Compiling 1 Scala source to /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/classes ...
[info] Done compiling.
[info] Fast optimizing /home/karo/Projects/scalajs-demo/test-g8/client/target/scala-2.12/client-fastopt.js
[success] Compiled in 1s
The changes I made were visible on the website only after the --- (RELOAD) ---
was printed in the sbt console. After I made further changes to the client code and saved the file, the Scala.js compilation cycle was triggered, but the Play server did not restart afterwards.
Looking at the timestamps of the files in the client and server target directories, I can see that the newest version of client-fastopt.js
was not copied to server/target/web/public/main:
$ ls -la client/target/scala-2.12/
total 176
drwxrwxr-x 4 karo karo 4096 Feb 19 15:14 ./
drwxrwxr-x 4 karo karo 4096 Feb 19 15:12 ../
drwxrwxr-x 3 karo karo 4096 Feb 19 15:12 classes/
-rw-rw-r-- 1 karo karo 93077 Feb 19 15:14 client-fastopt.js
-rw-rw-r-- 1 karo karo 68033 Feb 19 15:14 client-fastopt.js.map
-rw-rw-r-- 1 karo karo 0 Feb 19 15:12 client-jsdeps.js
drwxrwxr-x 4 karo karo 4096 Feb 19 15:12 resolution-cache/
ls -la server/target/web/public/main/
total 168
drwxrwxr-x 6 karo karo 4096 Feb 19 15:13 ./
drwxrwxr-x 3 karo karo 4096 Feb 19 15:13 ../
drwxrwxr-x 3 karo karo 4096 Feb 19 15:13 94e7c5554c9a1b15264a/
drwxrwxr-x 3 karo karo 4096 Feb 19 15:13 c2f52afe4563f336b2fb/
-rw-rw-r-- 1 karo karo 82153 Feb 19 15:13 client-fastopt.js
-rw-rw-r-- 1 karo karo 59750 Feb 19 15:13 client-fastopt.js.map
drwxrwxr-x 2 karo karo 4096 Feb 19 15:13 images/
drwxrwxr-x 2 karo karo 4096 Feb 19 15:13 stylesheets/
How could I debug this issue? I haven't changed anything in build.sbt.
Currently root folder 'scala' holds scala packages directly. It would be better to have more common structure in it, like:
src
-main
--java
--resources
--scala
-test
I add another scala.js object in the package client/src/main/scala/example named TutorialApp, and the following is the code :
object TutorialApp extends JSApp{
def main():Unit = {
//println("Hello Wrold!")
val parNode = dom.document.createElement("p")
val textNode = dom.document.createTextNode("some111")
parNode.appendChild(textNode)
dom.document.body.appendChild(parNode)
}
}
where I rerun the index page , it shows the error:
And what can I do to add more than one scala.js objects in one Twirl templates?
RuntimeException: Cannot write launcher file, since there is no or multiple mainClasses
No source available, here is the exception stack trace:
->java.lang.RuntimeException: Cannot write launcher file, since there is no or multiple mainClasses
scala.sys.package$.error(package.scala:27)
org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$31$$anonfun$apply$19$$anonfun$apply$22.apply(ScalaJSPluginInternal.scala:450)
org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$31$$anonfun$apply$19$$anonfun$apply$22.apply(ScalaJSPluginInternal.scala:450)
scala.Option.getOrElse(Option.scala:120)
org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$31$$anonfun$apply$19.apply(ScalaJSPluginInternal.scala:449)
org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$31$$anonfun$apply$19.apply(ScalaJSPluginInternal.scala:437)
scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
sbt.std.Transform$$anon$4.work(System.scala:63)
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
sbt.Execute.work(Execute.scala:237)
sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
Is it possible to include static assets (namely images), served from Play and referenced from Scala.js code? Tricky because—when, for example, using sbt-digest to fingerprint assets—the final asset name isn't known. Soliciting ideas or guidance here since reverse Assets
routes and AssetsFinder
can't be used and little on this topic turned up in my searches. (Reposted from ochrons/scalajs-spa-tutorial#65 to gather a larger audience.)
[server] $ open http://localhost:9000
[error] Expected ID character
[error] Not a valid command: open (similar: append, completions, loadp)
[error] Expected project ID
[error] Expected configuration
[error] Expected ':'
[error] Expected key
[error] Not a valid key: open (similar: compile, clean, ps)
[error] open http://localhost:9000
[error] ^
When setting up according to the following:
Result: The two workspaces appear, but they do not have source packages (the projects are just a collection of folders).
There are 4 errors in the workspace, two for each project:
Illegal entry in '.classpath' of project 'play-example' file: Path for IClasspathEntry must be absolute
Illegal entry in '.classpath' of project 'scalajs-example' file: Path for IClasspathEntry must be absolute
Unable to find a scala library. Please add the scala container or a scala library jar to the build path.
Unable to find a scala library. Please add the scala container or a scala library jar to the build path.
This seems to happen on windows in general (tested on two windows 7 machines), whether the clone was directly into the eclipse workspace or somewhere else on disk.
To at least "1.11.1"
The problem is that the version you are using does not include the ".map" file and one gets annoying error messages on the JavaScript console.
It's a tiny fix that probably does not justify a PR ;-)
I am getting following error, when trying to create new project from your template.
It is caused by $if(useScalaJS1x.truthy)$
in plugins.sbt
As a workaround, I forked this repository and removed the condition from the template, defaulting to ScalaJS 0.6.x, after which it works.
I am using Java 10.0.1
d:\Work\ygor>java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
d:\Work\ygor>sbt new vmunier/play-scalajs.g8
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Set current project to ygor (in build file:/D:/Work/ygor/)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
name [play-scalajs]:
useScalaJS1x [true]:
organization [com.example]:
package [com.example.playscalajs]:
Skipping existing file: .\play-scalajs\.gitignore
Skipping existing file: .\play-scalajs\build.sbt
Skipping existing file: .\play-scalajs\Procfile
Skipping existing file: .\play-scalajs\project\build.properties
Exiting due to error in the template
File: C:\Users\ygor\AppData\Local\Temp\giter8-71712291737399\src\main\g8\project\plugins.sbt, context [anonymous] 8:4 internal error: org.stringtemplate.v4.compiler.STException: context [anonymous] 8:4 no such property or can't access: java.lang.String.truthy
Caused by: org.stringtemplate.v4.misc.STNoSuchPropertyException: no such property: java.lang.String.truthy
I checked this project out from githhub and ran with sbt. It worked fine. I then ran gen-idea
to make an intellij project. The resulting project contains a module scalajs
and a module scalajvm
but no module for the directory scala
that contains the shared resources. Consequently, SharedMessages isn't recognised by the IDE, among other things.
I've no idea were the issue lies as sbt is a mystery to me.
I define a new Xyz controller, and add some actions, such as all / create / update / save and so on.
The GET route and samples is work.
However, when I try add an POST action, and add form in the views, the compiler does not recognize routes.XyzController.save?
@helper.form(action = routes.XyzController.save()) {
... ...
}
It show error: value XyzController is not a member of object controllers.routes
Can you advise the solution? Thanks.
This is firmly in the nice-to-have and I-could-probably-be-wrong department, but anyway, here we go:
I have found that I can omit enabling the ScalaJSPlugin in my Client projects:
.enablePlugins(ScalaJSWeb) // seems enough
// instead of: .enablePlugins(ScalaJSPlugin, ScalaJSWeb)
And also I haven't needed to add this configuration in the shared cross project:
.jsConfigure(_.enablePlugins(ScalaJSWeb))
In both cases, I understand that this could of course just be due to how I usually setup Play. But in case these two settings are actually not needed, it would be nice to simplify the g8 template.
I've been trying to use the sbt-native-packager
and failing to have any of the properties I set have any effect.
In particular, I want to set name in Universal
, packageSummary in Linux
, and, debianPackageDependencies in Debian
. I tried adding them to the commonSettings
, server settings, and the global settings but none of them seem to have any impact on the resulting .deb
.
I've post this question on SO.
I've got Intellij 15.0.5 and I cannot get rid of this error
object index is not a member of package views.
The project I'm trying to checkout is a scalajs play project. Importing this project into Intellij shows the above error. I've read all the other similar question on SO but none of them helped and I've tried the following
Right click the project -> Add framework support -> select "Play 2"
Result: I didn't see any change to my project. When I hit OK, the window disappears but if I try the same the second time. Nothing happens and the window is still there!
Preferences -> Languages & Frameworks -> Play2 -> select "Use Play 2 compiler for this project"
Result: I get this error
Error:Module 'client' production: java.lang.NullPointerException
I've tried
invalidate cache & restart
sbt clean
checkout a fresh new project
But I keep getting the same error in Intellij.
Running sbt compile on command line runs the build successful. But Intellij keeps shows me the above error.
How do I fix this ?
...
[info] Resolving org.scalaz#scalaz-core_2.11;7.1.1 ...
[info] Resolving org.scalaz#scalaz-concurrent_2.11;7.1.1 ...
[info] Resolving org.scalaz#scalaz-effect_2.11;7.1.1 ...
[info] Resolving org.scalaz.stream#scalaz-stream_2.11;0.7a ...
[info] Resolving org.scalaz.stream#scalaz-stream_2.11;0.7a ...
[warn] module not found: org.scalaz.stream#scalaz-stream_2.11;0.7a
[warn] ==== local: tried
[warn] C:\Users\Carl.ivy2\local\org.scalaz.stream\scalaz-stream_2.11\0
.7a\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/scalaz/stream/scalaz-stream_2.11/0.7
a/scalaz-stream_2.11-0.7a.pom
[info] Resolving org.specs2#specs2-junit_2.11;3.6 ...
[info] Resolving org.specs2#specs2-mock_2.11;3.6 ...
[info] Resolving org.mockito#mockito-core;1.9.5 ...
[info] Resolving org.objenesis#objenesis;1.0 ...
[info] Resolving junit#junit;4.11 ...
[info] Resolving com.typesafe.play#play-omnidoc_2.11;2.4.0 ...
[info] Resolving com.typesafe.play#play-docs_2.11;2.4.0 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.1 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.1 ..
.
[info] Resolving com.typesafe.play#play-doc_2.11;1.2.2 ...
[info] Resolving org.pegdown#pegdown;1.4.0 ...
[info] Resolving org.parboiled#parboiled-java;1.1.5 ...
[info] Resolving org.parboiled#parboiled-core;1.1.5 ...
[info] Resolving org.ow2.asm#asm;4.1 ...
[info] Resolving org.ow2.asm#asm-tree;4.1 ...
[info] Resolving org.ow2.asm#asm-analysis;4.1 ...
[info] Resolving org.ow2.asm#asm-util;4.1 ...
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scalaz.stream#scalaz-stream_2.11;0.7a: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.scalaz.stream:scalaz-stream_2.11:0.7a
[warn] +- org.specs2:specs2-common_2.11:3.6
[warn] +- org.specs2:specs2-matcher_2.11:3.6
[warn] +- org.specs2:specs2-core_2.11:3.6
[warn] +- org.specs2:specs2-mock_2.11:3.6
[warn] +- com.typesafe.play:play-specs2_2.11:2.4.0 (C:\dev\source\oth
er\play-with-scalajs-example-master\build.sbt#L10)
[warn] +- exampleserver:exampleserver_2.11:0.1-SNAPSHOT
[trace] Stack trace suppressed: run last exampleServer/*:update for the full out
put.
error sbt.ResolveException: unresolved dependency: or
g.scalaz.stream#scalaz-stream_2.11;0.7a: not found
[error] Total time: 3 s, completed 2015-jun-08 15:44:57
[exampleServer] $
Setting
onLoad in Global := (onLoad in Global).value.andThen(state => "project server" :: state)
// or
Global / onLoad := (Global / onLoad).value.andThen(state => "project server" :: state)
in the build file prevents sbt clean
from cleaning.
This bite me when I couldn't get rid of generated source files with a sbt clean compile
and it wasn't obvious that this was the culprit. Maybe loading the server can be done in another way? Or it would be nice to mention this issue in the Readme.
It took me a while to figure out the right way to get the js dependencies for a Play/Scalajs app.
I found that the client needed these lines in buid.sbt:
Compile / fastLinkJS / jsMappings += toPathMapping((Compile / packageJSDependencies).value),
Compile / fullLinkJS / jsMappings += toPathMapping((Compile / packageMinifiedJSDependencies).value),
I also changed findScript.scala.html:
@(assets: AssetsFinder, scripts: String*)
@scripts.find(name => getClass.getResource(s"/public/$name") != null).map { asset =>
<script [email protected](asset) type="text/javascript"></script>
}
which may not be necessary, and added this to main.scala.html:
@findScript(assets, "client-jsdeps.js", "client-jsdeps.min.js")
Without the above line, the js dependencies were not included.
It would be helpful to include this in the template.
For reference, the branch for the project I tested this with is here.
I have some nyaya Generators that I would like to use in both my server and client tests. They are in the shared tests folder. How can I make them accessible without duplicating them and without somehow packaging them into the final JS?
I've tried the command "sbt eclipse" to create a .project and i've imported it in Eclipse. It works but it ignores the whole Play app and the scalajvm folder. I don't really know how sbt works because i'm fairly new to scala but i suppose this is something that could be fixed by tinkering with the config files of the project. This would help a lot of newbies.
I cloned the repo and launched SBT and executed run command. I get the following dependency issue. My environment: IntelliJ 2016, OS X El Capitan, Java 7 (tried with Java8 too).
[error] (server/*:update) sbt.ResolveException: unresolved dependency: org.apache.commons#commons-exec;1.3: org.apache.commons#commons-parent;35!commons-parent.pom(pom.original) origin location must be absolute: file:/Users/username/.m2/repository/org/apache/commons/commons-parent/35/commons-parent-35.pom
Hi Vincent
First thanks for promoting usage of scala.js with Play framework
I tried this example with the new SBT 1.0.2 and scala 2.12.3 with the most recent scala-ide 4.7.0
I modified the version numbers in build.sbt and build.properties.
Apparently SBT 1.0.2 has issues with some commands as reported here:
build.sbt:35: error: value process is not a member of object sbt.Command
onLoad in Global := (Command.process("project server", _: State)) compose (onLoad in Global).value
Thanks
Please, update to play 2.3.x
Could you add a permissive license like MIT to the project?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.