org.scala-js#scalajs-dom_2.11;0.6.1: not found

636 views
Skip to first unread message

Gary Hewett

unread,
May 12, 2016, 4:06:33 PM5/12/16
to Scala.js
What is the process by which I go about solving this challenge? 

I have: 

resolvers += Resolver.url("bintray-sbt-plugin-releases", url("https://dl.bintray.com/content/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns) 

in plugins.sbt (In positions both before and after the Tyrpesafe slot)

(root project -- do I also need something in submodule perhaps?) 


My goal is client-server style ops. 

sbt.version=0.13.11

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.3") <== latest version of play -- cost me way too much to get here so not backing out :)

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.7")

addSbtPlugin("com.vmunier" % "sbt-play-scalajs" % "0.3.0")

Tried the blow away ~/.sbt/ trick also 

Figured deleting ~/.ivy2 and re-downloading the internet might not hurt either but sadly second verse same as the first...

[info] Resolving org.scala-js#scalajs-dom_2.11;0.6.1 ...

[warn] module not found: org.scala-js#scalajs-dom_2.11;0.6.1

[warn] ==== local: tried

[warn]   /Users/garyhewett/.ivy2/local/org.scala-js/scalajs-dom_2.11/0.6.1/ivys/ivy.xml

[warn] ==== public: tried

[warn]   https://repo1.maven.org/maven2/org/scala-js/scalajs-dom_2.11/0.6.1/scalajs-dom_2.11-0.6.1.pom

[warn] ==== activator-launcher-local: tried

[warn]   /Applications/TechanoUtil/activator-1.3.10-minimal/repository/org.scala-js/scalajs-dom_2.11/0.6.1/ivys/ivy.xml

[warn] ==== typesafe-releases: tried

[warn]   https://repo.typesafe.com/typesafe/releases/org/scala-js/scalajs-dom_2.11/0.6.1/scalajs-dom_2.11-0.6.1.pom

[warn] ==== typesafe-ivy-releasez: tried

[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.scala-js/scalajs-dom_2.11/0.6.1/ivys/ivy.xml

[warn] ==== scalaz-bintray: tried

[warn]   http://dl.bintray.com/scalaz/releases/org/scala-js/scalajs-dom_2.11/0.6.1/scalajs-dom_2.11-0.6.1.pom

[info] Resolving jline#jline;2.12.1 ...

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] ::          UNRESOLVED DEPENDENCIES         ::

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] :: org.scala-js#scalajs-dom_2.11;0.6.1: not found

[warn] ::::::::::::::::::::::::::::::::::::::::::::::


Justin du coeur

unread,
May 12, 2016, 4:17:32 PM5/12/16
to Gary Hewett, Scala.js
Hmm.  Can you post your build.sbt?  I suspect the problem is somewhere in there...

--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/6da3ca14-4ae1-4f25-a72d-6750dc36862a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gary Hewett

unread,
May 13, 2016, 9:14:22 AM5/13/16
to Scala.js, gary....@technical-magic.com
The core module (under modules/techano directory) 

Sorry for previous matrix Flashbacks -- I'll try to sanitize all code before I paste from now on :) 

import sbt.Project.projectToRef
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import NativePackagerKeys._

name := """Techano"""

version := "0.1-SNAPSHOT"

lazy val clients = Seq(client)
// lazy val scalaV = "2.10.6"
lazy val scalaV = "2.11.8"

lazy val techano = (project in file(".")).settings(
  scalaVersion := scalaV,
  libraryDependencies ++= Seq(
    "mysql" % "mysql-connector-java" % "5.1.38",
    jdbc,
    "com.typesafe.play" %% "anorm" % "2.5.0",
    "javax.mail" % "mail" % "1.5.0-b01",
    "org.apache.commons" % "commons-lang3" % "3.4",
    "org.jsoup" % "jsoup" % "1.8.3",
    "org.webjars" %% "webjars-play" % "2.4.0",
    "com.lihaoyi" %%% "upickle" % "0.3.4",
    "com.lihaoyi" %%% "scalatags" % "0.5.5",
    "com.vmunier" %% "play-scalajs-scripts" % "0.5.0",
    "org.scala-js" %%% "scalajs-dom" % "0.6.1",
    cache,
    filters,
    ws,
    specs2 % Test
  ),
  resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
).enablePlugins(PlayScala).
  aggregate(clients.map(projectToRef): _*).
  dependsOn(sharedJvm)

lazy val client = (project in file("public/javascripts")).settings(
  scalaVersion := scalaV,
  libraryDependencies ++= Seq(
    "org.scala-js" %%% "scalajs-dom" % "0.6.1",
    "com.lihaoyi" %%% "scalatags" % "0.5.5",
    "com.lihaoyi" %%% "scalarx" % "0.2.8",
    "com.lihaoyi" %%% "upickle" % "0.3.4"
  )
).enablePlugins(ScalaJSPlugin, ScalaJSPlay).
  dependsOn(sharedJs)

lazy val shared = (crossProject.crossType(CrossType.Pure) in file("tkscalajvmjs")).
  settings(
    unmanagedSourceDirectories in Compile += baseDirectory.value  / "public/javascripts",
    scalaVersion := scalaV
  ).
  jsConfigure(_ enablePlugins ScalaJSPlay)

lazy val sharedJvm = shared.jvm
lazy val sharedJs = shared.js

// ScalaJS settings?
persistLauncher in Compile := true
persistLauncher in Test := false

lazy val appJS = shared.js
lazy val appJVM = shared.jvm.settings(
  unmanagedResourceDirectories in Assets += (crossTarget in client).value,
  (resources in Compile) += (fastOptJS in (appJS, Compile)).value.data
)

// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator


and of course the top level project 

import sbt.Project.projectToRef
import org.scalajs.sbtplugin.ScalaJSPlugin

scalaJSUseRhino in Global := false

name := """TOPPROJECT"""

version := "0.1-SNAPSHOT"

// lazy val scalaV = "2.10.6"
lazy val scalaV = "2.11.8"

scalaVersion in ThisBuild := scalaV

lazy val techano = (project in file("modules/techano")).enablePlugins(PlayScala)

lazy val topproject = (project in file(".")).settings(
  scalaVersion := scalaV,
  libraryDependencies ++= Seq(
    "mysql" % "mysql-connector-java" % "5.1.38",
    jdbc,
    "com.typesafe.play" %% "anorm" % "2.5.0",
    "javax.mail" % "mail" % "1.5.0-b01",
    "org.apache.commons" % "commons-lang3" % "3.4",
    "org.jsoup" % "jsoup" % "1.8.3",
    "com.vmunier" %% "play-scalajs-scripts" % "0.5.0",
    "org.scala-js" %%% "scalajs-dom" % "0.9.0",
    cache,
    filters,
    ws,
    specs2 % Test
  )
).enablePlugins(PlayScala).
  aggregate(techano).
  dependsOn(techano).
  settings(aggregateReverseRoutes := Seq(techano))

// scalaVersion := "2.11.6"

// be sure to put dependencies into modules (build.sbt) files as well !!!!!

// addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")

resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"

// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator


Still getting this:
[info] Resolving org.scala-js#scalajs-dom_2.11;0.6.1 ...

[warn] module not found: org.scala-js#scalajs-dom_2.11;0.6.1

[warn] ==== local: tried

[warn]   /Users/garyhewett/.ivy2/local/org.scala-js/scalajs-dom_2.11/0.6.1/ivys/ivy.xml

[warn] ==== public: tried

[warn]   https://repo1.maven.org/maven2/org/scala-js/scalajs-dom_2.11/0.6.1/scalajs-dom_2.11-0.6.1.pom

[warn] ==== activator-launcher-local: tried

[warn]   /Applications/TechanoUtil/activator-1.3.10-minimal/repository/org.scala-js/scalajs-dom_2.11/0.6.1/ivys/ivy.xml

[warn] ==== typesafe-releases: tried

[warn]   https://repo.typesafe.com/typesafe/releases/org/scala-js/scalajs-dom_2.11/0.6.1/scalajs-dom_2.11-0.6.1.pom

[warn] ==== typesafe-ivy-releasez: tried

[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.scala-js/scalajs-dom_2.11/0.6.1/ivys/ivy.xml

[warn] ==== scalaz-bintray: tried

[warn]   http://dl.bintray.com/scalaz/releases/org/scala-js/scalajs-dom_2.11/0.6.1/scalajs-dom_2.11-0.6.1.pom

[info] Resolving jline#jline;2.12.1 ...

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] ::          UNRESOLVED DEPENDENCIES         ::

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] :: org.scala-js#scalajs-dom_2.11;0.6.1: not found

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn]



