Scala 2.8.1 和 Eclipse 中的延续

发布于 2024-10-09 11:31:48 字数 125 浏览 0 评论 0原文

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

How can i start scala (or scalac) with the -P:continuations:enable flag in Eclipse
I used import scala.util.continuations._; in my code , and need to enable the plugin.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

清秋悲枫 2024-10-16 11:31:48

窗口->首选项->斯卡拉 ->编译器

添加延续:启用P输入框

Window -> Preferences -> Scala -> Compiler

add continuations:enable to P input box

无所谓啦 2024-10-16 11:31:48

窗口->首选项->斯卡拉 ->编译器->标准

add continuations:enable to P input box

窗 ->首选项->斯卡拉 ->编译器->高级

add lib\continuations.jar to XPlugin

窗口->首选项->斯卡拉 ->编译器->构建经理
sbt

Window -> Preferences -> Scala -> Compiler -> Standard

add continuations:enable to P input box

Window -> Preferences -> Scala -> Compiler -> Advanced

add lib\continuations.jar to XPlugin

Window -> Preferences -> Scala -> Compiler -> Build Manager
sbt

云巢 2024-10-16 11:31:48

您可能还需要将使用的 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(据称已在最新的隔夜构建中修复)。

You may also need to switch the Eclipse builder used from refined to sbt, see: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/wiki/SBT-based_build_manager

However, there is a known bug with that which may or may not occur, see: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000617-sbt-build-manager-and-certain-compiler-options-don-t-mix (allegedly fixed in latest overnight build).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文