Re: Eclipse Run configuration setup
> > Unfortunately, I started the refactoring to make Flex SDK optional > yesterday and don't really want to revert everything or set up another > Eclipse workspace. It will be several days until I get Eclipse working > again, and hopefully it will make this issue go away for future Eclipse > users. > I'm not in a hurry, so if you know what's going on, please take your time fixin' it ;-) FLEX_HOME should point to a Flex SDK, not a FlexJS/Royale SDK. ASJS_HOME > points to a FlexJS/Royale SDK. It probably has to be a Royale SDK if you > are synced up with develop branch. See env-template.properties. > Hopefully it is up to date after the renaming. > I tried all combinations of FLEX_HOME and ASJS_HOME I could think of. No variation left me with 0 errors or failures. The errors or failures changed over the variations, but none made it to 0. > Also, I did not re-use old Eclipse run configs for flex-falcon after the > rename. I built a whole new workspace against the Royale repos. It might > be that the SWC tests were never run given how I set up my run configs. > I came back in after Flex was forked, so my workspace is "royale only." I didn't even have a clone of the flex-sdk and flex-falcon repos until I tried to make it work by including them this afternoon. > IMO, we want the Royale compiler to be backward compatible as much as > possible with compiling old Flex apps. Maybe some code is still needed to > fallback from royale-config.xml to flex-config.xml. I'm pretty sure the > code already doesn't care if the tag inside a -config.xml file is > or . > I appreciate the effort, and my comments earlier were meant as constructive observations. The ant build are working, but I think that is because not all test failures cause the builds to fail. The JUnit tests in Eclipse are brutal. If not all pass, it will bug you about it ;-) Thanks, EdB -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
Re: Eclipse Run configuration setup
Hi Erik, Unfortunately, I started the refactoring to make Flex SDK optional yesterday and don't really want to revert everything or set up another Eclipse workspace. It will be several days until I get Eclipse working again, and hopefully it will make this issue go away for future Eclipse users. FLEX_HOME should point to a Flex SDK, not a FlexJS/Royale SDK. ASJS_HOME points to a FlexJS/Royale SDK. It probably has to be a Royale SDK if you are synced up with develop branch. See env-template.properties. Hopefully it is up to date after the renaming. Also, I did not re-use old Eclipse run configs for flex-falcon after the rename. I built a whole new workspace against the Royale repos. It might be that the SWC tests were never run given how I set up my run configs. IMO, we want the Royale compiler to be backward compatible as much as possible with compiling old Flex apps. Maybe some code is still needed to fallback from royale-config.xml to flex-config.xml. I'm pretty sure the code already doesn't care if the tag inside a -config.xml file is or . HTH, -Alex On 11/8/17, 6:57 AM, "Erik de Bruin" wrote: >Alex, I guess it's just you and me? > >It appears some tests expect the 'old' Flex SDK in FLEX_HOME, while others >expect 'royale-asjs'. That's one thing. Another is that the SWC tests are >all failing for me, again it seems on assumptions that are no longer valid >after the fork and rename. > >Thanks, > >EdB > > > >On Wed, Nov 8, 2017 at 3:28 PM, Harbs wrote: > >> Sorry that’s above my pay grade. >> >> One day I hope to get the project setup in Eclipse and get my feet wet, >> but I’ve not gotten there yet… >> >> Good luck! >> Harbs >> >> > On Nov 8, 2017, at 1:31 PM, Erik de Bruin wrote: >> > >> > Harbs, >> > >> > Are you talking about the 'ant' build succeeding or about running the >> tests >> > on the compiler project in Eclipse? >> > >> > Because the ant build succeeds even if a bunch of tests fail, while >> running >> > the tests in Eclipse will show all errors and failures. >> > >> > Thanks, >> > >> > EdB >> > >> > >> > >> > >> > >> > On Wed, Nov 8, 2017 at 11:41 AM, Harbs wrote: >> > >> >> You need ROYALE_HOME for the royale-asjs repo. >> >> >> >> The new environment var for the compiler is: ROYALE_COMPILER_REPO >> >> >> >> I’m pretty sure those are the only two you need. >> >> >> >> FWIW, my script to set my env vars looks like this (although much of >>it >> is >> >> probably no longer needed or correct). >> >> >> >> #!/bin/sh >> >> >> >> export ROYALE_COMPILER_REPO=/Users/harbs/Documents/ApacheRoyale/ >> >> royale-compiler >> >> export >>FLEXUNIT_HOME=/Users/harbs/Documents/ApacheRoyale/flex-flexunit >> >> export FLEX_HOME=/Users/harbs/Documents/ApacheRoyale/flex-sdk >> >> export AIR_HOME=/Users/harbs/Documents/ApacheRoyale/ >> >> frameworks/AIRSDK_Compiler >> >> export PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/ >> >> frameworks/libs/player >> >> export FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheRoyale/ >> frameworks/Flash\ >> >> Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger >> >> export FLEXJS_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs >> >> export FALCONJX_HOME=/Users/harbs/Documents/ApacheRoyale/royale- >> >> compiler/compiler-jx >> >> export FLEXJS_TYPEDEFS_HOME=/Users/harbs/Documents/ApacheRoyale/ >> >> royale-typedefs >> >> export GOOG_HOME=/Users/harbs/Documents/ApacheRoyale/ >> >> frameworks/google/closure-library >> >> >> >> export ROYALE_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs >> >> >> >>> On Nov 8, 2017, at 12:29 PM, Erik de Bruin >>wrote: >> >>> >> >>> Hi, >> >>> >> >>> I'm still frustrated that not all tests on compiler are passing for >> me. I >> >>> think this may revolve around the various framework builds and >> >> environment >> >>> vars... >> >>> >> >>> When I set FLEX_HOME to my asjs git repo that I have built with 'ant >> >> all', >> >>> I get a lot of errors saying: >> >>> >> >>> < >> >>> unable to open >> >>> >>'/Users/erik/Documents/git/royale-asjs/frameworks/libs/framework.swc'. >> >>> unable to open >> >>> '/Users/erik/Documents/git/royale-asjs/frameworks/locale/ >> >> en_US/framework_rb.swc'. >> >> >>> >> >>> If I point FLEX_HOME to pre-built nightly of the asjs framework, I >>get >> >>> different errors: >> >>> >> >>> < >> >>> unknown configuration variable 'compiler.targets'. >> >>> /Users/erik/Documents/Royale/apache-royale-0.9.0-bin/ >> >> frameworks/royale-config.xml >> >>> (line: 33) >> >> >>> >> >>> If I point FLEX_HOME to a release of the flex framework, I a lot of >> these >> >>> errors: >> >>> >> >>> < >> >>> unable to open >> >>> '/Users/erik/Documents/Royale/apache-flex-sdk-4.16.0-bin/ >> >> frameworks/royale-config.xml'. >> >> >>> >> >>> What am I doing wrong? Can the folks that have all tests passing on >>the >> >>> 'royale-compiler/compiler' project maybe share their setup and >> settings? >> >>> >> >>> Thanks, >> >>> >> >>> EdB >> >>> >> >>> >> >>> >> >>> -- >> >>> Ix M
Re: Eclipse Run configuration setup
Alex, I guess it's just you and me? It appears some tests expect the 'old' Flex SDK in FLEX_HOME, while others expect 'royale-asjs'. That's one thing. Another is that the SWC tests are all failing for me, again it seems on assumptions that are no longer valid after the fork and rename. Thanks, EdB On Wed, Nov 8, 2017 at 3:28 PM, Harbs wrote: > Sorry that’s above my pay grade. > > One day I hope to get the project setup in Eclipse and get my feet wet, > but I’ve not gotten there yet… > > Good luck! > Harbs > > > On Nov 8, 2017, at 1:31 PM, Erik de Bruin wrote: > > > > Harbs, > > > > Are you talking about the 'ant' build succeeding or about running the > tests > > on the compiler project in Eclipse? > > > > Because the ant build succeeds even if a bunch of tests fail, while > running > > the tests in Eclipse will show all errors and failures. > > > > Thanks, > > > > EdB > > > > > > > > > > > > On Wed, Nov 8, 2017 at 11:41 AM, Harbs wrote: > > > >> You need ROYALE_HOME for the royale-asjs repo. > >> > >> The new environment var for the compiler is: ROYALE_COMPILER_REPO > >> > >> I’m pretty sure those are the only two you need. > >> > >> FWIW, my script to set my env vars looks like this (although much of it > is > >> probably no longer needed or correct). > >> > >> #!/bin/sh > >> > >> export ROYALE_COMPILER_REPO=/Users/harbs/Documents/ApacheRoyale/ > >> royale-compiler > >> export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheRoyale/flex-flexunit > >> export FLEX_HOME=/Users/harbs/Documents/ApacheRoyale/flex-sdk > >> export AIR_HOME=/Users/harbs/Documents/ApacheRoyale/ > >> frameworks/AIRSDK_Compiler > >> export PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/ > >> frameworks/libs/player > >> export FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheRoyale/ > frameworks/Flash\ > >> Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger > >> export FLEXJS_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs > >> export FALCONJX_HOME=/Users/harbs/Documents/ApacheRoyale/royale- > >> compiler/compiler-jx > >> export FLEXJS_TYPEDEFS_HOME=/Users/harbs/Documents/ApacheRoyale/ > >> royale-typedefs > >> export GOOG_HOME=/Users/harbs/Documents/ApacheRoyale/ > >> frameworks/google/closure-library > >> > >> export ROYALE_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs > >> > >>> On Nov 8, 2017, at 12:29 PM, Erik de Bruin wrote: > >>> > >>> Hi, > >>> > >>> I'm still frustrated that not all tests on compiler are passing for > me. I > >>> think this may revolve around the various framework builds and > >> environment > >>> vars... > >>> > >>> When I set FLEX_HOME to my asjs git repo that I have built with 'ant > >> all', > >>> I get a lot of errors saying: > >>> > >>> < > >>> unable to open > >>> '/Users/erik/Documents/git/royale-asjs/frameworks/libs/framework.swc'. > >>> unable to open > >>> '/Users/erik/Documents/git/royale-asjs/frameworks/locale/ > >> en_US/framework_rb.swc'. > > >>> > >>> If I point FLEX_HOME to pre-built nightly of the asjs framework, I get > >>> different errors: > >>> > >>> < > >>> unknown configuration variable 'compiler.targets'. > >>> /Users/erik/Documents/Royale/apache-royale-0.9.0-bin/ > >> frameworks/royale-config.xml > >>> (line: 33) > > >>> > >>> If I point FLEX_HOME to a release of the flex framework, I a lot of > these > >>> errors: > >>> > >>> < > >>> unable to open > >>> '/Users/erik/Documents/Royale/apache-flex-sdk-4.16.0-bin/ > >> frameworks/royale-config.xml'. > > >>> > >>> What am I doing wrong? Can the folks that have all tests passing on the > >>> 'royale-compiler/compiler' project maybe share their setup and > settings? > >>> > >>> Thanks, > >>> > >>> EdB > >>> > >>> > >>> > >>> -- > >>> Ix Multimedia Software > >>> > >>> Jan Luykenstraat 27 > >>> 3521 VB Utrecht > >>> > >>> T. 06-51952295 > >>> I. www.ixsoftware.nl > >> > >> > > > > > > -- > > Ix Multimedia Software > > > > Jan Luykenstraat 27 > > 3521 VB Utrecht > > > > T. 06-51952295 > > I. www.ixsoftware.nl > > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
Re: Eclipse Run configuration setup
Sorry that’s above my pay grade. One day I hope to get the project setup in Eclipse and get my feet wet, but I’ve not gotten there yet… Good luck! Harbs > On Nov 8, 2017, at 1:31 PM, Erik de Bruin wrote: > > Harbs, > > Are you talking about the 'ant' build succeeding or about running the tests > on the compiler project in Eclipse? > > Because the ant build succeeds even if a bunch of tests fail, while running > the tests in Eclipse will show all errors and failures. > > Thanks, > > EdB > > > > > > On Wed, Nov 8, 2017 at 11:41 AM, Harbs wrote: > >> You need ROYALE_HOME for the royale-asjs repo. >> >> The new environment var for the compiler is: ROYALE_COMPILER_REPO >> >> I’m pretty sure those are the only two you need. >> >> FWIW, my script to set my env vars looks like this (although much of it is >> probably no longer needed or correct). >> >> #!/bin/sh >> >> export ROYALE_COMPILER_REPO=/Users/harbs/Documents/ApacheRoyale/ >> royale-compiler >> export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheRoyale/flex-flexunit >> export FLEX_HOME=/Users/harbs/Documents/ApacheRoyale/flex-sdk >> export AIR_HOME=/Users/harbs/Documents/ApacheRoyale/ >> frameworks/AIRSDK_Compiler >> export PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/ >> frameworks/libs/player >> export >> FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheRoyale/frameworks/Flash\ >> Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger >> export FLEXJS_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs >> export FALCONJX_HOME=/Users/harbs/Documents/ApacheRoyale/royale- >> compiler/compiler-jx >> export FLEXJS_TYPEDEFS_HOME=/Users/harbs/Documents/ApacheRoyale/ >> royale-typedefs >> export GOOG_HOME=/Users/harbs/Documents/ApacheRoyale/ >> frameworks/google/closure-library >> >> export ROYALE_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs >> >>> On Nov 8, 2017, at 12:29 PM, Erik de Bruin wrote: >>> >>> Hi, >>> >>> I'm still frustrated that not all tests on compiler are passing for me. I >>> think this may revolve around the various framework builds and >> environment >>> vars... >>> >>> When I set FLEX_HOME to my asjs git repo that I have built with 'ant >> all', >>> I get a lot of errors saying: >>> >>> < >>> unable to open >>> '/Users/erik/Documents/git/royale-asjs/frameworks/libs/framework.swc'. >>> unable to open >>> '/Users/erik/Documents/git/royale-asjs/frameworks/locale/ >> en_US/framework_rb.swc'. >>> >>> If I point FLEX_HOME to pre-built nightly of the asjs framework, I get >>> different errors: >>> >>> < >>> unknown configuration variable 'compiler.targets'. >>> /Users/erik/Documents/Royale/apache-royale-0.9.0-bin/ >> frameworks/royale-config.xml >>> (line: 33) >>> >>> If I point FLEX_HOME to a release of the flex framework, I a lot of these >>> errors: >>> >>> < >>> unable to open >>> '/Users/erik/Documents/Royale/apache-flex-sdk-4.16.0-bin/ >> frameworks/royale-config.xml'. >>> >>> What am I doing wrong? Can the folks that have all tests passing on the >>> 'royale-compiler/compiler' project maybe share their setup and settings? >>> >>> Thanks, >>> >>> EdB >>> >>> >>> >>> -- >>> Ix Multimedia Software >>> >>> Jan Luykenstraat 27 >>> 3521 VB Utrecht >>> >>> T. 06-51952295 >>> I. www.ixsoftware.nl >> >> > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl
Re: Eclipse Run configuration setup
Harbs, Are you talking about the 'ant' build succeeding or about running the tests on the compiler project in Eclipse? Because the ant build succeeds even if a bunch of tests fail, while running the tests in Eclipse will show all errors and failures. Thanks, EdB On Wed, Nov 8, 2017 at 11:41 AM, Harbs wrote: > You need ROYALE_HOME for the royale-asjs repo. > > The new environment var for the compiler is: ROYALE_COMPILER_REPO > > I’m pretty sure those are the only two you need. > > FWIW, my script to set my env vars looks like this (although much of it is > probably no longer needed or correct). > > #!/bin/sh > > export ROYALE_COMPILER_REPO=/Users/harbs/Documents/ApacheRoyale/ > royale-compiler > export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheRoyale/flex-flexunit > export FLEX_HOME=/Users/harbs/Documents/ApacheRoyale/flex-sdk > export AIR_HOME=/Users/harbs/Documents/ApacheRoyale/ > frameworks/AIRSDK_Compiler > export PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/ > frameworks/libs/player > export > FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheRoyale/frameworks/Flash\ > Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger > export FLEXJS_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs > export FALCONJX_HOME=/Users/harbs/Documents/ApacheRoyale/royale- > compiler/compiler-jx > export FLEXJS_TYPEDEFS_HOME=/Users/harbs/Documents/ApacheRoyale/ > royale-typedefs > export GOOG_HOME=/Users/harbs/Documents/ApacheRoyale/ > frameworks/google/closure-library > > export ROYALE_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs > > > On Nov 8, 2017, at 12:29 PM, Erik de Bruin wrote: > > > > Hi, > > > > I'm still frustrated that not all tests on compiler are passing for me. I > > think this may revolve around the various framework builds and > environment > > vars... > > > > When I set FLEX_HOME to my asjs git repo that I have built with 'ant > all', > > I get a lot of errors saying: > > > > < > > unable to open > > '/Users/erik/Documents/git/royale-asjs/frameworks/libs/framework.swc'. > > unable to open > > '/Users/erik/Documents/git/royale-asjs/frameworks/locale/ > en_US/framework_rb.swc'. > >> > > > > If I point FLEX_HOME to pre-built nightly of the asjs framework, I get > > different errors: > > > > < > > unknown configuration variable 'compiler.targets'. > > /Users/erik/Documents/Royale/apache-royale-0.9.0-bin/ > frameworks/royale-config.xml > > (line: 33) > >> > > > > If I point FLEX_HOME to a release of the flex framework, I a lot of these > > errors: > > > > < > > unable to open > > '/Users/erik/Documents/Royale/apache-flex-sdk-4.16.0-bin/ > frameworks/royale-config.xml'. > >> > > > > What am I doing wrong? Can the folks that have all tests passing on the > > 'royale-compiler/compiler' project maybe share their setup and settings? > > > > Thanks, > > > > EdB > > > > > > > > -- > > Ix Multimedia Software > > > > Jan Luykenstraat 27 > > 3521 VB Utrecht > > > > T. 06-51952295 > > I. www.ixsoftware.nl > > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
Re: Eclipse Run configuration setup
You need ROYALE_HOME for the royale-asjs repo. The new environment var for the compiler is: ROYALE_COMPILER_REPO I’m pretty sure those are the only two you need. FWIW, my script to set my env vars looks like this (although much of it is probably no longer needed or correct). #!/bin/sh export ROYALE_COMPILER_REPO=/Users/harbs/Documents/ApacheRoyale/royale-compiler export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheRoyale/flex-flexunit export FLEX_HOME=/Users/harbs/Documents/ApacheRoyale/flex-sdk export AIR_HOME=/Users/harbs/Documents/ApacheRoyale/frameworks/AIRSDK_Compiler export PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/frameworks/libs/player export FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheRoyale/frameworks/Flash\ Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger export FLEXJS_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs export FALCONJX_HOME=/Users/harbs/Documents/ApacheRoyale/royale-compiler/compiler-jx export FLEXJS_TYPEDEFS_HOME=/Users/harbs/Documents/ApacheRoyale/royale-typedefs export GOOG_HOME=/Users/harbs/Documents/ApacheRoyale/frameworks/google/closure-library export ROYALE_HOME=/Users/harbs/Documents/ApacheRoyale/royale-asjs > On Nov 8, 2017, at 12:29 PM, Erik de Bruin wrote: > > Hi, > > I'm still frustrated that not all tests on compiler are passing for me. I > think this may revolve around the various framework builds and environment > vars... > > When I set FLEX_HOME to my asjs git repo that I have built with 'ant all', > I get a lot of errors saying: > > < > unable to open > '/Users/erik/Documents/git/royale-asjs/frameworks/libs/framework.swc'. > unable to open > '/Users/erik/Documents/git/royale-asjs/frameworks/locale/en_US/framework_rb.swc'. >> > > If I point FLEX_HOME to pre-built nightly of the asjs framework, I get > different errors: > > < > unknown configuration variable 'compiler.targets'. > /Users/erik/Documents/Royale/apache-royale-0.9.0-bin/frameworks/royale-config.xml > (line: 33) >> > > If I point FLEX_HOME to a release of the flex framework, I a lot of these > errors: > > < > unable to open > '/Users/erik/Documents/Royale/apache-flex-sdk-4.16.0-bin/frameworks/royale-config.xml'. >> > > What am I doing wrong? Can the folks that have all tests passing on the > 'royale-compiler/compiler' project maybe share their setup and settings? > > Thanks, > > EdB > > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl
Eclipse Run configuration setup
Hi, I'm still frustrated that not all tests on compiler are passing for me. I think this may revolve around the various framework builds and environment vars... When I set FLEX_HOME to my asjs git repo that I have built with 'ant all', I get a lot of errors saying: < unable to open '/Users/erik/Documents/git/royale-asjs/frameworks/libs/framework.swc'. unable to open '/Users/erik/Documents/git/royale-asjs/frameworks/locale/en_US/framework_rb.swc'. > If I point FLEX_HOME to pre-built nightly of the asjs framework, I get different errors: < unknown configuration variable 'compiler.targets'. /Users/erik/Documents/Royale/apache-royale-0.9.0-bin/frameworks/royale-config.xml (line: 33) > If I point FLEX_HOME to a release of the flex framework, I a lot of these errors: < unable to open '/Users/erik/Documents/Royale/apache-flex-sdk-4.16.0-bin/frameworks/royale-config.xml'. > What am I doing wrong? Can the folks that have all tests passing on the 'royale-compiler/compiler' project maybe share their setup and settings? Thanks, EdB -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl