Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading continuations plugin via -Xplugin results in no loaded plugin #5491

Closed
scabug opened this issue Feb 16, 2012 · 3 comments
Closed

Loading continuations plugin via -Xplugin results in no loaded plugin #5491

scabug opened this issue Feb 16, 2012 · 3 comments
Assignees

Comments

@scabug
Copy link

scabug commented Feb 16, 2012

Assume you have a plugins folder which contains the continuations.jar plugin.

Then run the following (where CPS.scala is any class using the continuations plugin)

> scalac -Xplugin plugins/continuations.jar -P:continuations:enable CPS.scala

You will get compilation's errors telling that the continuations plugin is not enable.

I guess the problem is that -Xpluginsdir by defaults points to the directory containing the continuations.jar plugin, and that creates the confusion.

To support this, running the following command works as expected (the continuations plugin is indeed loaded)

> scalac -Xpluginsdir plugins -Xplugin plugins/continuations.jar -P:continuations:enable CPS.scala

@scabug
Copy link
Author

scabug commented Feb 16, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5491?orig=1
Reporter: @dotta
Affected Versions: 2.9.1
Attachments:

  • CPS.scala (created on Feb 16, 2012 5:25:11 PM UTC, 318 bytes)

@scabug
Copy link
Author

scabug commented Feb 22, 2012

@dotta said:
And I just found another issue:

While this works fine:

> scalac -Xpluginsdir plugins -Xplugin plugins/continuations.jar -P:continuations:enable CPS.scala

This fails:

> scalac -P:continuations:enable -Xpluginsdir plugins -Xplugin plugins/continuations.jar CPS.scala

I'll let to you guys all the fun of figuring out why :)

@scabug
Copy link
Author

scabug commented Feb 26, 2015

@adriaanm said:
Sorry, the continuations plugin has been unsupported for a while now. Please open an issue over at https://github.com/scala/scala-continuations (we're still looking for a maintainer for it, though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants