IntelliJ Ultimate can't find routes in Play 2.3 (Java) project tests

廉价感情. 提交于 2019-12-01 09:29:24

Most likely it's connected with the fact that the routes object is generated during project compilation. After compilation, it should be placed under the target/scala-{ver}/src_managed directory. Mark this directory as source and IntelliJ should see routes correctly.

You can use one of the following steps to do it:

  • right-click the directory in the Project view and select Mark Directory As -> Generated Sources Root

or

  • open File -> Project Structure... -> Modules -> Sources and mark the src_managed directory as Sources using the button above the project structure
biesior

Actually your question motivated me to find solution for this annoying issue :)

And actually it was already answered, see this answer which works: https://stackoverflow.com/a/21879374/1066240

Also read other answers and comments.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!