Import scala plugin project as intellij project

Are there any instructions for importing the scala plugin project code as an intellij project. I just tried via a brain dead new project from existing sources, however I have several errors in the code that I believe relate to the module settings. For instance in ScalaCompiler I have an error at line 61:

Incompatible types.
Required: Option <org.jetbrains.plugins.scala.config.ScalaFacet>
Found: Option <org.jetbrains.plugins.scala.config.ScalaFacet>

A similar error is found several times in ScalacBackendCompiler. Figure I must be doing something wrong.

Also, is it possible to run two versions of IDEA at the same time? I'd like to stick to my current version for development but also have an EAP around for plugin development, but I haven't found any way to do that...

5 comments
Comment actions Permalink

The Scala plugin code already contains IntelliJ IDEA project files, there is no need to import anything.

Every build of IntelliJ IDEA is installed to a separate directory by default. You can edit bin\idea.properties to specify different config and system directories for different installations.

0
Comment actions Permalink

Ah I'm an idiot. I started from scratch using File -> Open Project and I am still getting the error I described.

I also had to add a dependency to the module for my IntelliJ /lib directory. Which leads me to believe I am doing something wrong still...

0
Comment actions Permalink

You need to create an IntelliJ IDEA plugin SDK pointing to an installation of IntelliJ IDEA 11.1 and make sure it is selected as an SDK for the project.

0
Comment actions Permalink

Ah, I think I have it all working now, except I can't run both versions of intellij at the same time. Also, I don't have an idea.properties file in my /bin directory for either installs. I'm on OSX if it makes a difference.

0
Comment actions Permalink

Under Mac OS X, the paths are specifed in Info.plist

0

Please sign in to leave a comment.