Hi, I think I'm suffering this problem now. Today make "ant all" as always and unexpectedly the process fail very soon trying to build the compiler. I check this thread and commented environment vars related to FLASH_PLAYER
#export PLAYERGLOBAL_HOME=~/Dev/Flash/Player #export PLAYERGLOBAL_VERSION=30.0 #export FLASHPLAYER_DEBUGGER=/Applications/Flash\ Player.app/Contents/MacOS/Fla$ This makes succeed building compiler and typedefs, but then fails on frameworks. I didn't find other combination to make ant succeed and I think my environment doesn't change from yesterday, so this is very strange What do you do in this case? Thanks El lun., 6 ago. 2018 a las 8:36, Harbs (<harbs.li...@gmail.com>) escribió: > Interesting. My variables are set without quotes, but I am escaping the > spaces. I’m pretty sure that’s necessary in a shell script. > > > On Aug 6, 2018, at 6:07 AM, Alex Harui <aha...@adobe.com.INVALID> wrote: > > > > FWIW, I ran into the same or similar problem today. For me, quotes > around the entry in env.properties: > > FLASHPLAYER_DEBUGGER='/Users/aharui/adobe/flashplayer/11.1/Flash Player > Debugger.app/Contents/MacOS/Flash Player Debugger' > > > > Resulted in the FLASHPLAYER_DEBUGGER not being found and the tests going > into "no-Flash" test running even though they'd been compiled with Flash > playerglobal.swc". Removing the quotes resulted in the test runner finding > FLASHPLAYER_DEBUGGER and the tests passed again. > > > > The output went from having quotes to not having quotes as in: > > > > environment property - FLASHPLAYER_DEBUGGER = > /Users/aharui/adobe/flashplayer/11.1/Flash Player > Debugger.app/Contents/MacOS/Flash Player Debugger > > > > HTH, > > -Alex > > > > On 7/26/18, 9:15 AM, "Alex Harui" <aha...@adobe.com.INVALID> wrote: > > > > In general, if "ant all" fails in the compiler, try running "ant" > directly in royale-compiler. Same for royale-typedefs. > > > > HTH, > > -Alex > > > > On 7/26/18, 2:00 AM, "Harbs" <harbs.li...@gmail.com> wrote: > > > > I’m running ant all from royale-asjs. > > > > I’m not sure when I’m going to have the time to work on this, but > I’ll look into it more when I do… > > > >> On Jul 26, 2018, at 10:35 AM, Alex Harui <aha...@adobe.com.INVALID> > wrote: > >> > >> If you don't get errors in the output for compiling the Date tests > without the Flash variables, that implies that an older compiler is > running. The latest should be picking up the field-readonly and result in > those compile errors in the console output, but since the compile errors > are expected that should not result in a failure. The failure might be > something else like some sensitivity to your time zone. So check the > junit-reports file and see what it says failed if you can reproduce it. > >> > >> Same for typedefs. It seems like you aren't running the latest > compiler. Are you just running "ant" from royale-typedefs? Maybe it is > picking up the jars from royale-asjs that haven't been updated yet. You > can add some <echo> statements to the js/build.xml and see what > ROYALE_TRANSPILER_HOME is calculated to be. > >> > >> HTH, > >> -Alex > >> > >> On 7/25/18, 11:12 PM, "Harbs" <harbs.li...@gmail.com> wrote: > >> > >> > >>> On Jul 26, 2018, at 2:55 AM, Alex Harui <aha...@adobe.com.INVALID> > wrote: > >>> > >>> I took a closer look. If you are getting ASDateTest failures, you > will need to open compiler/target/junit-reports/TEST-as.ASDateTests.xml and > see what the failure is. The compile errors in the output are expected and > should not cause test failures. > >> > >> I’ll try to look at this again. I was only getting the errors when I > compile with the Flash environment variables. > >> > >>> If you are having a problem with field-readonly, it implies that the > compiler you are using is stale. > compiler-externc/src/main/java/org/apache/royale/compiler/clients/ExternCConfiguration.java > should contain an entry for field-readonly. > >> > >> My source does contain the entry. That’s what’s really weird. I > confirmed that externs was wiped and regenerated when I compile. Is there > some file I might be missing? > >> > >>> > >>> HTH, > >>> -Alex > >>> > >>> On 7/25/18, 12:52 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >>> > >>> I rolled back royale-typedefs to before the Date changes to enable my > compilation. It does seem to me like we need to figure this out though… > >>> > >>> Harbs > >>> > >>>> On Jul 25, 2018, at 9:59 AM, Harbs <harbs.li...@gmail.com> wrote: > >>>> > >>>> I tried without environment vars and that might have made a > difference. I’ using these normally: > >>>> > >>>> export ROYALE_COMPILER_REPO=/Apache/royale-compiler > >>>> export AIR_HOME=/Apache/frameworks/AIRSDK_Compiler > >>>> export PLAYERGLOBAL_HOME=/Apache/frameworks/libs/player > >>>> export FLASHPLAYER_DEBUGGER=/Apache/frameworks/Flash\ Player\ > Debugger.app/Contents/MacOS/Flash\ Player\ Debugger > >>>> export ROYALE_HOME=/Apache/royale-asjs > >>>> > >>>> I’m now getting field-readonly error again… :-( > >>>> > >>>>> On Jul 25, 2018, at 9:52 AM, Harbs <harbs.li...@gmail.com> wrote: > >>>>> > >>>>> Weird. I ran ant all again and it’s no longer getting this error, > but it’s failing again on the Date tests (4 failures). > >>>>> > >>>>>> On Jul 25, 2018, at 9:43 AM, Harbs <harbs.li...@gmail.com <mailto: > harbs.li...@gmail.com>> wrote: > >>>>>> > >>>>>> Yes I did, but it looks like that does not clear the files in the > typedefs repo. > >>>>>> > >>>>>> I just manually deleted all the target folders in typedefs and now > I’m getting a new error: > >>>>>> > >>>>>> externc: > >>>>>> [java] Unknown tag:field-readonly > >>>>>> [java] 0.362347459 seconds > >>>>>> [java] > org.apache.royale.compiler.exceptions.ConfigurationException.UnknownVariable[var='field-readonly', > line='178', > source='/Apache/royale-typedefs/js/src/main/config/externc-config.xml']. > >>>>>> [java] > /Apache/royale-typedefs/js/src/main/config/externc-config.xml (line: 178) > >>>>>> > >>>>>> Where is field-readonly supposed to be defined? > >>>>>> > >>>>>>> On Jul 24, 2018, at 8:58 PM, Alex Harui <aha...@adobe.com.INVALID > <mailto:aha...@adobe.com.INVALID>> wrote: > >>>>>>> > >>>>>>> Did you run "ant wipe-all" in royale-compiler? > >>>>>>> > >>>>>>> On 7/24/18, 10:47 AM, "Harbs" <harbs.li...@gmail.com <mailto: > harbs.li...@gmail.com>> wrote: > >>>>>>> > >>>>>>> I’m currently getting the following errors: > >>>>>>> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2F3Wpg&data=02%7C01%7Caharui%40adobe.com%7Cae7cd23df8204531b26108d5f18d8d46%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636680512616417047&sdata=SjmjSTlfL3tBEAHR7o%2FEx4akD7LhTx0QQqk3w1Bkt%2F0%3D&reserved=0 > < > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2F3Wpg&data=02%7C01%7Caharui%40adobe.com%7Cae7cd23df8204531b26108d5f18d8d46%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636680512616417047&sdata=SjmjSTlfL3tBEAHR7o%2FEx4akD7LhTx0QQqk3w1Bkt%2F0%3D&reserved=0> > < > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2F3Wpg&data=02%7C01%7Caharui%40adobe.com%7Cae7cd23df8204531b26108d5f18d8d46%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636680512616417047&sdata=SjmjSTlfL3tBEAHR7o%2FEx4akD7LhTx0QQqk3w1Bkt%2F0%3D&reserved=0 > < > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2F3Wpg&data=02%7C01%7Caharui%40adobe.com%7Cae7cd23df8204531b26108d5f18d8d46%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636680512616417047&sdata=SjmjSTlfL3tBEAHR7o%2FEx4akD7LhTx0QQqk3w1Bkt%2F0%3D&reserved=0 > >> > >>>>>>> > >>>>>>> It looks like the Date tests are causing problems. Any ideas why? > >>>>>>> > >>>>>>> Harbs > >>>>>>> > >>>>>> > >>>>> > >>>> > >>> > >>> > >>> > >> > >> > >> > > > > > > > > > > > > -- Carlos Rovira http://about.me/carlosrovira