Create New Project error: Error adding module to project: java.lang.NoSuchMethodError

Hi,

I'm evaluating IntellijIDEA as an IDE for Scala-based development, especially web applications with the Play 2.1 framework. I had no joy with IntellijIDEA 12 Ultimate, so downloaded Leda-IU-128.101, after reading the Play 2.1 plugin is for 12.1.

I have the following setup;
Mac OS X 10.8

Leda-IU-128.101
Scala plugin  0.7.168
Play 2.0 Support plugin  0.2.26
Playframework Support plugin
Project SDK: 1.6 (java version "1.6.0_43")
Play 2.1.0
Scala 2.10.0



I do the following;

Open IntelliJ IDEA 12.1 Ultimate EAP
Select "Create New Project", and select "Play 2 Module"
I define a project name, and the filepath for 'Play 2 Home'
Click Finish
Alert says "Directory Does Not Exist", and I click "OK"

I get an alert window saying;

Error
Error adding module to project: java.lang.NoSuchMethodError: com.intellij.tools.Tool.execute(Lcom/intellij/openapi/actionSystem/AnActionEvent;Lcom/intellij/openapi/actionSystem/DataContext;J)V

The "Creating Play 2 Module" progress bar window stays open indefinitely unless I click Cancel.

How do I setup IntellijIDEA (whether 12, or an EAP 12.1 version), so I can create and work on Play 2.1.0 projects using Scala 2.10.0 ?

Andrew
3 comments

Same problem in 12.1 build 129.60

(I just this minute plunked down the $199.00 for the ultimate version in order to more easily create Play projects (I switched to the Community Edtion the day that became available, for years before that I always had a license.   I tried the sample and hit this right away. funny.)



0

Sorry to hear you got the error too, but in a way, very pleased there's another voice here with it - as maybe we will get a response from JetBrains now. I've waited over a week. If I find the cause/solution myself, I'll post it here, and would be grateful if you'd do the same.

0

I just returned to the work after cold.
Looks like NoSuchMethodErrors means incompatibilty between IDEA platform and released plugin. So workaround for you is to downgrade IDEA to some compatible one (don't know which one to use, but I'm sure that it's ok to use IDEA version, which was the last EAP version on plugin release date), however we will update compatible version in a few days. Sorry for inconveniences.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.