Getting Started with Play 2.0 in IntelliJ IDEA 12

December 13th, 2012 by Andrey Cheptsov

As you know the new release of IntelliJ IDEA finally comes with support for Play 2.0, a popular Java and Scala framework for web development.

The support brings new project wizard, run/debug configurations and code assistance for Scala templates and routes, with code completion, navigation and on-the-fly code analysis.


Now you don’t need to switch between IntelliJ IDEA and Play console anymore. Everything is available right from your favorite IDE.

To enable support for Play 2.0, you need to install the plug-in from the repository.

Check also a quick tutorial showing how to create and run a simple Play 2.0 application from IntelliJ IDEA.

As always very welcome with suggestions and feedback on the discussion forum and in our issue tracker.

Develop with Pleasure!

Tags: , , ,

33 Responses to “Getting Started with Play 2.0 in IntelliJ IDEA 12”

  1. John Says:

    Nice!! Was trying to figure out this integration last night. Very timely. Thanks.

  2. Maggie Leber Says:

    And here I’ve been bumping along without the 2.0 plugin. Good tip…

  3. Kevin Says:

    Help me, Play 2.0 plugin does not show up in the repository on intelliJ here?

  4. AntonKulaga Says:

    Play framework plugin does not work. I’ve installed it together with another playframework plugin but I do not see any play console in tools and there is no highlightning in the templates of my idea play projects.

  5. Jon Says:

    Dealing with dependencies within Intellij with Play projects is a bit of a nightmare. is there any help for this? When I add a new dependency, it seems as though I have to do all the work to add it, and all the dependent libraries to the project. Is that the case?

  6. stefan Says:

    I’ve tried for several hours to setup intelliJ with a play app but failed.
    I receive numerous errors, no template code highlighting, etc. I am uncertain as to what the actual problem is. Is there a good step-by-step tutorial on how to setup IntelliJ for Play! apps? The one on the play homepage didn’t help.

  7. stefan Says:

    Sample errors:
    Cannot resolve method ‘ok(?)’
    Cannot resolve symbol ‘index’

  8. Andrey Cheptsov Says:

    @stefan Actually a link to the tutorial is attached to the blog entry: http://confluence.jetbrains.com/display/IntelliJIDEA/Play+Framework+2.0

  9. Lev Says:

    Where can I find Play console in IDEA for Play 2 framework?

  10. Andrey Cheptsov Says:

    @Lev, it is supposed that you don’t need it anymore, and the IDE provides what you need (e.g. run, compile, etc).

  11. Lev Says:

    Is there a way to generate ER diagram of Play 2 model?

  12. Egor Says:

    Play 2.0 plugin does not show up in the repository on intelliJ. Why?

  13. Lev Says:

    How to debug Play 2.0 application with IDEA 12?

    When I run “Debug” command it acts the same way as “Run” starting Play on a usual port, but not on Debug Port.

  14. tim Says:

    Same issue here, play2 runner does not start the debug port…

  15. Lev Says:

    Is it possible to debug play 2 apps with IDEA?

  16. Mike Says:

    Hi.

    Actually it seems not to work with Play 2.1, but will it soon ?

    Thanks.

  17. Lesly Says:

    I am having the same problem as @Egor: Play 2.0 plugin does not show up in the repository on intelliJ. Please respond to us.

  18. Andrey Says:

    @Egor and @Lesly

    One of the reasons why Play 2.0 plug-in will not show-up in the repository is the edition of IntellJ IDEA you are running. It is supported in Ultimate edition only.

  19. Brian Says:

    I am student planning to apply for an Academic license for IntelliJ idea. Will this verison include support for the Play framework as that is what I need IntelliJ for?

  20. Andrey Cheptsov Says:

    @Brian, sure. It will include everything what is available in IntelliJ IDEA Ultimate.

  21. Adel Says:

    I am having a problem when I attempt to create a new Play framework project. I am evaluating IDEA 12. When I attempt to create a new Play project I do not see it as an option.

  22. Adel Says:

    Relating to my previous question: I am using IDEA 12 Ultimate

  23. Adel Says:

    I also installed IDEA 12.1 EAP Ultimate to try to create Play framework projects with no success.. I dont even see it as an option…Also, when I try to use “Add Framework support” to an existing Play! project, the play framework is not even listed…

  24. Adel Says:

    Additional info relating to my posts above: I am using Mac OSX Lion

  25. GJ Says:

    Yep, play support seems to be broken. Using play framework 2.1 and IntelliJ build 123.169. Currently evaluating Ultimate Edition and will not be able to purchase license until I can evaluate play support. Hopefully JetBrains can update us as to when it will be fixed.

  26. Andrey Cheptsov Says:

    @GJ Says: Have just checked Play support on 128.18 and everything works smoothly for me. Could you please add more details to the ticket, or try to double check if you have updated the plugin.

  27. Adel Says:

    Additional info relating to previous comments: I am also using play 2.1…
    I also tried uninstall and reinstall of IDEA 12 Ultimate (and EAP) no success with Play support…I also tried to update the Play support plugin by downloading it and installing it via “Downloaded Plugins” feature..with no success either…So I am going to hold off recommending IDEA 12 Ultimate for my company.

  28. GJ Says:

    Hi, just installed latest version from website. Chose all default settings when installing. Checked plugins screen to ensure Playframework was checked. When I select New Project I am presented with the list of project types but Play is not listed. If I open an existing play project I don’t get any of the play features.

    Running Windows 7 64bit

  29. Pete Says:

    Same with me as with last couple of posters. I am on latest 12.0.4 Ultimate and trying to create/import Play 2.1.0 with no luck. Create new project shows no Play module and when trying to import existing Play project ( which has been morphed into Idea project with stb) gives me message no frameworks were detected. Hope this is going to get fixed asap.

  30. Adam Says:

    I have the same problem - no Play Module available in Create New Project. Play 2.1.0 and Ultimate 12.0.4 (evaluation). I can’t buy unless this is fixed. Any news on a solution?

  31. Brian Says:

    I have the same problem, no Play module shows in Create New Project. I bought IntelliJ purely for its Play support so this is a critical issue for me. What is the latest information on this problem?

  32. jelmer Says:

    I deleted

    ~/Library/Application\ Support/IntelliJIdea12/
    ~/Library/Caches/IntelliJIdea12/

    that solved it for me. Probably some other plugin that is causing a conflict

  33. Dmitry Says:

    Did you try 12.1? It should be fixed there

Leave a Reply