开发者

continuations in Scala 2.8.1 and Eclipse

开发者 https://www.devze.com 2023-02-01 21:47 出处:网络
How can i start scala (or scalac) with the -P:continuations:enable flag 开发者_C百科in Eclipse I used import scala.util.continuations._; in my code , and need to enable the plugin.Window -> Preference

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


Window -> Preferences -> Scala -> Compiler

add continuations:enable to P input box


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


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号