I’m currently working on a codebase that has a custom Scala compiler plugin and they created a REPL for it that is initialized by doing:
settings.plugin.value ++= MagicPrivatePlugin :: Nil
sharedLoop.settings = settings
Where sharedLoop is a subclass of ILoop. Now all works fine and peachy with regard to compilation (no errors on the custom annotations, i.e. they are picked up correctly from the codebase), but if I enter a large block of code that contains the annotations that should trigger the plugin transformation (or even if i define things line by line) don’t happen and the block of code is compiled using the “normal” java compiler. This happens in both paste and one-line-at-a-time pmodes.
It seems to me that there is a problem with plugins (or, also, in the way these are attached to the repl), and wanted to ask if anyone else had this experience and if there is a workaround or if I’m going at this the wrong way?