You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Yishay Weiss <yi...@hotmail.com> on 2022/12/04 09:20:40 UTC

Compiler not buiding in Ant, any ideas?

tests:
    [junit] Running as.ASAbstractClassTests
    [junit] looking for C:\dev\full_royale_sdk\royale-compiler\env.properties
    [junit] environment property - FLEX_HOME = C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
    [junit] environment property - PLAYERGLOBAL_HOME = C:\dev\player
    [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
    [junit] environment property - TLF_HOME = null
    [junit] environment property - AIR_HOME = C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
    [junit] environment property - FLASHPLAYER_DEBUGGER = C:\dev\content_debugger\flashplayer_32_sa_debug.exe
    [junit] environment property - ASJS_HOME = C:\dev\full_royale_sdk\royale-asjs
    [junit] environment property - GOOG_HOME = c:\dev\goog_home
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.as
    [junit]
    [junit] 794 bytes written to C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.swf in 0.842 seconds
    [junit] After compile:
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585075857429.as
    [junit]
    [junit] After compile:
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585075857429.as(15): col: 9 Internal error: Unable to generate code for 'var'
    [junit]
    [junit]         var obj:A = new B();
    [junit] Unexpected compilation problems:
    [junit] Unable to generate code for 'var'
    [junit]         ^
    [junit]
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.as
    [junit]
    [junit] 786 bytes written to C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.swf in 0.198 seconds
    [junit] After compile:
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.as
    [junit]
   [junit] 791 bytes written to C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.swf in 0.211 seconds
    [junit] After compile:
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
   [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270379958485.as
    [junit]
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270379958485.as(34): col: 7 Error: Method b in abstract class B not implemented by class C
    [junit]
    [junit] class C extends B {
    [junit]       ^
    [junit]
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270379958485.as(34): col: 7 Error: Method a in abstract class A not implemented by class C
    [junit]
    [junit] class C extends B {
    [junit]       ^
    [junit]
    [junit] After compile:
    [junit] Method b in abstract class B not implemented by class C
    [junit] Method a in abstract class A not implemented by class C
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818104861768.as
    [junit]
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818104861768.as(33): col: 7 Error: Method a in abstract class A not implemented by class C
    [junit]
    [junit] class C extends B {
    [junit]       ^
    [junit]
    [junit] After compile:
    [junit] Method a in abstract class A not implemented by class C
    [j

Re: Compiler not buiding in Ant, any ideas?

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Theoretically, the uptodate would check if the target (.java) file is older than either of the two files and if it is, set a prop to re-generate the .java file.

IIRC it is possible to have forced a regeneration and miss an update.  For example if Josh makes a change on the 3rd but doesn't push it until the 5th, and you regenerate the unchanged version on the 4th, then when you pull down Josh's changes on the 6th, the target file is the 4th, but the source might still be the 3rd and thus appear to be uptodate.

However, a `wipe` (or is it `wipe-all`) should force regeneration.  I don't remember if `clean` wipes out generated .java files.

HTH,
-Alex

On 12/5/22, 10:43 PM, "Yishay Weiss" <yi...@hotmail.com> wrote:

    EXTERNAL: Use caution when clicking on links or opening attachments.


    > So seems changing both these files is necessary to see changes in build output. I don’t know what skeleton.royale is but it sounds like it needs to be removed from the condition here.

    Actually I doubt that would make a difference. If I understand correctly it’s an OR relation so if either of these files is more up2data raw.as.tokenizer.uptodate should be true.

    [1] Uptodate Task (apache.org)<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fant.apache.org%2Fmanual%2FTasks%2Fuptodate.html&amp;data=05%7C01%7Caharui%40adobe.com%7Cf5ae58814f98474fe7cd08dad7551fe5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638059057854503510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Y3DhehaZ3M5Xe%2F8X9n474kpYKNidldP%2FJlICbY2Esm0%3D&amp;reserved=0>

    From: Yishay Weiss<ma...@hotmail.com>
    Sent: Tuesday, December 6, 2022 8:23 AM
    To: dev@royale.apache.org<ma...@royale.apache.org>
    Subject: RE: Compiler not buiding in Ant, any ideas?

    I had actually run ant clean (and wipe) before and was getting that message. So still not sure why.

    > Perhaps our build
    script has an assumption that the core AS3 token syntax doesn't change much.

    Looking in royale-compiler/compiler/build.xml I see

    <uptodate property="raw.as.tokenizer.uptodate"
                         targetfile="${compiler}/target/generated-sources/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.java">
                <srcfiles dir="${compiler}/src/main/jflex/org/apache/royale/compiler/internal/parsing/as">
                    <include name="RawASTokenizer.lex"/>
                    <include name="skeleton.royale"/>
                </srcfiles>
    </uptodate>

    Which suggests build script thinks RawASTokenizer.java is up2date if it was updated later than RawASTokenizer.lex and skeleton.royale.

    So seems changing both these files is necessary to see changes in build output. I don’t know what skeleton.royale is but it sounds like it needs to be removed from the condition here.

    From: Josh Tynjala<ma...@bowlerhat.dev>
    Sent: Monday, December 5, 2022 6:15 PM
    To: dev@royale.apache.org<ma...@royale.apache.org>
    Subject: Re: Compiler not buiding in Ant, any ideas?

    While I was working on the new AS3 language syntax from AIR 50, I noticed
    that changes to the RawASTokenizer.lex file wouldn't be included in the
    compiler .jar files unless I ran `ant clean` first. Perhaps our build
    script has an assumption that the core AS3 token syntax doesn't change much.

    With that in mind, cloning a fresh copy of the repo would require the .lex
    files to be processed, similarly to a clean build.

    --
    Josh Tynjala
    Bowler Hat LLC <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&amp;data=05%7C01%7Caharui%40adobe.com%7Cf5ae58814f98474fe7cd08dad7551fe5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638059057854503510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=fSJl0ZF1sBLFITjSi9%2FYQZClGwy8Umk46UMxDxcGPDM%3D&amp;reserved=0>


    On Sun, Dec 4, 2022 at 3:21 AM Yishay Weiss <yi...@hotmail.com> wrote:

    > Not sure what was happening there, but cloning from repo and running ant
    > scripts does seem to work.
    >
    > From: Yishay Weiss<ma...@hotmail.com>
    > Sent: Sunday, December 4, 2022 11:20 AM
    > To: dev@royale.apache.org<ma...@royale.apache.org>
    > Subject: Compiler not buiding in Ant, any ideas?
    >
    >
    > tests:
    >     [junit] Running as.ASAbstractClassTests
    >     [junit] looking for
    > C:\dev\full_royale_sdk\royale-compiler\env.properties
    >     [junit] environment property - FLEX_HOME =
    > C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
    >     [junit] environment property - PLAYERGLOBAL_HOME = C:\dev\player
    >     [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
    >     [junit] environment property - TLF_HOME = null
    >     [junit] environment property - AIR_HOME =
    > C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
    >     [junit] environment property - FLASHPLAYER_DEBUGGER =
    > C:\dev\content_debugger\flashplayer_32_sa_debug.exe
    >     [junit] environment property - ASJS_HOME =
    > C:\dev\full_royale_sdk\royale-asjs
    >     [junit] environment property - GOOG_HOME = c:\dev\goog_home
    >     [junit] Generating test:
    >     [junit] Compiling test:
    >     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
    > -allow-abstract-classes=true
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478
    > 847439910.as
    >     [junit]
    >     [junit] 794 bytes written to
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.swf
    > in 0.842 seconds
    >     [junit] After compile:
    >     [junit]
    >     [junit] Generating test:
    >     [junit] Compiling test:
    >     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
    > -allow-abstract-classes=true
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
    > 075857429.as
    >     [junit]
    >     [junit] After compile:
    >     [junit]
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
    > 075857429.as(15): col: 9 Internal error: Unable to generate code for 'var'
    >     [junit]
    >     [junit]         var obj:A = new B();
    >     [junit] Unexpected compilation problems:
    >     [junit] Unable to generate code for 'var'
    >     [junit]         ^
    >     [junit]
    >     [junit]
    >     [junit] Generating test:
    >     [junit] Compiling test:
    >     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
    > -allow-abstract-classes=true
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737
    > 369516615.as
    >     [junit]
    >     [junit] 786 bytes written to
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.swf
    > in 0.198 seconds
    >     [junit] After compile:
    >     [junit]
    >     [junit] Generating test:
    >     [junit] Compiling test:
    >     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
    > -allow-abstract-classes=true
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814
    > 896536570.as
    >     [junit]
    >    [junit] 791 bytes written to
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.swf
    > in 0.211 seconds
    >     [junit] After compile:
    >     [junit]
    >     [junit] Generating test:
    >     [junit] Compiling test:
    >    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
    > -allow-abstract-classes=true
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
    > 379958485.as
    >     [junit]
    >     [junit]
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
    > 379958485.as(34): col: 7 Error: Method b in abstract class B not
    > implemented by class C
    >     [junit]
    >     [junit] class C extends B {
    >     [junit]       ^
    >     [junit]
    >     [junit]
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
    > 379958485.as(34): col: 7 Error: Method a in abstract class A not
    > implemented by class C
    >     [junit]
    >     [junit] class C extends B {
    >     [junit]       ^
    >     [junit]
    >     [junit] After compile:
    >     [junit] Method b in abstract class B not implemented by class C
    >     [junit] Method a in abstract class A not implemented by class C
    >     [junit]
    >     [junit] Generating test:
    >     [junit] Compiling test:
    >     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
    > -allow-abstract-classes=true
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
    > 104861768.as
    >     [junit]
    >     [junit]
    > C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
    > 104861768.as(33): col: 7 Error: Method a in abstract class A not
    > implemented by class C
    >     [junit]
    >     [junit] class C extends B {
    >     [junit]       ^
    >     [junit]
    >     [junit] After compile:
    >     [junit] Method a in abstract class A not implemented by class C
    >     [j
    >
    >



RE: Compiler not buiding in Ant, any ideas?

Posted by Yishay Weiss <yi...@hotmail.com>.
> So seems changing both these files is necessary to see changes in build output. I don’t know what skeleton.royale is but it sounds like it needs to be removed from the condition here.

Actually I doubt that would make a difference. If I understand correctly it’s an OR relation so if either of these files is more up2data raw.as.tokenizer.uptodate should be true.

[1] Uptodate Task (apache.org)<https://ant.apache.org/manual/Tasks/uptodate.html>

From: Yishay Weiss<ma...@hotmail.com>
Sent: Tuesday, December 6, 2022 8:23 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Compiler not buiding in Ant, any ideas?

I had actually run ant clean (and wipe) before and was getting that message. So still not sure why.

> Perhaps our build
script has an assumption that the core AS3 token syntax doesn't change much.

Looking in royale-compiler/compiler/build.xml I see

<uptodate property="raw.as.tokenizer.uptodate"
                     targetfile="${compiler}/target/generated-sources/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.java">
            <srcfiles dir="${compiler}/src/main/jflex/org/apache/royale/compiler/internal/parsing/as">
                <include name="RawASTokenizer.lex"/>
                <include name="skeleton.royale"/>
            </srcfiles>
</uptodate>

Which suggests build script thinks RawASTokenizer.java is up2date if it was updated later than RawASTokenizer.lex and skeleton.royale.

So seems changing both these files is necessary to see changes in build output. I don’t know what skeleton.royale is but it sounds like it needs to be removed from the condition here.

From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Monday, December 5, 2022 6:15 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Compiler not buiding in Ant, any ideas?

While I was working on the new AS3 language syntax from AIR 50, I noticed
that changes to the RawASTokenizer.lex file wouldn't be included in the
compiler .jar files unless I ran `ant clean` first. Perhaps our build
script has an assumption that the core AS3 token syntax doesn't change much.

With that in mind, cloning a fresh copy of the repo would require the .lex
files to be processed, similarly to a clean build.

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


On Sun, Dec 4, 2022 at 3:21 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Not sure what was happening there, but cloning from repo and running ant
> scripts does seem to work.
>
> From: Yishay Weiss<ma...@hotmail.com>
> Sent: Sunday, December 4, 2022 11:20 AM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: Compiler not buiding in Ant, any ideas?
>
>
> tests:
>     [junit] Running as.ASAbstractClassTests
>     [junit] looking for
> C:\dev\full_royale_sdk\royale-compiler\env.properties
>     [junit] environment property - FLEX_HOME =
> C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
>     [junit] environment property - PLAYERGLOBAL_HOME = C:\dev\player
>     [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
>     [junit] environment property - TLF_HOME = null
>     [junit] environment property - AIR_HOME =
> C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
>     [junit] environment property - FLASHPLAYER_DEBUGGER =
> C:\dev\content_debugger\flashplayer_32_sa_debug.exe
>     [junit] environment property - ASJS_HOME =
> C:\dev\full_royale_sdk\royale-asjs
>     [junit] environment property - GOOG_HOME = c:\dev\goog_home
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478
> 847439910.as
>     [junit]
>     [junit] 794 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.swf
> in 0.842 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
> 075857429.as
>     [junit]
>     [junit] After compile:
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
> 075857429.as(15): col: 9 Internal error: Unable to generate code for 'var'
>     [junit]
>     [junit]         var obj:A = new B();
>     [junit] Unexpected compilation problems:
>     [junit] Unable to generate code for 'var'
>     [junit]         ^
>     [junit]
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737
> 369516615.as
>     [junit]
>     [junit] 786 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.swf
> in 0.198 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814
> 896536570.as
>     [junit]
>    [junit] 791 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.swf
> in 0.211 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as(34): col: 7 Error: Method b in abstract class B not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as(34): col: 7 Error: Method a in abstract class A not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit] After compile:
>     [junit] Method b in abstract class B not implemented by class C
>     [junit] Method a in abstract class A not implemented by class C
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
> 104861768.as
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
> 104861768.as(33): col: 7 Error: Method a in abstract class A not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit] After compile:
>     [junit] Method a in abstract class A not implemented by class C
>     [j
>
>


RE: Compiler not buiding in Ant, any ideas?

Posted by Yishay Weiss <yi...@hotmail.com>.
I had actually run ant clean (and wipe) before and was getting that message. So still not sure why.

> Perhaps our build
script has an assumption that the core AS3 token syntax doesn't change much.

Looking in royale-compiler/compiler/build.xml I see

<uptodate property="raw.as.tokenizer.uptodate"
                     targetfile="${compiler}/target/generated-sources/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.java">
            <srcfiles dir="${compiler}/src/main/jflex/org/apache/royale/compiler/internal/parsing/as">
                <include name="RawASTokenizer.lex"/>
                <include name="skeleton.royale"/>
            </srcfiles>
</uptodate>

Which suggests build script thinks RawASTokenizer.java is up2date if it was updated later than RawASTokenizer.lex and skeleton.royale.

So seems changing both these files is necessary to see changes in build output. I don’t know what skeleton.royale is but it sounds like it needs to be removed from the condition here.

From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Monday, December 5, 2022 6:15 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Compiler not buiding in Ant, any ideas?

While I was working on the new AS3 language syntax from AIR 50, I noticed
that changes to the RawASTokenizer.lex file wouldn't be included in the
compiler .jar files unless I ran `ant clean` first. Perhaps our build
script has an assumption that the core AS3 token syntax doesn't change much.

With that in mind, cloning a fresh copy of the repo would require the .lex
files to be processed, similarly to a clean build.

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


On Sun, Dec 4, 2022 at 3:21 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Not sure what was happening there, but cloning from repo and running ant
> scripts does seem to work.
>
> From: Yishay Weiss<ma...@hotmail.com>
> Sent: Sunday, December 4, 2022 11:20 AM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: Compiler not buiding in Ant, any ideas?
>
>
> tests:
>     [junit] Running as.ASAbstractClassTests
>     [junit] looking for
> C:\dev\full_royale_sdk\royale-compiler\env.properties
>     [junit] environment property - FLEX_HOME =
> C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
>     [junit] environment property - PLAYERGLOBAL_HOME = C:\dev\player
>     [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
>     [junit] environment property - TLF_HOME = null
>     [junit] environment property - AIR_HOME =
> C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
>     [junit] environment property - FLASHPLAYER_DEBUGGER =
> C:\dev\content_debugger\flashplayer_32_sa_debug.exe
>     [junit] environment property - ASJS_HOME =
> C:\dev\full_royale_sdk\royale-asjs
>     [junit] environment property - GOOG_HOME = c:\dev\goog_home
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478
> 847439910.as
>     [junit]
>     [junit] 794 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.swf
> in 0.842 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
> 075857429.as
>     [junit]
>     [junit] After compile:
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
> 075857429.as(15): col: 9 Internal error: Unable to generate code for 'var'
>     [junit]
>     [junit]         var obj:A = new B();
>     [junit] Unexpected compilation problems:
>     [junit] Unable to generate code for 'var'
>     [junit]         ^
>     [junit]
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737
> 369516615.as
>     [junit]
>     [junit] 786 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.swf
> in 0.198 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814
> 896536570.as
>     [junit]
>    [junit] 791 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.swf
> in 0.211 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as(34): col: 7 Error: Method b in abstract class B not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as(34): col: 7 Error: Method a in abstract class A not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit] After compile:
>     [junit] Method b in abstract class B not implemented by class C
>     [junit] Method a in abstract class A not implemented by class C
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
> 104861768.as
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
> 104861768.as(33): col: 7 Error: Method a in abstract class A not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit] After compile:
>     [junit] Method a in abstract class A not implemented by class C
>     [j
>
>


Re: Compiler not buiding in Ant, any ideas?

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
While I was working on the new AS3 language syntax from AIR 50, I noticed
that changes to the RawASTokenizer.lex file wouldn't be included in the
compiler .jar files unless I ran `ant clean` first. Perhaps our build
script has an assumption that the core AS3 token syntax doesn't change much.

With that in mind, cloning a fresh copy of the repo would require the .lex
files to be processed, similarly to a clean build.

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


On Sun, Dec 4, 2022 at 3:21 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Not sure what was happening there, but cloning from repo and running ant
> scripts does seem to work.
>
> From: Yishay Weiss<ma...@hotmail.com>
> Sent: Sunday, December 4, 2022 11:20 AM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: Compiler not buiding in Ant, any ideas?
>
>
> tests:
>     [junit] Running as.ASAbstractClassTests
>     [junit] looking for
> C:\dev\full_royale_sdk\royale-compiler\env.properties
>     [junit] environment property - FLEX_HOME =
> C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
>     [junit] environment property - PLAYERGLOBAL_HOME = C:\dev\player
>     [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
>     [junit] environment property - TLF_HOME = null
>     [junit] environment property - AIR_HOME =
> C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
>     [junit] environment property - FLASHPLAYER_DEBUGGER =
> C:\dev\content_debugger\flashplayer_32_sa_debug.exe
>     [junit] environment property - ASJS_HOME =
> C:\dev\full_royale_sdk\royale-asjs
>     [junit] environment property - GOOG_HOME = c:\dev\goog_home
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478
> 847439910.as
>     [junit]
>     [junit] 794 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.swf
> in 0.842 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
> 075857429.as
>     [junit]
>     [junit] After compile:
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585
> 075857429.as(15): col: 9 Internal error: Unable to generate code for 'var'
>     [junit]
>     [junit]         var obj:A = new B();
>     [junit] Unexpected compilation problems:
>     [junit] Unable to generate code for 'var'
>     [junit]         ^
>     [junit]
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737
> 369516615.as
>     [junit]
>     [junit] 786 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.swf
> in 0.198 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814
> 896536570.as
>     [junit]
>    [junit] 791 bytes written to
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.swf
> in 0.211 seconds
>     [junit] After compile:
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as(34): col: 7 Error: Method b in abstract class B not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270
> 379958485.as(34): col: 7 Error: Method a in abstract class A not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit] After compile:
>     [junit] Method b in abstract class B not implemented by class C
>     [junit] Method a in abstract class A not implemented by class C
>     [junit]
>     [junit] Generating test:
>     [junit] Compiling test:
>     [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc
> -allow-abstract-classes=true
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
> 104861768.as
>     [junit]
>     [junit]
> C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818
> 104861768.as(33): col: 7 Error: Method a in abstract class A not
> implemented by class C
>     [junit]
>     [junit] class C extends B {
>     [junit]       ^
>     [junit]
>     [junit] After compile:
>     [junit] Method a in abstract class A not implemented by class C
>     [j
>
>

RE: Compiler not buiding in Ant, any ideas?

Posted by Yishay Weiss <yi...@hotmail.com>.
Not sure what was happening there, but cloning from repo and running ant scripts does seem to work.

From: Yishay Weiss<ma...@hotmail.com>
Sent: Sunday, December 4, 2022 11:20 AM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Compiler not buiding in Ant, any ideas?


tests:
    [junit] Running as.ASAbstractClassTests
    [junit] looking for C:\dev\full_royale_sdk\royale-compiler\env.properties
    [junit] environment property - FLEX_HOME = C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
    [junit] environment property - PLAYERGLOBAL_HOME = C:\dev\player
    [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
    [junit] environment property - TLF_HOME = null
    [junit] environment property - AIR_HOME = C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_32.0
    [junit] environment property - FLASHPLAYER_DEBUGGER = C:\dev\content_debugger\flashplayer_32_sa_debug.exe
    [junit] environment property - ASJS_HOME = C:\dev\full_royale_sdk\royale-asjs
    [junit] environment property - GOOG_HOME = c:\dev\goog_home
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.as
    [junit]
    [junit] 794 bytes written to C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests2513614478847439910.swf in 0.842 seconds
    [junit] After compile:
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585075857429.as
    [junit]
    [junit] After compile:
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1794492585075857429.as(15): col: 9 Internal error: Unable to generate code for 'var'
    [junit]
    [junit]         var obj:A = new B();
    [junit] Unexpected compilation problems:
    [junit] Unable to generate code for 'var'
    [junit]         ^
    [junit]
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.as
    [junit]
    [junit] 786 bytes written to C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests7943759737369516615.swf in 0.198 seconds
    [junit] After compile:
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.as
    [junit]
   [junit] 791 bytes written to C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests1620344814896536570.swf in 0.211 seconds
    [junit] After compile:
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
   [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270379958485.as
    [junit]
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270379958485.as(34): col: 7 Error: Method b in abstract class B not implemented by class C
    [junit]
    [junit] class C extends B {
    [junit]       ^
    [junit]
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests9104213270379958485.as(34): col: 7 Error: Method a in abstract class A not implemented by class C
    [junit]
    [junit] class C extends B {
    [junit]       ^
    [junit]
    [junit] After compile:
    [junit] Method b in abstract class B not implemented by class C
    [junit] Method a in abstract class A not implemented by class C
    [junit]
    [junit] Generating test:
    [junit] Compiling test:
    [junit] -external-library-path=C:\dev\player\11.1\playerglobal.swc -allow-abstract-classes=true C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818104861768.as
    [junit]
    [junit] C:\dev\full_royale_sdk\royale-compiler\compiler\target\junit-temp\ASAbstractClassTests8758880818104861768.as(33): col: 7 Error: Method a in abstract class A not implemented by class C
    [junit]
    [junit] class C extends B {
    [junit]       ^
    [junit]
    [junit] After compile:
    [junit] Method a in abstract class A not implemented by class C
    [j