When running the approval script *without* -Duse-flash=true (in other
words, JS-only), I get the following error when it tries to build the ASDoc
example. However, it seems to build that example correctly when I use
-Duse-flash=true.

json:
ROYALE_COMPILER_HOME:
/Users/joshtynjala/Desktop/ApacheRoyale/apache-royale-0.9.9-src/royale-asjs/js
16.6482905 seconds
java.lang.NullPointerException: Cannot invoke
"org.apache.royale.compiler.tree.as.IASNode.getSourcePath()" because "node"
is null
org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:163)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitCompilationUnit(ASBlockWalker.java:188)org.apache.royale.compiler.internal.codegen.js.JSWriter.writeTo(JSWriter.java:96)org.apache.royale.compiler.internal.codegen.js.JSWriter.writeTo(JSWriter.java:80)org.apache.royale.compiler.clients.ASDOCJSC.compile(ASDOCJSC.java:275)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:264)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:221)org.apache.royale.compiler.clients.ASDOCJSC.staticMainNoExit(ASDOCJSC.java:159)org.apache.royale.compiler.clients.ASDOCJSC.main(ASDOCJSC.java:107)

With -Duse-flash=true, I was able to get ASDoc built, but it fails on
building MenuExample later. This is the error:

apache-royale-0.9.9-src/royale-asjs/examples/royale/MenuExample/src/main/royale/MenuExample.mxml(34):
col: 3 Error: This tag could not be resolved to an ActionScript class. It
will be ignored.

<royale:MyInitialView />

The issue seems to be caused by this commit:

https://github.com/apache/royale-asjs/commit/8bfe4a96a37a3a45441793694a9893bbd5f50d4f

The source path should not have been changed from src/main/royale to src.
The correct source path is src/main/royale for all examples and libraries
in Royale.

I will see if I can get these issues fixed for the next RC. As things
are right now, I would vote -1.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Sun, Mar 13, 2022 at 11:35 PM <apacheroyal...@gmail.com> wrote:

> This is the discussion thread.
>
> Thanks,
> Yishay Weiss

Reply via email to