【问题标题】:continuations in Scala 2.8.1 and EclipseScala 2.8.1 和 Eclipse 中的延续
【发布时间】:2011-06-01 04:32:42
【问题描述】:

如何在 Eclipse 中使用 -P:continuations:enable 标志启动 scala(或 scalac) 我使用了 import scala.util.continuations._;在我的代码中,需要启用插件。

【问题讨论】:

标签: eclipse scala continuations


【解决方案1】:

窗口 -> 首选项 -> Scala -> 编译器

添加延续:启用P输入框

【讨论】:

  • Scala 2.9 还需要这个吗?
【解决方案2】:

窗口 -> 首选项 -> Scala -> 编译器 -> 标准

add continuations:enable to P input box

窗口 -> 首选项 -> Scala -> 编译器 -> 高级

add lib\continuations.jar to XPlugin

窗口 -> 首选项 -> Scala -> 编译器 -> 构建管理器 sbt

【讨论】:

    【解决方案3】:

    您可能还需要将使用的 Eclipse 构建器从 refined 切换到 sbt,请参阅:http://scala-ide-portfolio.assembla.com/spaces/scala-ide/wiki/SBT-based_build_manager

    但是,有一个已知错误可能会发生也可能不会发生,请参阅:http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000617-sbt-build-manager-and-certain-compiler-options-don-t-mix(据称已在最新的夜间版本中修复)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-04-06
      • 2010-10-26
      • 1970-01-01
      • 2011-08-08
      • 2011-08-28
      • 2012-06-30
      • 2013-07-01
      相关资源
      最近更新 更多