Fail to import actors

Intellij:13.1.5 community
Scala plugin:0.41.2 (as recommended)
java sdk:1.8.0_20

newly installed, standard setup, nothing advanced changed.

here is the problem.
I try to import scala.actors.Actor, but the ide just give me a red flag and said cannot resolve symbol actors.

I thought the actors package is a built-in.
can anybody tell me what's wrong?

Is there a fix? THX for help! It drives me crazy!

3 comments
Comment actions Permalink

Scala actors were deprecated and moved out from the scala-libaray starting from some Scala version (probably 2.10).
So actors package is not built-in. You need to import them, see examples here: http://mvnrepository.com/artifact/org.scala-lang/scala-actors

Best regards,
Alexander Podkhalyuizn.

0
Comment actions Permalink

thx for your reply.

I noticed that too, so I use akka.actor instead.

but build.sbt file has some problem. red flag is everywhere, it seems like the sbt is not installed properly.

so I have 2 follow-up questions.
1.how to import a sbt project? should I choose "Create project from existing sources" or "Import project from external modal" and choose "SBT project"?
2.is there a tutorial for setup SBT with intellij idea properly?

looking forward to your reply!
thx again!

0
Comment actions Permalink

Right option is File -> Import Project...
Then choose dir, SBT and so on.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.