我安装了Scala IDE for Eclipse ,而且似乎工作正常。所以现在我正在尝试导入一个 Lift 项目(特别是从 Stax application platform 自动生成的 Lift 项目),现在我的工作区出现四个错误:
value net is not a member of package <root> Boot.scala /rss2lj/src/scala/bootstrap/liftweb line [3..6] Scala Problem
在行:
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.sitemap._
import _root_.net.liftweb.sitemap.Loc._
有人可以帮我解决这个问题吗?
UPD:我找到了 discussion具有基于 Maven 的项目的解决方案,但我尝试使用的项目不是基于 Maven 的。
我得到了答案here ,但新的错误发生在同一行:
error while loading Helpers, Scala signature Helpers has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-util-1.0.jar(net/liftweb/util/Helpers.class)
error while loading LiftRules, Scala signature LiftRules has wrong
version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/http/LiftRules.class)
error while loading Loc, Scala signature Loc has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/sitemap/Loc.class)
error while loading Menu, Scala signature Menu has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/sitemap/Menu.class)
最佳答案
提出此类问题的最佳地点是 Scala IDE user邮件列表。
关于ide - Eclipse Scala IDE 中的 Scala-Lift 项目错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3245715/