This does not look right to me:
-load-config=asconfig.json

that should only ever be an xml config file I think. At least that is what
I am used to. And that would explain the 'prolog' error, which is related
to xml parsing.
With asconfig.json I think you use asconfigc to run it.


On Sun, Apr 20, 2025 at 9:00 AM Jim McNamara <[email protected]>
wrote:

> Hi-
>
> does anyone know what may be going wrong with this error message below?
> Here is my asconfig.json
>
> thanks,
>
>
> {
>   "compiler": {
>     "debug":false,
>     "targets":["JSRoyale"],
>     "source-map":true,
>     "source-path":[
>       "src"
>     ]
>   },
>   "external-library-path": [
>
> "/home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs/frameworks/js/libs",
>     "libs/JewelJS.swc",
>     "libs/CoreJS.swc",
>     "libs/BasicJS.swc"
>   ],
>   "output": "bin/js-debug",
>   "files": [
>     "src/Main.mxml"
>   ],
>   "additionalOptions": "-remove-circulars
> -js-output-optimization=skipAsCoercions"
> }
>
>
>
> royaleghi]$
> /home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs/js/bin/asjsc
> -targets="JSRoyale"  -load-config=asconfig.json
> Using Royale Compiler codebase:
> /home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs/js/bin/../..
> Using Royale SDK:
> /home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs
> MXMLJSC
>
> +royalelib=/home/funnysys/royalebin/apache-royale-0.9.12-bin-js/royale-asjs/frameworks
> -js-output-type=jsc
> +configname=js
> -targets=JSRoyale
> -load-config=asconfig.json
> /home/funnysys/royaleghi/asconfig.json(1): col: 0 Error: exception
> 'org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is
> not allowed in prolog.' while setting variable ''.
> /home/funnysys/royaleghi/asconfig.json (line: 1)
>
> {
>
>
> Sent with Proton Mail secure email.
>

Reply via email to