Errors in Eclipse for Scala project generated by Play Framework

前端 未结 2 1997
情歌与酒
情歌与酒 2020-12-15 05:07

I would like to use Eclipse as IDE for a Scala web application using Play Framework. I downloaded Eclipse 3.6.2. Then I installed Scala IDE 2.0 (beta) for Eclipse. I downloa

相关标签:
2条回答
  • 2020-12-15 05:43

    It seems that eclipse thinks that your views package is empty. Did you try to refresh project via F5 command?

    0 讨论(0)
  • 2020-12-15 06:02

    The error shown highlighted in your screenshot is caused by the new Scala template sources not being in the project Build Path. The eclipsify command doesn't currently do this for you.

    Manually add tmp/classes to the Build Path to resolve it.

    But please note that new Scala template files are not generated from within Eclipse. So if you add a new template/page to your project, you must run 'play run' (or equivalent) first to have the file appear there. Also note that if you run the eclipsify command again in the future you will need to re-add this folder to your Build Path.

    0 讨论(0)
提交回复
热议问题