Part of the problem might be figuring out where (in top project OR submodule) each part of the ScalaJS equations fits...

Sébastien Doeraene

unread,
May 13, 2016, 9:17:25 AM5/13/16
to Gary Hewett, Scala.js
Hello,

On Fri, May 13, 2016 at 9:14 AM, Gary Hewett <gary....@technical-magic.com> wrote:
"org.scala-js" %%% "scalajs-dom" % "0.6.1"

That is bogus. There is no version 0.6.1 of scalajs-dom, so no wonder it can't resolve it. The correct dependency is


"org.scala-js" %%% "scalajs-dom" % "0.9.0"

Cheers,
Sébastien

Gary Hewett

unread,
May 13, 2016, 9:22:43 AM5/13/16
to Scala.js, gary....@technical-magic.com
Sorry that might have been me trying to troubleshoot this myself. 

I've moved EVERY reference (I have THREE) to the version exactly as indicated and yet similar error: 

[info] Resolving org.scala-js#scalajs-dom_2.11;0.9.0 ...

[warn]  module not found: org.scala-js#scalajs-dom_2.11;0.9.0

[warn] ==== local: tried

[warn]   /Users/garyhewett/.ivy2/local/org.scala-js/scalajs-dom_2.11/0.9.0/ivys/ivy.xml

