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.
Asked
Active
Viewed 1,063 times
3
-
2see also http://stackoverflow.com/questions/2683195/how-do-i-enable-continuations-on-scala-2-8 – Seth Tisue Jan 04 '11 at 17:34
3 Answers
1
Window -> Preferences -> Scala -> Compiler
add continuations:enable to P input box

Arjan
- 19,957
- 2
- 55
- 48
1
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

Barry Tsung
- 11
- 1
0
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).

satyagraha
- 623
- 7
- 11