Hi @Edu_boy , It seems that you’re doing all things blindly. You have just copied the code and pasted in your file without knowing it. I will suggest to understand the code first that you have copied from wherever. And you couldn’t use @DesignerComponent and @SimpleObject in rush as you must provide these details in metadata file(rush.yml), you could find it here. You should read the first post closely to understand the rush or you can refer to the wiki.
Hey shreyash, I deleted a class file (not the main extension one) but rush is including the deleted file with the compiled extension also. I can confirm this issue, just create a new project with one dummy class to test, once build it, and everything is okay, now after deleting the dummy file, the class is still getting compiled along, not sure this is an issue from my side or from rush.
┌ Compiling sources
│ info Picked 1 source file
│ erro java.lang.IllegalStateException
│ at io.shreyash.rush.util.ConvertToYailTypeKt.convert(ConvertToYailType.kt:142)
│ at io.shreyash.rush.block.Block.returnType(Block.kt:43)
│ at io.shreyash.rush.block.Method.asJsonObject(Method.kt:62)
│ at io.shreyash.rush.InfoFilesGenerator.generateComponentsJson(InfoFilesGenerator.kt:103)
│ at io.shreyash.rush.ExtensionProcessor.generateInfoFiles(ExtensionProcessor.kt:102)
│ at io.shreyash.rush.ExtensionProcessor.process(ExtensionProcessor.kt:87)
│ 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
• Build failed [1s 348ms] [1 error]
I’ve successfully installed latest version of rush on windows 11. When I’m trying to create an extension with “rush create testextension” then it’s asking about language after few steps then I can’t select language with arrow keys. That’s why I can’t use rush with latest version of rush.
As already mentioned, double is supported in extension. So removing double will not solve your error. It seems by your error that you have returned something that is not supported. You should check all the returnable properties and methods.
Testing support was something I had on my mind since the initial days of Rush but considering how many users would actually utilize it, I have completely removed it from the roadmap. I might consider adding it if more users are interested.