玩!框架-视图未编译? [英] Play! framework - views aren't compiled?

查看:75
本文介绍了玩!框架-视图未编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新项目并使用eclipse(使用eclipsify命令).
基本上,我将app目录从一个旧项目移动到了我创建的新项目中.

I created a new project and working with eclipse (used eclipsify command).
basically, I moved the app directory from an old project to the new one I created.

问题在于eclipse无法识别视图.我收到如下错误:

the problem is that eclipse doesn't recognize the views. I get errors like:

views.html.viewTopic无法解析为一种类型

views.html.viewTopic cannot be resolved to a type

我尝试play compile,但没有帮助.
所以我遇到了40个错误.所有这些都与未编译视图的事实有关,因此,日食无法识别它们(我的猜测当然是).

I tried to play compile but it didn't help.
so I got 40 errors. all of them connected to the fact that the views aren't compiled and therefore, the eclipse doesn't recognize them (my guess of course).

我该怎么办?
顺便说一下,旧项目已编译并成功运行(我使用了intellij)

what can I do?
by the way, the old project compiled and ran without a problem (I used intellij)

推荐答案

您可以做的最好的事情就是搜索堆栈溢出,因为该主题已经讨论了很多次.

The best you can do is just search the Stack Overflow as this topic was discussed really many times.

  • Playframework - Eclipse can't detect a new template
  • How to make Eclipse see the changes in Play! compiled templates?
  • scala code causes error in eclipse for playframework-2.0
  • etc, etc...

这篇关于玩!框架-视图未编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