You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by "Fancy2209 (via GitHub)" <gi...@apache.org> on 2026/03/02 19:52:56 UTC
[I] nternal error in ASBlockWalker subsystem, when generating code for mx.controls.RichTextEditor [royale-compiler]
Fancy2209 opened a new issue, #243:
URL: https://github.com/apache/royale-compiler/issues/243
```
/home/paulo/Repos/Flex4Royale/project/projects/mx/src/mx/controls/RichTextEditor.mxml line 275 column 4 Internal error in ASBlockWalker subsystem, when generating code for: /home/paulo/Repos/Flex4Royale/project/projects/mx/src/mx/controls/RichTextEditor.mxml line 275 column 4: java.lang.NullPointerException: Cannot assign field "value" because "ps" is null
at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.emitArray(MXMLRoyaleEmitter.java:3219)
at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.visitArray(MXMLBlockWalker.java:307)
at org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:79)
at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:158)
at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.emitDocument(MXMLRoyaleEmitter.java:892)
at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleBlockWalker.visitDocument(MXMLRoyaleBlockWalker.java:69)
at org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:91)
at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:158)
at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleBlockWalker.visitFile(MXMLRoyaleBlockWalker.java:61)
at org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:97)
at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:158)
at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.visitCompilationUnit(MXMLBlockWalker.java:189)
at org.apache.royale.compiler.internal.codegen.mxml.MXMLWriter.writeTo(MXMLWriter.java:69)
at org.apache.royale.compiler.clients.COMPJSCNative.writeSWC(COMPJSCNative.java:399)
at org.apache.royale.compiler.clients.COMPJSCNative.compile(COMPJSCNative.java:201)
at org.apache.royale.compiler.clients.MXMLJSCNative._mainNoExit(MXMLJSCNative.java:248)
at org.apache.royale.compiler.clients.MXMLJSCNative.mainNoExit(MXMLJSCNative.java:205)
at org.apache.royale.compiler.clients.COMPJSC._mainNoExit(COMPJSC.java:203)
at org.apache.royale.compiler.clients.COMPJSC.mainNoExit(COMPJSC.java:119)
at org.apache.royale.compiler.clients.COMPJSC.staticMainNoExit(COMPJSC.java:104)
at org.apache.royale.compiler.clients.COMPJSC.main(COMPJSC.java:84)
```
Hello!
I have been trying to get Flex 4 working with OpenFL
I got textLayout and framework compiling by cheating a bit and using playerglobal.swc for library path instead of openfl's SWC
However mx does not compile properly, on SWF it works but JS it just throws an Internal Compiler Error.
Code is available here:
https://github.com/Fancy2209/Flex4Royale
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Internal error in ASBlockWalker subsystem, when generating code for mx.controls.RichTextEditor [royale-compiler]
Posted by "Fancy2209 (via GitHub)" <gi...@apache.org>.
Fancy2209 commented on issue #243:
URL: https://github.com/apache/royale-compiler/issues/243#issuecomment-3986563697
it seems this was caused by simply doing new flash.events.Event and importing flash.events.Event
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Internal error in ASBlockWalker subsystem, when generating code for mx.controls.RichTextEditor [royale-compiler]
Posted by "Fancy2209 (via GitHub)" <gi...@apache.org>.
Fancy2209 commented on issue #243:
URL: https://github.com/apache/royale-compiler/issues/243#issuecomment-3986760373
I do have children-as-data false from when i was targetting flash, could that be causing issues?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Internal error in ASBlockWalker subsystem, when generating code for mx.controls.RichTextEditor [royale-compiler]
Posted by "Fancy2209 (via GitHub)" <gi...@apache.org>.
Fancy2209 commented on issue #243:
URL: https://github.com/apache/royale-compiler/issues/243#issuecomment-3986819718
Still happens with children-as-data true
[log.txt](https://github.com/user-attachments/files/25694134/log.txt)
The code is all in the linked repo, order that has to be take in compiling is projects/textLayout then projects/framework and then projects/mx
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Internal error in ASBlockWalker subsystem, when generating code for mx.controls.RichTextEditor [royale-compiler]
Posted by "joshtynjala (via GitHub)" <gi...@apache.org>.
joshtynjala commented on issue #243:
URL: https://github.com/apache/royale-compiler/issues/243#issuecomment-3986785416
Maybe. It's hard for me to guess. I would need to try compiling it myself and observe which paths the compiler is taking.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Internal error in ASBlockWalker subsystem, when generating code for mx.controls.RichTextEditor [royale-compiler]
Posted by "joshtynjala (via GitHub)" <gi...@apache.org>.
joshtynjala commented on issue #243:
URL: https://github.com/apache/royale-compiler/issues/243#issuecomment-3986676119
Relevant MXML file with line highlighted:
https://github.com/apache/flex-sdk/blob/develop/frameworks/projects/mx/src/mx/controls/RichTextEditor.mxml#L275
My first guess would be that it is related to the file using MXML 2006. Maybe it's not handling non-child object declarations properly (in this case, the Array). MXML 2006 does not use `<fx:Declarations>`, like MXML 2009. I have definitely fixed other issues with Royale's MXML 2006 parsing related to the lack of `<fx:Declarations>` in the past. It's possible that there are still issues with it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org