[warn] ==== public: tried

[warn]   https://repo1.maven.org/maven2/org/scala-js/scalajs-dom_2.11/0.9.0/scalajs-dom_2.11-0.9.0.pom

[warn] ==== activator-launcher-local: tried

[warn]   /Applications/TechanoUtil/activator-1.3.10-minimal/repository/org.scala-js/scalajs-dom_2.11/0.9.0/ivys/ivy.xml

[warn] ==== typesafe-releases: tried

[warn]   https://repo.typesafe.com/typesafe/releases/org/scala-js/scalajs-dom_2.11/0.9.0/scalajs-dom_2.11-0.9.0.pom

[warn] ==== typesafe-ivy-releasez: tried

[warn]   https://repo.typesafe.com/typesafe/ivy-releases/org.scala-js/scalajs-dom_2.11/0.9.0/ivys/ivy.xml

[warn] ==== scalaz-bintray: tried

[warn]   http://dl.bintray.com/scalaz/releases/org/scala-js/scalajs-dom_2.11/0.9.0/scalajs-dom_2.11-0.9.0.pom


[info] Resolving jline#jline;2.12.1 ...

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

[warn]  ::          UNRESOLVED DEPENDENCIES         ::

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

[warn]  :: org.scala-js#scalajs-dom_2.11;0.9.0: not found

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

Gary Hewett

unread,
May 13, 2016, 9:25:37 AM5/13/16
to Scala.js, gary....@technical-magic.com
Can we confirm these entries in plugins.st as also being correct (or not) 

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.7")

addSbtPlugin("com.vmunier" % "sbt-play-scalajs" % "0.3.0")

If someone could point me to how I self-serve vetting "correct" versions that would be awesome. I hate bothering anyone needlessly if things could otherwise be handled by a proper sequence of diagnostics,

Sébastien Doeraene

unread,
May 13, 2016, 9:26:10 AM5/13/16
to Gary Hewett, Scala.js
Hello,

The "techano" project is a JVM project and you're trying to depend on scalajs-dom in it. That can't work, as scalajs-dom is Scala.js-only.

Sébastien

--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.

Gary Hewett

unread,
May 13, 2016, 9:42:08 AM5/13/16
to Scala.js, gary....@technical-magic.com
Fair enough. 

Unsure exactly how to translate that into what a "fix" might look like. 

I have a CORE (resuable) submodule (in both the github and SBT sense of the word submodule) that will be used in many projects. 

I want that core to have some ScalaJS functionality. 

I understand that we have:
  • Normal Code ( I call techano - in build.sbt of submodule )
  • ScalaJS Code ( I call client - in build.st obt submodule )  
  • Shared Code ( I call shared - in build.sbt of submodule )
In the top project I have 
  • techano 
  • "client code" (called topptoject in build.sbt samples above) which looks like it depends upon techano and not client nor shared but I might be missing something. 
Are you telling me: 
  1. I need to somehow tell topproject something different?
    1. If so then what... 
  2. I need to make toppropject a ScajaJS project as well 
    1. Trying to avoid duplication of effort as I see no need for anything JS outside the core library but if that is what needed then that is what is needed.
  3. This simply can't be done
  4. Something else entirely that I've somehow missed 
Again sorry for being so dense. 

Gary Hewett

unread,
May 13, 2016, 9:47:09 AM5/13/16
to Scala.js, gary....@technical-magic.com
I think I figure it out. 

I dropped these lines from the import in topproject and at lest I get something that tries to compile now with no import failures. 

//    "com.vmunier" %% "play-scalajs-scripts" % "0.5.0",
//    "org.scala-js" %%% "scalajs-dom" % "0.9.0",


Now (apparently) I'm frying other fish next... I start a new thread for those issues if I can't self-resolve. 
Reply all
Reply to author
Forward
0 new messages