Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play! 2.0 console in Intellij IDEA won't work

I asked this question yesterday, but it was marked as duplicate. So please read my question to the end, don't mark it as duplicate again!

Link to original question.

Original question:

I setup new Play 2.0 Framework project using Intellj IDEA. But I can't find how to run Play!'s command-line utility in Intellij IDEA. From tutorials I learn it must be accessible from Tools | Play with Playframework.

But I missed this context menu:

enter image description here

Where can my problem be?

Some additional info:

  • I setup a new project using Intellij IDEA wizard.
  • I'm able to run the application from Intellij IDEA using the Run command and see the result in the browser.
  • I'm using Intellij Idea 12.1.1
  • To be able to create new project from IDEA I installed all additional plugins (Play 2.0 plugin, Scala plugin)

P.S. An answer to my previous question suggested I Add framework support. But I don't see the Play2.0 facet in the list.

like image 768
WelcomeTo Avatar asked Apr 15 '13 17:04

WelcomeTo


People also ask

How do I enable console in IntelliJ?

Create a query consoleClick a data source and select File | New | Query Console. Right-click a data source and select New | Query Console. Click a data source, press Alt+Insert , and select Query Console. Click a data source, press Ctrl+Shift+F10 , and select New Query Console.

Does IntelliJ have a console?

Console tab The tab displays: Version control-related commands generated based on the settings you specify through the IntelliJ IDEA interface. The results of executing version control-related commands.

How do I view output in IntelliJ?

Run tool window The Run tool window displays output generated by your application. If you are running multiple applications, each one is displayed in a tab named after the run/debug configuration applied. If you re-run an application, the new output overwrites the contents of the tab.


1 Answers

Apparently Play with Playframework was an option available for first release of plugin for Play 1.x (I'm guessing after reading the docs, I have no such option enabled, although I have all required plugins working for Play 2 in Idea 12).

Actually you don't need to use Intelli's kickstarter for creating Play projects anymore, all you need is:

  • Create new project within command line:

    play new
    
  • idealize it with command line too:

    play idea
    
  • Go to Idea, choose File > Open..., find folder with app created in previous steps and... voilà!

like image 67
biesior Avatar answered Oct 16 '22 08:10

biesior