Eclipse在Play 2.4设置中显示错误

use*_*357 6 scala playframework playframework-2.4

我正在尝试设置一个基于Scala SDK Eclipse的IDE,以便在Windows 8上使用Play 2.4.我按照官方指南中的说明进行操作,但在打开默认视图index.scala.html之后,我收到了一堆错误:

  1. 对重载定义的模糊引用,

    两个方法都显示在类BaseScalaTemplate类型(o:Any)(隐式m:Manifest [error])和方法显示类BaseScalaTemplate类型(x:error)匹配参数类型(play.twirl.api.HtmlFormat.Appendable)和预期结果类型任何

    涉及默认参数的应用程序出错.

    index.scala.html/play-scala-test-app/app/views第3行

    Java问题

  2. 类型Html不是包play.api.templates的成员

    index.scala.html/play-scala-test-app/app/views line

    Java问题

我试图删除默认导入并play.twirl.api._Play2项目属性中添加新导入,但这没有改变.有没有办法修复配置?

小智 0

请参阅https://groups.google.com/forum/#!topic/scala-ide-user/WFNoQ6GNw1k

1 分叉https://github.com/cweinreben/scala-ide-play2

2 在本地查看项目

3 在项目文件夹的根目录中执行./build.sh(等待并在下载互联网时喝杯咖啡)

4 完成后切换到 Eclipse 并打开“安装新软件...”对话框(菜单“帮助>安装新软件...”)

5 构建脚本创建一个更新站点 - 因此在对话框中选择“添加”,然后选择“本地...”并切换到文件夹“scala-ide-play2/org.scala-ide.play2.update-site/target” /地点”

6 安装此文件夹中的功能