14

I'm using the Scala plugin for IDEA and normally, it works (almost) perfectly.

However, it seems to have problem with the import statements for the Play framework: I often get the error "Cannot resolve symbol x". Now that doesn't stop the program from working, but it makes autocompletion completely useless.

Example: import org.scalatest.junit._

I already added /opt/play/framework/src and /opt/play/framework/play-1.2.2RC2.jar to classes and sources of my project. (using "Project Structure")

Any ideas on how to solve this? Or is this simply a bug?

(I am using Scala 2.9.0.1, IDEA 10.5 and Scala Plugin 0.4.1084)

Mononofu
  • 902
  • 7
  • 15

1 Answers1

6

Try to add tmp/generated to your sources as well. Eclipse also has this issue, since the Play Framework generate the source files from the templates. See Errors in Eclipse for Scala project generated by Play Framework.

Community
  • 1
  • 1
Jonas
  • 121,568
  • 97
  • 310
  • 388
  • I did that, but I still get the same errors. Do I need to do anything else? – Mononofu Jun 29 '11 at 19:34
  • 6
    ok, I found out how to fix it: I needed to add “scala-library” to my. module dependencies: http://blog.jetbrains.com/scala/2010/09/02/project-configuration-explained/ – Mononofu Jul 01 '11 at 09:41