Cannot resolve "ok (?)" Method with Play 2 Framework in Intellij

I have been trying to set up chat in IntelliJ for several hours, but I cannot get it to work correctly.

I keep getting this error: http://imgur.com/MYY8fXI

I tried to create a project, although the terminal using:

play new 

and then using the terminal to create idea files using

 idea with-sources=yes 

I also installed play 2 plugin and used it to create a project, but I get the same error.

I can use the downloaded plugin to successfully launch the application and view it in my browser, but I keep getting

 Cannot resolve method 'ok(?)' error. 

edit: I am using OSX and have the final version of Intellij.
edit 2: I made little progress. If I import a view directly using import views.html.index; he gets rid of errors in the application. However, if I use import views.html. *; this leads to errors. Any ideas?

+6
source share
2 answers

At the time of this writing, it seems that the play2 support in IntelliJ 13 Ultimate has some minor issues ...

How I solved the problems:

1) Go to the project director and start the playback console (play.bat / play.sh should be on PATH)

2) enter the "compile" command in your game console.

3) enter the β€œidea” command in your game console.

4a), if your IntelliJ project was open, IntelliJ will detect the changes and offer to restart the project. Confirm you want to reboot

4b) if IntelliJ is not running, open the File | Open ... and select the project directory.

These steps should solve your problem.

+2
source

Does this help make the game compile templates for class files, run + open in a browser, or compile?

+1
source

Source: https://habr.com/ru/post/958037/


All Articles