The problem I saw was I had committed a bunch of incomplete emulation stubs which were not being used anywhere thinking it’s safe. This confused ASDoc which was trying to compile them. I removed those classes but I’m still getting what looks like a compiler error when running ant from examples/royale/ASDoc
[java] C:\dev\full_royale_sdk\royale-asjs\frameworks\projects\Network\src\main\royale\org\apache\royale\net\URLLoader.as line 355 column 8 Internal error i n ASBlockWalker subsystem, when generating code for: C:\dev\full_royale_sdk\royale-asjs\frameworks\projects\Network\src\main\royale\org\apache\royale\net\URLLoa der.as line 355 column 8: java.lang.NullPointerException [java] at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleASDocEmitter.emitMethod(JSRoyaleASDocEmitter.java:612) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitFunction(ASBlockWalker.java:290) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:152) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) [java] at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) [java] at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleASDocEmitter.emitClass(JSRoyaleASDocEmitter.java:271) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitClass(ASBlockWalker.java:256) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:136) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) [java] at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) [java] at org.apache.royale.compiler.internal.codegen.js.goog.JSGoogEmitter.emitPackageContents(JSGoogEmitter.java:186) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitPackage(ASBlockWalker.java:244) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:132) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) [java] at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitFile(ASBlockWalker.java:223) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:128) [java] at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) [java] at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) [java] at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitCompilationUnit(ASBlockWalker.java:188) [java] at org.apache.royale.compiler.internal.codegen.js.JSWriter.writeTo(JSWriter.java:96) [java] at org.apache.royale.compiler.internal.codegen.js.JSWriter.writeTo(JSWriter.java:80) [java] at org.apache.royale.compiler.clients.ASDOCJSC.compile(ASDOCJSC.java:275) [java] at org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:259) [java] at org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:216) [java] at org.apache.royale.compiler.clients.ASDOCJSC.staticMainNoExit(ASDOCJSC.java:159) [java] at org.apache.royale.compiler.clients.ASDOCJSC.main(ASDOCJSC.java:107) From: Yishay Weiss<mailto:yishayj...@hotmail.com> Sent: Monday, July 26, 2021 9:25 PM To: Josh Tynjala<mailto:joshtynj...@bowlerhat.dev>; Apache Royale Development<mailto:dev@royale.apache.org> Subject: RE: [DISCUSS] Discuss Release Apache Royale 0.9.8 RC5 Thanks, yes, I did miss that comment. Good thing we have a release so we can’t ignore these things. I’ll fix per your observations I have also noticed royale-compiler-integration tests and royale-asjs_MXTests are failing on Jenkins so it might not make sense to cut a release before fixing those anyway. I am not sure how much time I’ll have to look at those in the coming days so if anyone wants to beat me to it all the better. From: Josh Tynjala<mailto:joshtynj...@bowlerhat.dev> Sent: Monday, July 26, 2021 7:58 PM To: Apache Royale Development<mailto:dev@royale.apache.org> Cc: Yishay Weiss<mailto:yishayj...@hotmail.com> Subject: Re: [DISCUSS] Discuss Release Apache Royale 0.9.8 RC5 I should add that I don't get a stack trace. Compiling the example fails with regular compiler errors. Here are a couple example errors that I see: /Users/joshtynjala/Desktop/royale/apache-royale-0.9.8-src/royale-asjs/frameworks/projects/SparkRoyale/src/main/royale/spark/filters/BevelFilter.as(23): col: 8 Definition flash.filters.BevelFilter could not be found. import flash.filters.BevelFilter; ^ /Users/joshtynjala/Desktop/royale/apache-royale-0.9.8-src/royale-asjs/frameworks/projects/SparkRoyale/src/main/royale/spark/skins/spark/ScrollBarDownButtonSkin.mxml(32): col: 1 This tag could not be resolved to an ActionScript class. It will be ignored. <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark<http://ns.adobe.com/flex/spark>" ^ It looks like some code needs COMPILE:SWF, and some code is using the wrong MXML namespace. There might be more issues, but those are the obvious first ones I see. -- Josh Tynjala Bowler Hat LLC<https://bowlerhat.dev> On Mon, Jul 26, 2021 at 9:54 AM Josh Tynjala <joshtynj...@bowlerhat.dev<mailto:joshtynj...@bowlerhat.dev>> wrote: The approval script failed for me on the ASDoc example too. Both with -Duse-flash=true and without. This issue seemed familiar, and I rediscovered this comment that I made on Github, which you might have missed, Yishay. https://github.com/apache/royale-asjs/commit/ce49439ce40f700f0b546d15625be9f09bfbf941#diff-433d3e16953b74f2492217b154b502870224f574cc67ac5415fc230c5ae996b3 I can also reproduce this same issue directly in my local royale-asjs repo by going to examples/royale/ASDoc and running the Ant build script. -- Josh Tynjala Bowler Hat LLC<https://bowlerhat.dev> On Mon, Jul 26, 2021 at 6:03 AM Piotr Zarzycki <piotrzarzyck...@gmail.com<mailto:piotrzarzyck...@gmail.com>> wrote: Hi Yishay, I have run approval script and reached compilation point. It looks like ASDoc module failing for me, but I'm not sure. I will share with you off the list fragment of stacktrace, cause there are a lot of paths from my laptop, so don't want to put them here. Thanks, Piotr niedz., 25 lip 2021 o 15:14 <apacheroyal...@gmail.com<mailto:apacheroyal...@gmail.com>> napisał(a): > This is the discussion thread. > > Thanks, > Yishay Weiss -- Piotr Zarzycki