Getting Started with Play 2.0 in IntelliJ IDEA 12

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!

Comments below can no longer be edited.

49 Responses to Getting Started with Play 2.0 in IntelliJ IDEA 12

  1. Avatar

    John says:

    December 13, 2012

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

  2. Avatar

    Maggie Leber says:

    December 13, 2012

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

  3. Avatar

    Kevin says:

    December 13, 2012

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

  4. Avatar

    AntonKulaga says:

    December 14, 2012

    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. Avatar

    Jon says:

    December 16, 2012

    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. Avatar

    stefan says:

    December 18, 2012

    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. Avatar

    stefan says:

    December 18, 2012

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

  8. Avatar

    Andrey Cheptsov says:

    December 19, 2012

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

  9. Avatar

    Lev says:

    December 26, 2012

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

  10. Avatar

    Andrey Cheptsov says:

    December 27, 2012

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

  11. Avatar

    Lev says:

    December 27, 2012

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

  12. Avatar

    Egor says:

    December 28, 2012

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

  13. Avatar

    Lev says:

    January 13, 2013

    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. Avatar

    tim says:

    January 16, 2013

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

  15. Avatar

    Lev says:

    January 24, 2013

    Is it possible to debug play 2 apps with IDEA?

  16. Avatar

    Mike says:

    February 6, 2013


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


  17. Avatar

    Lesly says:

    February 11, 2013

    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. Avatar

    Andrey says:

    February 12, 2013

    @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. Avatar

    Brian says:

    February 26, 2013

    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. Avatar

    Andrey Cheptsov says:

    February 26, 2013

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

  21. Avatar

    Adel says:

    February 28, 2013

    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. Avatar

    Adel says:

    February 28, 2013

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

  23. Avatar

    Adel says:

    February 28, 2013

    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. Avatar

    Adel says:

    February 28, 2013

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

  25. Avatar

    GJ says:

    March 1, 2013

    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. Avatar

    Andrey Cheptsov says:

    March 1, 2013

    @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. Avatar

    Adel says:

    March 1, 2013

    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. Avatar

    GJ says:

    March 1, 2013

    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. Avatar

    Pete says:

    March 11, 2013

    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. Avatar

    Adam says:

    March 22, 2013

    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. Avatar

    Brian says:

    March 25, 2013

    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. Avatar

    jelmer says:

    March 27, 2013

    I deleted

    ~/Library/Application Support/IntelliJIdea12/

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

  33. Avatar

    Dmitry says:

    April 15, 2013

    Did you try 12.1? It should be fixed there

  34. Avatar

    Andres says:

    June 2, 2013

    +1 for dependency management problems. I add a dependency to the ApplicationBuild project. Play2 is happy but Intellij does not update the module libraries leaving a trail of red underlines in its wake. What am I supposed to do?

  35. Avatar

    Sergei says:

    June 25, 2013

    Is Play 2.0 plugin available in Community Edition?

  36. Avatar

    Erik says:

    July 11, 2013

    New Play 2 Module,
    Make ->

    object index is not a member of package views.html
    Ok(views.html.index(“Your new application is ready.”))

    in Application.scala

    Installed the Play 2 framework plugin from the repository as I had no “Play 2” option in the project wizard from start.

    Other than that this should pretty much be the bare bone, clean install test.

    Using Play 2.1.2 and Scala 2.10.0, IntelliJ 12.1.4

    I’m at loss. Like others I heard about the great play support in IntelliJ and wanted to try it out, looks like I’m back to vim.

  37. Avatar

    Andrey Cheptsov says:

    July 11, 2013

    @Erik, which version of Play 2 plugin did you try?

  38. Avatar

    John says:

    July 13, 2013

    Erik, I had the same problem. I noticed that target/scala-2.10/src_managed/main was in the excluded folders list in the project settings->modules->sources tab. I removed it from excluded list and added it as a source folder. Once these managed source files (which play auto generates) were added, the project compiled and ran fine for me. Good luck…

  39. Avatar

    John says:

    July 13, 2013

    Hold that – I don’t know how to get it to generate code for new views. In trying to figure it out, I removed the dozens of SBT-…jar libraries which were created by the new project wizard (thinking my dependency list should look like the tutorial), but now I can’t figure out how to add them back. Isn’t there a proper facet for play support? or is there just the initial library setup for a scala module?
    It would be nice if I just added (or it autodetected) a facet for play where I could generate the library dependencies – and if a project build would generate the managed code.
    I’ll try to work around it until 13…(IntelliJ editor and build/run from a shell)…

  40. Avatar

    John says:

    July 13, 2013

    Ignore my comments – I updated the plugin to the latest nightly build, deleted the .idea and .idea_modules, recreated them with play idea (from the terminal/shell), had to fix up the generated scala libraries in the dependencies in IntelliJ, and it seems to be working great. My project has two modules now – one which builds the app directory, and one (with a -build suffix) which is building the generated code. seems to be working fine.
    Forgive the inexperience, just starting to learn play – as well as the play support in 12.

  41. Avatar

    Ivan says:

    July 14, 2013

    I have the same issue as Erik said. I’ve just invoked “Make Project” and got the error:
    object index is not a member of package views.html
    Ok(views.html.index(“Your new application is ready.”))
    Using Idea – IU-129.549, Play – 2.1.1, Scala 2.10.0

  42. Avatar

    mamatucci says:

    July 22, 2013

    to fix
    Ok(views.html.index(”Your new application is ready.”))

    >go in the folder where IJ created the sample app that fails to ocmpile
    >go in the folder structure and delete all the file
    >create a new one with same name
    ex play new myApp
    > reopen IJ (it will reopen th solutiona dn it will works)

    // if not working intall the latets play 2.1.2…

  43. Avatar

    Gergely says:

    September 9, 2013

    Hi folks.

    For anybody who might be interested in a solution for not being able to create a project or open one for that matter with IntelliJ UI 12.1.4 here is a SOLUTION =>
    ( At least a possible one… 😉 )
    For me the solution was that I let intelliJ download and install PlayFramework 2.1. After this I was able to switch to my downloaded version.
    So when you create a project on the right side there is a Download button. You can select from there the play version you want to install. Select 2.1 and create the project.

    After this I was able to manipulate the version of play to that of the one that I downloaded manually.

    I hope this helped somebody at least one person that it was worth it. 🙂


  44. Avatar

    San_Krish says:

    September 12, 2013

    i couldnt find the play support in the repositories .. please help me out with the issue
    thankx in advance

  45. Avatar

    Jana says:

    December 24, 2013

    How I install the plugin?
    I have already installed the plugin, its shows error that “plugin for intellij unltimate”

    Plz help me quick

  46. Avatar

    gustavo hidalgo says:

    September 25, 2014

    Nice! Thanks for tutorial!

  47. Avatar

    Danny F says:

    July 20, 2015

    It’s now 2015, so this post is a few years old. It seems that the Play plugin is now consolidated with the Scala plugin. I’ll be checking out that tutorial; maybe that’s been updated to something more recent! Found this by looking for “how to run play project intellij”.

Discover more