anvil icon indicating copy to clipboard operation
anvil copied to clipboard

What is the correct way to introduce custom code generator for anvil running in KSP mode?

Open IlyaGulya opened this issue 1 year ago • 1 comments

Previously we've had to implement CodeGenerator and provide it with @AutoService(CodeGenerator::class)

Do we now just implement regular KSP processor and apply it as any other?

IlyaGulya avatar May 24 '24 16:05 IlyaGulya

I've made a KSP processor, it seems to be working just fine. I will not close this issue, in case you have some concerns 🙂

IlyaGulya avatar May 26 '24 17:05 IlyaGulya

Does that mean that custom code generators for Anvil are now deprecated?

matejdro avatar Jul 08 '24 11:07 matejdro

Not at all.

RBusarow avatar Jul 08 '24 12:07 RBusarow

So, approach from poster above is not correct?

matejdro avatar Jul 08 '24 12:07 matejdro

So, approach from poster above is not correct?

No, if you're using Anvil in KSP mode, you will need KSP processor. Otherwise you will need a regular anvil code generator.

IlyaGulya avatar Jul 08 '24 13:07 IlyaGulya

But I assume that eventually everything will be moving away from kapt to ksp? And then it will be deprecated?

matejdro avatar Jul 08 '24 14:07 matejdro