玩!框架 - 未编译视图? [英] Play! framework - views aren't compiled?
问题描述
我创建了一个新项目并使用 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
我尝试播放编译
,但没有帮助.
所以我有 40 个错误.所有这些都与未编译视图的事实有关,因此,eclipse 无法识别它们(当然是我的猜测).
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)
推荐答案
你能做的最好的事情就是搜索 Stack Overflow,因为这个话题已经讨论了很多次了.
The best you can do is just search the Stack Overflow as this topic was discussed really many times.
- Playframework - Eclipse 无法检测到新模板
- 如何让 Eclipse 在 Play 中看到变化!编译模板?
- scala 代码导致 eclipse for playframework-2.0 出错
- 等等等等...
这篇关于玩!框架 - 未编译视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!