FS#44062 - [scala] Missing Akka Library

Attached to Project: Community Packages
Opened by Mark Z (markz79) - Thursday, 05 March 2015, 22:21 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 21 June 2017, 11:36 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The current Scala package (scala 2.11.6-1) includes an old Actor implementation. The new one is Akka, which is now part of the standard library.


Steps to reproduce:
The following program fails to compile with "scalac" because the "akka.actor.Actor" object is not found.

import akka.actor.Actor
import akka.actor.ActorSystem
import akka.actor.Props

class HelloActor extends Actor {
def receive = {
case "hello" => println("hello back at you")
case _ => println("huh?")
}
}

object Main extends App {
val system = ActorSystem("HelloSystem")
// default Actor constructor
val helloActor = system.actorOf(Props[HelloActor], name = "helloactor")
helloActor ! "hello"
helloActor ! "buenos dias"
}
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 21 June 2017, 11:36 GMT
Reason for closing:  Won't implement
Comment by Mark Z (markz79) - Saturday, 07 March 2015, 00:46 GMT
I don't know if it'd be advisable to obtain the files from here: http://www.scala-lang.org/download/2.11.6.html. I checked scala-2.11.6.tgz at this URL and it does contain the Akka library.
Comment by Leif Warner (pdxleif) - Thursday, 16 March 2017, 03:03 GMT
Akka is a Scala library; it is available to add to your project like any other library.
For instance, you could add the dependency "com.typesafe.akka" %% "akka-actor" % "2.4.17" to your build.sbt as documented on http://doc.akka.io/docs/akka/current/intro/getting-started.html#Using_Akka_with_SBT
Comment by Sergej Pupykin (sergej) - Wednesday, 21 June 2017, 11:36 GMT
scala is built now using "sbt dist/mkPack packageSrc packageDoc". So I am closing it with "would not implement". If you know how to install akka using https://github.com/scala/scala/archive/v${pkgver}.tar.gz source tarball, please reopen it.

Loading...