Ok, so I have checked out the last version that ha...
# arrow-meta
j
Ok, so I have checked out the last version that had the "quotes" extensions in, just to try and move my existing plugin over, and trying to replace stubbed functions like the hello world example Everything builds and runs and the plugin appears to be being called: -
Copy code
val Meta.helloWorld: CliPlugin get() =
    "Hello World" { 
        meta(
            namedFunction(this, { true } ) { c ->
                println("remove")
                Transform.remove(c.element)
            }
        )
    }



@AutoService(ComponentRegistrar::class)
class MetaPlugin: Meta {
    override fun intercept(ctx: CompilerContext): List<CliPlugin> =
        listOf(helloWorld)
}
Copy code
Registering Cli plugin: Plugin(name=Hello World, meta=arrow.meta.phases.CompilerContext.() -> kotlin.collections.List<arrow.meta.phases.ExtensionPhase>) extensions: arrow.meta.phases.CompilerContext.() -> kotlin.collections.List<arrow.meta.phases.ExtensionPhase>
I get the following in the logs, so it seems to be hooking in correctly, however, I would assume that it should not build successfully if I have removed the method. However, it all works fine. I started with the hello world replace example, but again, although it calls the transform method, on the method it should, it doesn't seem to be changing anything
Just wanted to chase up here, and see if as far as you are aware, this should work? e.g. remove the hello world method making it not compile or fail at runtime?