Skip to content

Instantly share code, notes, and snippets.

@propensive

propensive/errors.txt Secret

Created Jan 8, 2014
Embed
What would you like to do?
Some of the error messages when compiling with scalac, which don't occur when compiling with Zinc (compilation just works). scalac -cp $(ls lib/* | tr '\n' : ) -d bin src/* vs zinc -cp $(ls lib/* | tr '\n' : ) -d bin src/* This is commercial code, so I've removed some package names, and snipped a few of the less relevant errors, but made no mate…
src/accounts.scala:222: error: type mismatch;
found : Class[AccountManagement.this.AccountManager](classOf[AccountManagement$AccountManager])
required: () => akka.actor.Actor
val ActualAccountManager = system.actorOf(Props(classOf[AccountManager], this), name = "accountman")
^
src/admin.scala:357: error: type mismatch;
found : akka.actor.ActorPath
required: String
val a = system.actorSelection(RootActorPath(m.address) / "user" / "accountman")
^
src/admin.scala:513: error: type mismatch;
found : Any
required: MerchantInfo
val f = Forms.editMerchant(mi, r)
^
src/ids.scala:29: error: type mismatch;
found : Class[IdManager](classOf[IdManager])
required: () => akka.actor.Actor
singletonProps = ((handover: Option[Any]) => Props(classOf[IdManager], 1)),
^
src/ids.scala:65: error: type mismatch;
found : scala.slick.lifted.Shape[scala.slick.lifted.Column[Nothing],Nothing,scala.slick.lifted.Column[Nothing]]
required: scala.slick.lifted.Shape[Nothing,T,scala.slick.lifted.Column[Nothing]]
Note: Nothing <: T, but class Shape is invariant in type Unpacked_.
You may wish to investigate a wildcard type such as `_ <: T`. (SLS 3.2.10)
Query(DbMerchants.map(_.id).max).first.getOrElse(0)
^
src/ids.scala:98: error: type mismatch;
found : akka.actor.ActorPath
required: String
context.actorSelection(RootActorPath(m.address) / "user" / "accountman") ! InitializeSystem(username.get, password.get, version.get)
^
src/ids.scala:165: error: type mismatch;
found : akka.actor.ActorPath
required: String
context.actorSelection(RootActorPath(m.address) / "user" / "singleton" / "idmanager")
^
[...]
src/parsers.scala:8: error: recursive value x$2 needs type
val List(a, b, c) = s.split("/").toList.map(_.toInt)
^
src/parsers.scala:13: error: recursive value x$4 needs type
val List(a, b, c) = s.split(",").toList.map(_.toDouble)
^
src/parsers.scala:21: error: recursive value x$6 needs type
val List(a, b) = s.split("/").toList.map(_.toInt)
^
[...]
src/phone.scala:92: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:107: error: not found: value deviceId
Ref(session) <- AccountManager ? GetSession(deviceId)
^
src/phone.scala:118: error: not found: value deviceId
Ref(session) <- AccountManager ? GetSession(deviceId)
^
src/phone.scala:134: error: not found: value deviceId
Ref(session) <- AccountManager ? GetSession(deviceId)
^
src/phone.scala:155: error: not found: value deviceId
Ref(session) <- AccountManager ? GetSession(deviceId)
^
src/phone.scala:166: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:183: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:198: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:211: error: not found: value deviceId
Ref(session) <- AccountManager ? GetSession(deviceId)
^
src/phone.scala:230: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:245: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:259: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:273: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:285: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:298: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:312: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
src/phone.scala:328: error: not found: value accountId
Ref(account) <- AccountManager ? GetAccount(accountId)
^
35 errors found
@retronym

This comment has been minimized.

Copy link

@retronym retronym commented Jan 8, 2014

To whittle this down:

  • enable debug logging in zinc/sbt (https://github.com/typesafehub/zinc#logging). From this you should see the batches of sources files.
  • replay the same batches of source files through command line scalac (add bin to the classpath so the later batches see the classes from earlier batches)
@retronym

This comment has been minimized.

Copy link

@retronym retronym commented Jan 8, 2014

Or, obtain a developer support contract from my employer and get me to do this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment