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

-Xplugin does behave as expected? #106

Open
BMEJ opened this issue Oct 12, 2017 · 1 comment
Open

-Xplugin does behave as expected? #106

BMEJ opened this issue Oct 12, 2017 · 1 comment

Comments

@BMEJ
Copy link

BMEJ commented Oct 12, 2017

Hello,

I was trying to follow the first step of https://docs.scala-lang.org/overviews/macros/paradise.html but with scala 2.12.3. However, it does not seem to behave as on the linked page (I do not see the macroparadise in the list of phases). Is this expected?

scala-2.12.3\bin>scalac -Xplugin:paradise_2.12.3-2.1.0.jar -Xshow-phases
    phase name  id  description
    ----------  --  -----------
        parser   1  parse source into ASTs, perform simple desugaring
         namer   2  resolve names, attach symbols to named trees
packageobjects   3  load package objects
         typer   4  the meat and potatoes: type the trees
        patmat   5  translate match expressions
superaccessors   6  add super accessors in traits and nested classes
    extmethods   7  add extension methods for inline classes
       pickler   8  serialize symbol tables
     refchecks   9  reference/override checking, translate nested objects
       uncurry  10  uncurry, translate function values to anonymous classes
        fields  11  synthesize accessors and fields, add bitmaps for lazy vals
     tailcalls  12  replace tail calls by jumps
    specialize  13  @specialized-driven class and method specialization
 explicitouter  14  this refs to outer pointers
       erasure  15  erase types, add interfaces for traits
   posterasure  16  clean up erased inline classes
    lambdalift  17  move nested functions to top level
  constructors  18  move field definitions into constructors
       flatten  19  eliminate inner classes
         mixin  20  mixin composition
       cleanup  21  platform-specific cleanups, generate reflective calls
    delambdafy  22  remove lambdas
           jvm  23  generate JVM bytecode
      terminal  24  the last phase during a compilation run
@xeno-by
Copy link
Member

xeno-by commented Oct 19, 2017

Hmm, clearly something's not right here. I don't have time to debug right now, but maybe this is related to 2.12.x changes in compiler plugin loading?

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

No branches or pull requests

2 participants