Error while adding helper blocks code in extension code

I got this error below after adding the helper code dropdown menu in my extension :

Compiling sources
│ info Picked 2 source files
│      An annotation processor threw an uncaught exception.
│      Consult the following stack trace for details.
│      java.lang.IllegalStateException
│       at io.shreyash.rush.util.ConvertToYailTypeKt.convert(ConvertToYailType.kt:142)
│       at io.shreyash.rush.block.BlockWithParams.params(BlockWithParams.kt:16)
│       at io.shreyash.rush.block.Method.runChecks(Method.kt:31)
│       at io.shreyash.rush.block.Method.<init>(Method.kt:16)
│       at io.shreyash.rush.ExtensionProcessor.process(ExtensionProcessor.kt:68)
│       at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
│       at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
│       at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
│       at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
│       at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
│       at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
│       at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
│       at com.sun.tools.javac.main.Main.compile(Main.java:523)
│       at com.sun.tools.javac.main.Main.compile(Main.java:381)
│       at com.sun.tools.javac.main.Main.compile(Main.java:370)
│       at com.sun.tools.javac.main.Main.compile(Main.java:361)
│       at com.sun.tools.javac.Main.compile(Main.java:56)
│       at com.sun.tools.javac.Main.main(Main.java:42)
└ failed

However I have no errors in the code
This is dictionary path
image

I Need help

Please zip the extensions together, and upload it here. If the ZIP file format is unsupported, please either upload the ZIP to Google Drive, or rename it into an AIA file (it will not work when you import it as a project in App Inventor).

It is only one extension, do you mean zipping the extension folder?
I am using RUSH to compile the extension and I can compile it well but when I add the helper code it gives me the above error

Yes. Please zip the source files together, and upload it here for reference. We do not know what caused the error - maybe it's your code.

Does Rush support Helper Blocks?

I think a newer version does, but it's in beta mode.

1 Like

this is project folder text-formater.zip - Google Drive

You cannot use helper blocks in rush, and he's not using the unreleased beta version.

1 Like

Is Niotron IDE support it ?

Use this extension builder template, it's support helper blocks ↓

2 Likes

thanks,
I have more one question could I use .aar files in addition to the .jar files it or only the .jar files ?

Only .jar files are supported in App Inventor, though there are some techniques for using AARs in extension development.

1 Like

@Gordon_Lu thanks, may you tell me these techniques?

I cannot tell you what they exactly are. However, this might involve decompiling the AAR, storing the resources elsewhere, and manually converting a lot of files. This can be very complicated.

ok thank you very much @Gordon_Lu