You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Erik de Bruin <er...@ixsoftware.nl> on 2012/11/18 18:55:22 UTC

Falcon compiler(.tests) building

Hi,

I have followed the various instructions and was able to successfully
build the Falcon compiler. Along the way I encountered several issues
that are not yet documented (I'm on OS X 10.8):

- I needed to edit the 'build.xml' file on line 50, to point the
'sdk.branch' property to the correct location of the SDK on my system;
- when trying to use the mxmlc on a project, I got 'permission
denied'. Setting the executable bit on the file corrected that;

After that I was able to run from the command line and successfully
build "Hello.as", which ran fine in the standalone Flash debugger.

So I proceed to get the projects 'compiler' and 'compiler.tests' to
work in in Eclipse. After importing them, I get a 'problem' on each
one:
- on 'compiler', I got a message about 'ANT_JAR', which after I
re-created that variable in the project build path and pointed it to
'ant.jar' on my system, went away;
- on 'compiler.tests' I got "missing required library
'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
fixed that.

I got 'build.xml' on 'compiler' working in Eclipse after adding:

<property name="env.JFLEX_JAR"
value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>

Then I ran 'build.xml' on 'compiler.tests' and that completed, but
with plenty of FAILED tests (which I guess is expected?).

So, my environment seems to be set up. Now: how can I help?

Note: I'm a noob on the topic of compilers, but I can copy-paste like
a Boss, so I'm sure you can use me ;-) Point me to the code and put me
to work!

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Hi Erik,

I don't remember that many problems but, I'm not on OSX either.

Running the compiler.tests you should only have 1 failed test being  
frameworkSWC() functional test (with warnings no errors), all other  
tests should pass as it stands.

- I did get the 'ANT_JAR' problem.

I would have to redo everything to see if I got any, my system is setup now.

> So, my environment seems to be set up. Now: how can I help?

Ha, this is a loaded question right now. It's really doing homework  
and getting an understanding of the definition framework and how MXML  
works.

I would suggest starting with the ASC and MXMLC classes from the  
mainNoExit() static method and backtracking to see what is involved in  
the actual startup, config, parsing and rendering.

Mike



Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Hi,
>
> I have followed the various instructions and was able to successfully
> build the Falcon compiler. Along the way I encountered several issues
> that are not yet documented (I'm on OS X 10.8):
>
> - I needed to edit the 'build.xml' file on line 50, to point the
> 'sdk.branch' property to the correct location of the SDK on my system;
> - when trying to use the mxmlc on a project, I got 'permission
> denied'. Setting the executable bit on the file corrected that;
>
> After that I was able to run from the command line and successfully
> build "Hello.as", which ran fine in the standalone Flash debugger.
>
> So I proceed to get the projects 'compiler' and 'compiler.tests' to
> work in in Eclipse. After importing them, I get a 'problem' on each
> one:
> - on 'compiler', I got a message about 'ANT_JAR', which after I
> re-created that variable in the project build path and pointed it to
> 'ant.jar' on my system, went away;
> - on 'compiler.tests' I got "missing required library
> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
> fixed that.
>
> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>
> <property name="env.JFLEX_JAR"
> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>
> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
> with plenty of FAILED tests (which I guess is expected?).
>
> So, my environment seems to be set up. Now: how can I help?
>
> Note: I'm a noob on the topic of compilers, but I can copy-paste like
> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
> to work!
>
> EdB
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Cyrill Zadra <cy...@gmail.com>.
> So, my environment seems to be set up. Now: how can I help?
>
> Note: I'm a noob on the topic of compilers, but I can copy-paste like
> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
> to work!
>

Hey .. welcome in the club. Same here no compiler expirience. What I
do is try to compile my own application and the mustella tests.
In an error case I start to find the cause and try to fix it and if
it's to difficult I create just a jira task with an example to
reproduce it.

In jira a label the bugs with "Falcon". There are already a few see
[1]. The progress of falcon with mustella tests you find in a google
spreadsheet [2]
I think it's a productive way to to learn how falcon works and it
really has a good documentation. I'm not used to that ;-).

[1] https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+FLEX+AND+labels+%3D+Falcon+AND+status+in+%28Open%2C+%22In+Progress%22%29
[2] https://docs.google.com/spreadsheet/ccc?key=0Au2CJCp4o-t3dG9CeW5LbkRmdGZIb0pRdWJWLWljVUE#gid=0

Re: Falcon compiler(.tests) building

Posted by Cyrill Zadra <cy...@gmail.com>.
> I updated the build.xml file to create the temp folder, did you svn update?
>
> Mike
>

Yes.. I just wanted to make sure it's not the issue in Erik's case.

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <mi...@teotigraphix.com>.
Cyrill,

I updated the build.xml file to create the temp folder, did you svn update?

Mike

Quoting Cyrill Zadra <cy...@gmail.com>:

> Ok.. mhh
>
> How do you execute the junit tests?
>
> With ant script or eclipse?
>
> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Cyrill,
>>
>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>
>> So, I reverted the compile.tests back to it's original state and run
>> the 'download' target. That indeed also cleared up the missing library
>> issue. But didn't solve the Failed tests thing :-(
>>
>> EdB
>>
>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra  
>> <cy...@gmail.com> wrote:
>>> Hi Erik
>>>
>>>> [javac]  
>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable  
>>>> builds
>>>> Warning:  
>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib does  
>>>> not exist.
>>>
>>> I have those errors to.. but shouldn't be the problem.
>>>
>>>> on 'compiler.tests' I got "missing required library
>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>> fixed that.
>>>
>>> Instead of fixing the entry you could also execute the download target
>>> of the build.xml.
>>>
>>> Do you have a temp folder in compile.tests projects?
>>>
>>>
>>>
>>> cyrill
>>>
>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>> <ap...@teotigraphix.com> wrote:
>>>> Usually Eclipse doesn't refresh folders immediately( the results folder is
>>>> created by junit build), press F5 on the compiler.tests project folder.
>>>>
>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to  
>>>> show you where
>>>> exactly the null pointer was.
>>>>
>>>> But let me say this again, I have the same code as you and my  
>>>> tests are all
>>>> green except the one functional test that has like 4 warnings it fails on.
>>>>
>>>>
>>>> Mike
>>>>
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>
>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>> Eclipse project…
>>>>>
>>>>> Here is another snippet:
>>>>>
>>>>>   <testcase
>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>     <error
>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>> at
>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>> Source)
>>>>> at
>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>> Source)
>>>>> </error>
>>>>>   </testcase>
>>>>>
>>>>> Doesn't look good ;-)
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>
>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>
>>>>>> Look at the stack traces of the errors.
>>>>>>
>>>>>>
>>>>>> Mike
>>>>>>
>>>>>>
>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>
>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>
>>>>>>>     [junit] Running
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>
>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time  
>>>>>>> elapsed: 0.26 sec
>>>>>>>
>>>>>>>     [junit] TEST
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>>>
>>>>>>> Does that point to something I need to change before my local
>>>>>>> environment is 'fit to test'?
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>
>>>>>>>> "[javac]
>>>>>>>>
>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>
>>>>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>>>>> than a couple of the above):
>>>>>>>>
>>>>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>> does not exist."
>>>>>>>>
>>>>>>>> Help?
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I have followed the various instructions and was able to successfully
>>>>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>
>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on  
>>>>>>>>> my system;
>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>
>>>>>>>>> After that I was able to run from the command line and successfully
>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>>>
>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>>>> one:
>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>> re-created that variable in the project build path and pointed it to
>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build  
>>>>>>>>> path/Libraries'
>>>>>>>>> fixed that.
>>>>>>>>>
>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>
>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>
>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>
>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>
>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code  
>>>>>>>>> and put me
>>>>>>>>> to work!
>>>>>>>>>
>>>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>> http://www.teotigraphix.com
>>>>>> http://blog.teotigraphix.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>>
>>>>
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC
>>>> http://www.teotigraphix.com
>>>> http://blog.teotigraphix.com
>>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>




Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Yeah,

I was going to amend what I said about the fileNode not being created,  
when I stepped through it I realized your fileNode was created but  
there was no children, thats why I pasted the tree structure.

As far as the problem... It has to be an obvious error but I can't  
seem to understand where it is going wrong.

My guess is that a file node as abstract so it WILL be created, the  
problem I would guess lies in the MXML tokenizer is what is messing  
up. Since a file node is automatically created for the compilation  
unit, there is an error happening within that branch of execution.

Mike

Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Stepped through it, and this is what I found:
>
> A file is created in 'temp', and it has a MXML structure in it
> (Sprite->Declaration->[nodeTypeToTest]).
>
> A valid 'fileNode' is created, BUT only the top level node seems to  
> be parsed:
>
> MXMLFileNode(MXMLFileID)
> "/Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler.tests/temp/MXMLBooleanNodeTests8309004183864644727.mxml"
> 1:1 loc: 0-240 abs: 0-240
> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler.tests/temp/MXMLBooleanNodeTests8309004183864644727.mxml
>
> In your example, Michael, I see a tree structure, not in my 'result'.
>
> So, when the 'getMXMLArrayNode' methods starts looking for the
> 'FirstDescendantOfType', it will find none, return null and there is
> my exception.
>
> Where do I look next? The compiler seems to build OK (with a few
> warnings as I mentioned), maybe the tests aren't using the 'correct'
> compiler?
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 8:46 PM, Michael Schmalle
> <ap...@teotigraphix.com> wrote:
>> Erik,
>>
>> My advice is get in Eclipse, right click on the MXMLArray test and Debug as
>> JUnit, have a break point in;
>>
>> MXMLNodeBaseTests.java at line 129; Step through and then click on the
>> fileNode variable;
>>
>> If the output window dosn't show;
>>
>> MXMLFileNode(MXMLFileID)
>> "C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml"
>> 1:1 loc: 0-240 abs: 0-240
>> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>>   MXMLDocumentNode(MXMLDocumentID) "flash.display.Sprite" 0:0 loc: 0-240
>> abs: 0-240
>> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>>     MXMLDeclarationsNode(MXMLDeclarationsID) 1:4 loc: 168-228 abs: 168-228
>> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>>       MXMLArrayNode(MXMLArrayID) "Array" 2:8 loc: 194-205 abs: 194-205
>> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>>
>>
>> Then you have something wrong with the compilation unit not being created
>> which means your permissions for the 'temp' folder might need to be adjusted
>> to read and write or something.
>>
>>
>> Mike
>>
>>
>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>
>>> Same result in Terminal.
>>>
>>> I do see a 'temp' folder.
>>>
>>> In JUnit (which I'm not intimately familiar with) I do see the
>>> following when I run the first test in MXMLArrayNodeTests.java:
>>>
>>>  java.lang.NullPointerException
>>> at
>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(MXMLArrayNodeTests.java:46)
>>> at
>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(MXMLArrayNodeTests.java:55)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
>>> at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>> at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
>>> at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
>>> at
>>> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
>>> at
>>> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>> at
>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>>> at
>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>>> at
>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>>> at
>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>>>
>>> EdB
>>>
>>>
>>> On Sun, Nov 18, 2012 at 8:00 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>
>>>> Eclipse…
>>>>
>>>> Now trying ant in Terminal...
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Sun, Nov 18, 2012 at 7:58 PM, Cyrill Zadra <cy...@gmail.com>
>>>> wrote:
>>>>>
>>>>> Ok.. mhh
>>>>>
>>>>> How do you execute the junit tests?
>>>>>
>>>>> With ant script or eclipse?
>>>>>
>>>>> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>
>>>>>> Cyrill,
>>>>>>
>>>>>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>>>>>
>>>>>> So, I reverted the compile.tests back to it's original state and run
>>>>>> the 'download' target. That indeed also cleared up the missing library
>>>>>> issue. But didn't solve the Failed tests thing :-(
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra <cy...@gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> Hi Erik
>>>>>>>
>>>>>>>> [javac]
>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>> build.sysclasspath=last; set to false for repeatable builds
>>>>>>>> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>> does not exist.
>>>>>>>
>>>>>>>
>>>>>>> I have those errors to.. but shouldn't be the problem.
>>>>>>>
>>>>>>>> on 'compiler.tests' I got "missing required library
>>>>>>>
>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>>> fixed that.
>>>>>>>
>>>>>>> Instead of fixing the entry you could also execute the download target
>>>>>>> of the build.xml.
>>>>>>>
>>>>>>> Do you have a temp folder in compile.tests projects?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> cyrill
>>>>>>>
>>>>>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>
>>>>>>>> Usually Eclipse doesn't refresh folders immediately( the results
>>>>>>>> folder is
>>>>>>>> created by junit build), press F5 on the compiler.tests project
>>>>>>>> folder.
>>>>>>>>
>>>>>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to show
>>>>>>>> you where
>>>>>>>> exactly the null pointer was.
>>>>>>>>
>>>>>>>> But let me say this again, I have the same code as you and my tests
>>>>>>>> are all
>>>>>>>> green except the one functional test that has like 4 warnings it
>>>>>>>> fails on.
>>>>>>>>
>>>>>>>>
>>>>>>>> Mike
>>>>>>>>
>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>
>>>>>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>>>>>> Eclipse project…
>>>>>>>>>
>>>>>>>>> Here is another snippet:
>>>>>>>>>
>>>>>>>>>   <testcase
>>>>>>>>>
>>>>>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>>>>>     <error
>>>>>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>>>>>> at
>>>>>>>>>
>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>>>>>> Source)
>>>>>>>>> at
>>>>>>>>>
>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>>>>>> Source)
>>>>>>>>> </error>
>>>>>>>>>   </testcase>
>>>>>>>>>
>>>>>>>>> Doesn't look good ;-)
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>>>>>
>>>>>>>>>> Look at the stack traces of the errors.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Mike
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>
>>>>>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>>>>>
>>>>>>>>>>>     [junit] Running
>>>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>>>>
>>>>>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed:
>>>>>>>>>>> 0.26 sec
>>>>>>>>>>>
>>>>>>>>>>>     [junit] TEST
>>>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>>>> FAILED
>>>>>>>>>>>
>>>>>>>>>>> Does that point to something I need to change before my local
>>>>>>>>>>> environment is 'fit to test'?
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin
>>>>>>>>>>> <er...@ixsoftware.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>>>>>
>>>>>>>>>>>> "[javac]
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>>>>>
>>>>>>>>>>>> When I do a 'wipe' and build again, I see one specific warning
>>>>>>>>>>>> (other
>>>>>>>>>>>> than a couple of the above):
>>>>>>>>>>>>
>>>>>>>>>>>> "Warning:
>>>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>>>>>> does not exist."
>>>>>>>>>>>>
>>>>>>>>>>>> Help?
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin
>>>>>>>>>>>> <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>>>>> successfully
>>>>>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>>>>>> issues
>>>>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>>>>
>>>>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>>>>>> system;
>>>>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>>>>
>>>>>>>>>>>>> After that I was able to run from the command line and
>>>>>>>>>>>>> successfully
>>>>>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash
>>>>>>>>>>>>> debugger.
>>>>>>>>>>>>>
>>>>>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests'
>>>>>>>>>>>>> to
>>>>>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on
>>>>>>>>>>>>> each
>>>>>>>>>>>>> one:
>>>>>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>>>>>> re-created that variable in the project build path and pointed
>>>>>>>>>>>>> it to
>>>>>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build
>>>>>>>>>>>>> path/Libraries'
>>>>>>>>>>>>> fixed that.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>>>>>
>>>>>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed,
>>>>>>>>>>>>> but
>>>>>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>>>>>
>>>>>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste
>>>>>>>>>>>>> like
>>>>>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and
>>>>>>>>>>>>> put me
>>>>>>>>>>>>> to work!
>>>>>>>>>>>>>
>>>>>>>>>>>>> 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
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>>>>> http://www.teotigraphix.com
>>>>>>>>>> http://blog.teotigraphix.com
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ix Multimedia Software
>>>>>>>>>
>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>
>>>>>>>>> T. 06-51952295
>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>>> http://www.teotigraphix.com
>>>>>>>> http://blog.teotigraphix.com
>>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>>
>>
>> --
>> Michael Schmalle - Teoti Graphix, LLC
>> http://www.teotigraphix.com
>> http://blog.teotigraphix.com
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Stepped through it, and this is what I found:

A file is created in 'temp', and it has a MXML structure in it
(Sprite->Declaration->[nodeTypeToTest]).

A valid 'fileNode' is created, BUT only the top level node seems to be parsed:

MXMLFileNode(MXMLFileID)
"/Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler.tests/temp/MXMLBooleanNodeTests8309004183864644727.mxml"
1:1 loc: 0-240 abs: 0-240
/Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler.tests/temp/MXMLBooleanNodeTests8309004183864644727.mxml

In your example, Michael, I see a tree structure, not in my 'result'.

So, when the 'getMXMLArrayNode' methods starts looking for the
'FirstDescendantOfType', it will find none, return null and there is
my exception.

Where do I look next? The compiler seems to build OK (with a few
warnings as I mentioned), maybe the tests aren't using the 'correct'
compiler?

EdB


On Sun, Nov 18, 2012 at 8:46 PM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
> Erik,
>
> My advice is get in Eclipse, right click on the MXMLArray test and Debug as
> JUnit, have a break point in;
>
> MXMLNodeBaseTests.java at line 129; Step through and then click on the
> fileNode variable;
>
> If the output window dosn't show;
>
> MXMLFileNode(MXMLFileID)
> "C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml"
> 1:1 loc: 0-240 abs: 0-240
> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>   MXMLDocumentNode(MXMLDocumentID) "flash.display.Sprite" 0:0 loc: 0-240
> abs: 0-240
> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>     MXMLDeclarationsNode(MXMLDeclarationsID) 1:4 loc: 168-228 abs: 168-228
> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>       MXMLArrayNode(MXMLArrayID) "Array" 2:8 loc: 194-205 abs: 194-205
> C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
>
>
> Then you have something wrong with the compilation unit not being created
> which means your permissions for the 'temp' folder might need to be adjusted
> to read and write or something.
>
>
> Mike
>
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>> Same result in Terminal.
>>
>> I do see a 'temp' folder.
>>
>> In JUnit (which I'm not intimately familiar with) I do see the
>> following when I run the first test in MXMLArrayNodeTests.java:
>>
>>  java.lang.NullPointerException
>> at
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(MXMLArrayNodeTests.java:46)
>> at
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(MXMLArrayNodeTests.java:55)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
>> at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
>> at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
>> at
>> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
>> at
>> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>> at
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>> at
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>> at
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>> at
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 8:00 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>
>>> Eclipse…
>>>
>>> Now trying ant in Terminal...
>>>
>>> EdB
>>>
>>>
>>> On Sun, Nov 18, 2012 at 7:58 PM, Cyrill Zadra <cy...@gmail.com>
>>> wrote:
>>>>
>>>> Ok.. mhh
>>>>
>>>> How do you execute the junit tests?
>>>>
>>>> With ant script or eclipse?
>>>>
>>>> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>
>>>>> Cyrill,
>>>>>
>>>>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>>>>
>>>>> So, I reverted the compile.tests back to it's original state and run
>>>>> the 'download' target. That indeed also cleared up the missing library
>>>>> issue. But didn't solve the Failed tests thing :-(
>>>>>
>>>>> EdB
>>>>>
>>>>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra <cy...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> Hi Erik
>>>>>>
>>>>>>> [javac]
>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>> build.sysclasspath=last; set to false for repeatable builds
>>>>>>> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>> does not exist.
>>>>>>
>>>>>>
>>>>>> I have those errors to.. but shouldn't be the problem.
>>>>>>
>>>>>>> on 'compiler.tests' I got "missing required library
>>>>>>
>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>> fixed that.
>>>>>>
>>>>>> Instead of fixing the entry you could also execute the download target
>>>>>> of the build.xml.
>>>>>>
>>>>>> Do you have a temp folder in compile.tests projects?
>>>>>>
>>>>>>
>>>>>>
>>>>>> cyrill
>>>>>>
>>>>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>
>>>>>>> Usually Eclipse doesn't refresh folders immediately( the results
>>>>>>> folder is
>>>>>>> created by junit build), press F5 on the compiler.tests project
>>>>>>> folder.
>>>>>>>
>>>>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to show
>>>>>>> you where
>>>>>>> exactly the null pointer was.
>>>>>>>
>>>>>>> But let me say this again, I have the same code as you and my tests
>>>>>>> are all
>>>>>>> green except the one functional test that has like 4 warnings it
>>>>>>> fails on.
>>>>>>>
>>>>>>>
>>>>>>> Mike
>>>>>>>
>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>
>>>>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>>>>> Eclipse project…
>>>>>>>>
>>>>>>>> Here is another snippet:
>>>>>>>>
>>>>>>>>   <testcase
>>>>>>>>
>>>>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>>>>     <error
>>>>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>>>>> Source)
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>>>>> Source)
>>>>>>>> </error>
>>>>>>>>   </testcase>
>>>>>>>>
>>>>>>>> Doesn't look good ;-)
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>>>>
>>>>>>>>> Look at the stack traces of the errors.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>
>>>>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>>>>
>>>>>>>>>>     [junit] Running
>>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>>>
>>>>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed:
>>>>>>>>>> 0.26 sec
>>>>>>>>>>
>>>>>>>>>>     [junit] TEST
>>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>>> FAILED
>>>>>>>>>>
>>>>>>>>>> Does that point to something I need to change before my local
>>>>>>>>>> environment is 'fit to test'?
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin
>>>>>>>>>> <er...@ixsoftware.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>>>>
>>>>>>>>>>> "[javac]
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>>>>
>>>>>>>>>>> When I do a 'wipe' and build again, I see one specific warning
>>>>>>>>>>> (other
>>>>>>>>>>> than a couple of the above):
>>>>>>>>>>>
>>>>>>>>>>> "Warning:
>>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>>>>> does not exist."
>>>>>>>>>>>
>>>>>>>>>>> Help?
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin
>>>>>>>>>>> <er...@ixsoftware.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>>>> successfully
>>>>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>>>>> issues
>>>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>>>
>>>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>>>>> system;
>>>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>>>
>>>>>>>>>>>> After that I was able to run from the command line and
>>>>>>>>>>>> successfully
>>>>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash
>>>>>>>>>>>> debugger.
>>>>>>>>>>>>
>>>>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests'
>>>>>>>>>>>> to
>>>>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on
>>>>>>>>>>>> each
>>>>>>>>>>>> one:
>>>>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>>>>> re-created that variable in the project build path and pointed
>>>>>>>>>>>> it to
>>>>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build
>>>>>>>>>>>> path/Libraries'
>>>>>>>>>>>> fixed that.
>>>>>>>>>>>>
>>>>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>>>>
>>>>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>>>>
>>>>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed,
>>>>>>>>>>>> but
>>>>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>>>>
>>>>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>>>>
>>>>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste
>>>>>>>>>>>> like
>>>>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and
>>>>>>>>>>>> put me
>>>>>>>>>>>> to work!
>>>>>>>>>>>>
>>>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>>>> http://www.teotigraphix.com
>>>>>>>>> http://blog.teotigraphix.com
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ix Multimedia Software
>>>>>>>>
>>>>>>>> Jan Luykenstraat 27
>>>>>>>> 3521 VB Utrecht
>>>>>>>>
>>>>>>>> T. 06-51952295
>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>> http://www.teotigraphix.com
>>>>>>> http://blog.teotigraphix.com
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Erik,

My advice is get in Eclipse, right click on the MXMLArray test and  
Debug as JUnit, have a break point in;

MXMLNodeBaseTests.java at line 129; Step through and then click on the  
fileNode variable;

If the output window dosn't show;

MXMLFileNode(MXMLFileID)  
"C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml" 1:1 loc: 0-240 abs: 0-240  
C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
   MXMLDocumentNode(MXMLDocumentID) "flash.display.Sprite" 0:0 loc:  
0-240 abs: 0-240  
C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
     MXMLDeclarationsNode(MXMLDeclarationsID) 1:4 loc: 168-228 abs:  
168-228  
C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml
       MXMLArrayNode(MXMLArrayID) "Array" 2:8 loc: 194-205 abs:  
194-205  
C:\Users\Graphix\projects\libraries\flex\falcon\trunk\compiler.tests\temp\MXMLBooleanNodeTests1363968697407340654.mxml


Then you have something wrong with the compilation unit not being  
created which means your permissions for the 'temp' folder might need  
to be adjusted to read and write or something.

Mike


Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Same result in Terminal.
>
> I do see a 'temp' folder.
>
> In JUnit (which I'm not intimately familiar with) I do see the
> following when I run the first test in MXMLArrayNodeTests.java:
>
>  java.lang.NullPointerException
> at  
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(MXMLArrayNodeTests.java:46)
> at  
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(MXMLArrayNodeTests.java:55)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at  
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
> at  
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at  
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
> at  
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
> at  
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
> at  
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> at  
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at  
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 8:00 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Eclipse…
>>
>> Now trying ant in Terminal...
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 7:58 PM, Cyrill Zadra  
>> <cy...@gmail.com> wrote:
>>> Ok.. mhh
>>>
>>> How do you execute the junit tests?
>>>
>>> With ant script or eclipse?
>>>
>>> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> Cyrill,
>>>>
>>>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>>>
>>>> So, I reverted the compile.tests back to it's original state and run
>>>> the 'download' target. That indeed also cleared up the missing library
>>>> issue. But didn't solve the Failed tests thing :-(
>>>>
>>>> EdB
>>>>
>>>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra  
>>>> <cy...@gmail.com> wrote:
>>>>> Hi Erik
>>>>>
>>>>>> [javac]  
>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable  
>>>>>> builds
>>>>>> Warning:  
>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib  
>>>>>> does not exist.
>>>>>
>>>>> I have those errors to.. but shouldn't be the problem.
>>>>>
>>>>>> on 'compiler.tests' I got "missing required library
>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>> fixed that.
>>>>>
>>>>> Instead of fixing the entry you could also execute the download target
>>>>> of the build.xml.
>>>>>
>>>>> Do you have a temp folder in compile.tests projects?
>>>>>
>>>>>
>>>>>
>>>>> cyrill
>>>>>
>>>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>>>> <ap...@teotigraphix.com> wrote:
>>>>>> Usually Eclipse doesn't refresh folders immediately( the  
>>>>>> results folder is
>>>>>> created by junit build), press F5 on the compiler.tests project folder.
>>>>>>
>>>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to  
>>>>>> show you where
>>>>>> exactly the null pointer was.
>>>>>>
>>>>>> But let me say this again, I have the same code as you and my  
>>>>>> tests are all
>>>>>> green except the one functional test that has like 4 warnings  
>>>>>> it fails on.
>>>>>>
>>>>>>
>>>>>> Mike
>>>>>>
>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>
>>>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>>>> Eclipse project…
>>>>>>>
>>>>>>> Here is another snippet:
>>>>>>>
>>>>>>>   <testcase
>>>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>>>     <error
>>>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>>>> Source)
>>>>>>> at
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>>>> Source)
>>>>>>> </error>
>>>>>>>   </testcase>
>>>>>>>
>>>>>>> Doesn't look good ;-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>
>>>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>>>
>>>>>>>> Look at the stack traces of the errors.
>>>>>>>>
>>>>>>>>
>>>>>>>> Mike
>>>>>>>>
>>>>>>>>
>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>
>>>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>>>
>>>>>>>>>     [junit] Running
>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>>
>>>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time  
>>>>>>>>> elapsed: 0.26 sec
>>>>>>>>>
>>>>>>>>>     [junit] TEST
>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>>>>>
>>>>>>>>> Does that point to something I need to change before my local
>>>>>>>>> environment is 'fit to test'?
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>>>
>>>>>>>>>> "[javac]
>>>>>>>>>>
>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>>>
>>>>>>>>>> When I do a 'wipe' and build again, I see one specific  
>>>>>>>>>> warning (other
>>>>>>>>>> than a couple of the above):
>>>>>>>>>>
>>>>>>>>>> "Warning:  
>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>>>> does not exist."
>>>>>>>>>>
>>>>>>>>>> Help?
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I have followed the various instructions and was able to  
>>>>>>>>>>> successfully
>>>>>>>>>>> build the Falcon compiler. Along the way I encountered  
>>>>>>>>>>> several issues
>>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>>
>>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK  
>>>>>>>>>>> on my system;
>>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>>
>>>>>>>>>>> After that I was able to run from the command line and successfully
>>>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>>>>>
>>>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>>>>>> one:
>>>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>>>> re-created that variable in the project build path and  
>>>>>>>>>>> pointed it to
>>>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build  
>>>>>>>>>>> path/Libraries'
>>>>>>>>>>> fixed that.
>>>>>>>>>>>
>>>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>>>
>>>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>>>
>>>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>>>
>>>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>>>
>>>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can  
>>>>>>>>>>> copy-paste like
>>>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the  
>>>>>>>>>>> code and put me
>>>>>>>>>>> to work!
>>>>>>>>>>>
>>>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>>> http://www.teotigraphix.com
>>>>>>>> http://blog.teotigraphix.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ix Multimedia Software
>>>>>>>
>>>>>>> Jan Luykenstraat 27
>>>>>>> 3521 VB Utrecht
>>>>>>>
>>>>>>> T. 06-51952295
>>>>>>> I. www.ixsoftware.nl
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>> http://www.teotigraphix.com
>>>>>> http://blog.teotigraphix.com
>>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Ok,

This error means the fileNode is not getting created which means there  
is a problem with the compiler.

This explains all your errors.

Are you sure you build the compiler project correctly?

Mike

Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Same result in Terminal.
>
> I do see a 'temp' folder.
>
> In JUnit (which I'm not intimately familiar with) I do see the
> following when I run the first test in MXMLArrayNodeTests.java:
>
>  java.lang.NullPointerException
> at  
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(MXMLArrayNodeTests.java:46)
> at  
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(MXMLArrayNodeTests.java:55)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at  
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
> at  
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at  
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
> at  
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
> at  
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
> at  
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> at  
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at  
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at  
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 8:00 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Eclipse…
>>
>> Now trying ant in Terminal...
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 7:58 PM, Cyrill Zadra  
>> <cy...@gmail.com> wrote:
>>> Ok.. mhh
>>>
>>> How do you execute the junit tests?
>>>
>>> With ant script or eclipse?
>>>
>>> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> Cyrill,
>>>>
>>>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>>>
>>>> So, I reverted the compile.tests back to it's original state and run
>>>> the 'download' target. That indeed also cleared up the missing library
>>>> issue. But didn't solve the Failed tests thing :-(
>>>>
>>>> EdB
>>>>
>>>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra  
>>>> <cy...@gmail.com> wrote:
>>>>> Hi Erik
>>>>>
>>>>>> [javac]  
>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable  
>>>>>> builds
>>>>>> Warning:  
>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib  
>>>>>> does not exist.
>>>>>
>>>>> I have those errors to.. but shouldn't be the problem.
>>>>>
>>>>>> on 'compiler.tests' I got "missing required library
>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>> fixed that.
>>>>>
>>>>> Instead of fixing the entry you could also execute the download target
>>>>> of the build.xml.
>>>>>
>>>>> Do you have a temp folder in compile.tests projects?
>>>>>
>>>>>
>>>>>
>>>>> cyrill
>>>>>
>>>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>>>> <ap...@teotigraphix.com> wrote:
>>>>>> Usually Eclipse doesn't refresh folders immediately( the  
>>>>>> results folder is
>>>>>> created by junit build), press F5 on the compiler.tests project folder.
>>>>>>
>>>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to  
>>>>>> show you where
>>>>>> exactly the null pointer was.
>>>>>>
>>>>>> But let me say this again, I have the same code as you and my  
>>>>>> tests are all
>>>>>> green except the one functional test that has like 4 warnings  
>>>>>> it fails on.
>>>>>>
>>>>>>
>>>>>> Mike
>>>>>>
>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>
>>>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>>>> Eclipse project…
>>>>>>>
>>>>>>> Here is another snippet:
>>>>>>>
>>>>>>>   <testcase
>>>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>>>     <error
>>>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>>>> Source)
>>>>>>> at
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>>>> Source)
>>>>>>> </error>
>>>>>>>   </testcase>
>>>>>>>
>>>>>>> Doesn't look good ;-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>
>>>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>>>
>>>>>>>> Look at the stack traces of the errors.
>>>>>>>>
>>>>>>>>
>>>>>>>> Mike
>>>>>>>>
>>>>>>>>
>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>
>>>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>>>
>>>>>>>>>     [junit] Running
>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>>
>>>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time  
>>>>>>>>> elapsed: 0.26 sec
>>>>>>>>>
>>>>>>>>>     [junit] TEST
>>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>>>>>
>>>>>>>>> Does that point to something I need to change before my local
>>>>>>>>> environment is 'fit to test'?
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>>>
>>>>>>>>>> "[javac]
>>>>>>>>>>
>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>>>
>>>>>>>>>> When I do a 'wipe' and build again, I see one specific  
>>>>>>>>>> warning (other
>>>>>>>>>> than a couple of the above):
>>>>>>>>>>
>>>>>>>>>> "Warning:  
>>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>>>> does not exist."
>>>>>>>>>>
>>>>>>>>>> Help?
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I have followed the various instructions and was able to  
>>>>>>>>>>> successfully
>>>>>>>>>>> build the Falcon compiler. Along the way I encountered  
>>>>>>>>>>> several issues
>>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>>
>>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK  
>>>>>>>>>>> on my system;
>>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>>
>>>>>>>>>>> After that I was able to run from the command line and successfully
>>>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>>>>>
>>>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>>>>>> one:
>>>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>>>> re-created that variable in the project build path and  
>>>>>>>>>>> pointed it to
>>>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build  
>>>>>>>>>>> path/Libraries'
>>>>>>>>>>> fixed that.
>>>>>>>>>>>
>>>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>>>
>>>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>>>
>>>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>>>
>>>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>>>
>>>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can  
>>>>>>>>>>> copy-paste like
>>>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the  
>>>>>>>>>>> code and put me
>>>>>>>>>>> to work!
>>>>>>>>>>>
>>>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>>> http://www.teotigraphix.com
>>>>>>>> http://blog.teotigraphix.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ix Multimedia Software
>>>>>>>
>>>>>>> Jan Luykenstraat 27
>>>>>>> 3521 VB Utrecht
>>>>>>>
>>>>>>> T. 06-51952295
>>>>>>> I. www.ixsoftware.nl
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>> http://www.teotigraphix.com
>>>>>> http://blog.teotigraphix.com
>>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Same result in Terminal.

I do see a 'temp' folder.

In JUnit (which I'm not intimately familiar with) I do see the
following when I run the first test in MXMLArrayNodeTests.java:

 java.lang.NullPointerException
at org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(MXMLArrayNodeTests.java:46)
at org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(MXMLArrayNodeTests.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

EdB


On Sun, Nov 18, 2012 at 8:00 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Eclipse…
>
> Now trying ant in Terminal...
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 7:58 PM, Cyrill Zadra <cy...@gmail.com> wrote:
>> Ok.. mhh
>>
>> How do you execute the junit tests?
>>
>> With ant script or eclipse?
>>
>> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Cyrill,
>>>
>>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>>
>>> So, I reverted the compile.tests back to it's original state and run
>>> the 'download' target. That indeed also cleared up the missing library
>>> issue. But didn't solve the Failed tests thing :-(
>>>
>>> EdB
>>>
>>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra <cy...@gmail.com> wrote:
>>>> Hi Erik
>>>>
>>>>> [javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>>>>> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib does not exist.
>>>>
>>>> I have those errors to.. but shouldn't be the problem.
>>>>
>>>>> on 'compiler.tests' I got "missing required library
>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>> fixed that.
>>>>
>>>> Instead of fixing the entry you could also execute the download target
>>>> of the build.xml.
>>>>
>>>> Do you have a temp folder in compile.tests projects?
>>>>
>>>>
>>>>
>>>> cyrill
>>>>
>>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>>> <ap...@teotigraphix.com> wrote:
>>>>> Usually Eclipse doesn't refresh folders immediately( the results folder is
>>>>> created by junit build), press F5 on the compiler.tests project folder.
>>>>>
>>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to show you where
>>>>> exactly the null pointer was.
>>>>>
>>>>> But let me say this again, I have the same code as you and my tests are all
>>>>> green except the one functional test that has like 4 warnings it fails on.
>>>>>
>>>>>
>>>>> Mike
>>>>>
>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>
>>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>>> Eclipse project…
>>>>>>
>>>>>> Here is another snippet:
>>>>>>
>>>>>>   <testcase
>>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>>     <error
>>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>>> at
>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>>> Source)
>>>>>> at
>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>>> Source)
>>>>>> </error>
>>>>>>   </testcase>
>>>>>>
>>>>>> Doesn't look good ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>
>>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>>
>>>>>>> Look at the stack traces of the errors.
>>>>>>>
>>>>>>>
>>>>>>> Mike
>>>>>>>
>>>>>>>
>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>
>>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>>
>>>>>>>>     [junit] Running
>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>>
>>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>>>>>>
>>>>>>>>     [junit] TEST
>>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>>>>
>>>>>>>> Does that point to something I need to change before my local
>>>>>>>> environment is 'fit to test'?
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>>
>>>>>>>>> "[javac]
>>>>>>>>>
>>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>>
>>>>>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>>>>>> than a couple of the above):
>>>>>>>>>
>>>>>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>>> does not exist."
>>>>>>>>>
>>>>>>>>> Help?
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I have followed the various instructions and was able to successfully
>>>>>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>
>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>
>>>>>>>>>> After that I was able to run from the command line and successfully
>>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>>>>
>>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>>>>> one:
>>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>>> re-created that variable in the project build path and pointed it to
>>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>>>>>> fixed that.
>>>>>>>>>>
>>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>>
>>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>>
>>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>>
>>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>>
>>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>>>>>>> to work!
>>>>>>>>>>
>>>>>>>>>> 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
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>> http://www.teotigraphix.com
>>>>>>> http://blog.teotigraphix.com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>>
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>>
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>>>
>>>>>
>>>>> --
>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>> http://www.teotigraphix.com
>>>>> http://blog.teotigraphix.com
>>>>>
>>>
>>>
>>>
>>> --
>>> 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: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Eclipse…

Now trying ant in Terminal...

EdB


On Sun, Nov 18, 2012 at 7:58 PM, Cyrill Zadra <cy...@gmail.com> wrote:
> Ok.. mhh
>
> How do you execute the junit tests?
>
> With ant script or eclipse?
>
> On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Cyrill,
>>
>> Yes, an empty 'temp' folder exists in the root of compile.tests.
>>
>> So, I reverted the compile.tests back to it's original state and run
>> the 'download' target. That indeed also cleared up the missing library
>> issue. But didn't solve the Failed tests thing :-(
>>
>> EdB
>>
>> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra <cy...@gmail.com> wrote:
>>> Hi Erik
>>>
>>>> [javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>>>> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib does not exist.
>>>
>>> I have those errors to.. but shouldn't be the problem.
>>>
>>>> on 'compiler.tests' I got "missing required library
>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>> fixed that.
>>>
>>> Instead of fixing the entry you could also execute the download target
>>> of the build.xml.
>>>
>>> Do you have a temp folder in compile.tests projects?
>>>
>>>
>>>
>>> cyrill
>>>
>>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>>> <ap...@teotigraphix.com> wrote:
>>>> Usually Eclipse doesn't refresh folders immediately( the results folder is
>>>> created by junit build), press F5 on the compiler.tests project folder.
>>>>
>>>> Hmm, you need the stack trace in the JUnit view in Eclipse to show you where
>>>> exactly the null pointer was.
>>>>
>>>> But let me say this again, I have the same code as you and my tests are all
>>>> green except the one functional test that has like 4 warnings it fails on.
>>>>
>>>>
>>>> Mike
>>>>
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>
>>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>>> Eclipse project…
>>>>>
>>>>> Here is another snippet:
>>>>>
>>>>>   <testcase
>>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>>     <error
>>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>>> at
>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>>> Source)
>>>>> at
>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>>> Source)
>>>>> </error>
>>>>>   </testcase>
>>>>>
>>>>> Doesn't look good ;-)
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>
>>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>>
>>>>>> Look at the stack traces of the errors.
>>>>>>
>>>>>>
>>>>>> Mike
>>>>>>
>>>>>>
>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>
>>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>>
>>>>>>>     [junit] Running
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>>
>>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>>>>>
>>>>>>>     [junit] TEST
>>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>>>
>>>>>>> Does that point to something I need to change before my local
>>>>>>> environment is 'fit to test'?
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>>
>>>>>>>> "[javac]
>>>>>>>>
>>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>>
>>>>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>>>>> than a couple of the above):
>>>>>>>>
>>>>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>>> does not exist."
>>>>>>>>
>>>>>>>> Help?
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I have followed the various instructions and was able to successfully
>>>>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>
>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>
>>>>>>>>> After that I was able to run from the command line and successfully
>>>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>>>
>>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>>>> one:
>>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>>> re-created that variable in the project build path and pointed it to
>>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>>>>> fixed that.
>>>>>>>>>
>>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>>
>>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>>
>>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>>
>>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>>
>>>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>>>>>> to work!
>>>>>>>>>
>>>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>> http://www.teotigraphix.com
>>>>>> http://blog.teotigraphix.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>>
>>>>
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC
>>>> http://www.teotigraphix.com
>>>> http://blog.teotigraphix.com
>>>>
>>
>>
>>
>> --
>> 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: Falcon compiler(.tests) building

Posted by Cyrill Zadra <cy...@gmail.com>.
Ok.. mhh

How do you execute the junit tests?

With ant script or eclipse?

On Sun, Nov 18, 2012 at 10:54 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Cyrill,
>
> Yes, an empty 'temp' folder exists in the root of compile.tests.
>
> So, I reverted the compile.tests back to it's original state and run
> the 'download' target. That indeed also cleared up the missing library
> issue. But didn't solve the Failed tests thing :-(
>
> EdB
>
> On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra <cy...@gmail.com> wrote:
>> Hi Erik
>>
>>> [javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>>> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib does not exist.
>>
>> I have those errors to.. but shouldn't be the problem.
>>
>>> on 'compiler.tests' I got "missing required library
>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>> fixed that.
>>
>> Instead of fixing the entry you could also execute the download target
>> of the build.xml.
>>
>> Do you have a temp folder in compile.tests projects?
>>
>>
>>
>> cyrill
>>
>> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
>> <ap...@teotigraphix.com> wrote:
>>> Usually Eclipse doesn't refresh folders immediately( the results folder is
>>> created by junit build), press F5 on the compiler.tests project folder.
>>>
>>> Hmm, you need the stack trace in the JUnit view in Eclipse to show you where
>>> exactly the null pointer was.
>>>
>>> But let me say this again, I have the same code as you and my tests are all
>>> green except the one functional test that has like 4 warnings it fails on.
>>>
>>>
>>> Mike
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>>> Eclipse project…
>>>>
>>>> Here is another snippet:
>>>>
>>>>   <testcase
>>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>>> name="MXMLArrayNode_empty1" time="0.206">
>>>>     <error
>>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>>> at
>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>>> Source)
>>>> at
>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>>> Source)
>>>> </error>
>>>>   </testcase>
>>>>
>>>> Doesn't look good ;-)
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>>> <ap...@teotigraphix.com> wrote:
>>>>>
>>>>> Yeah, that is not right, there is something failing in your setup.
>>>>>
>>>>> Look at the stack traces of the errors.
>>>>>
>>>>>
>>>>> Mike
>>>>>
>>>>>
>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>
>>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>>
>>>>>>     [junit] Running
>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>>
>>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>>>>
>>>>>>     [junit] TEST
>>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>>
>>>>>> Does that point to something I need to change before my local
>>>>>> environment is 'fit to test'?
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>>
>>>>>>> "[javac]
>>>>>>>
>>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>>
>>>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>>>> than a couple of the above):
>>>>>>>
>>>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>>> does not exist."
>>>>>>>
>>>>>>> Help?
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I have followed the various instructions and was able to successfully
>>>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>
>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>
>>>>>>>> After that I was able to run from the command line and successfully
>>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>>
>>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>>> one:
>>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>>> re-created that variable in the project build path and pointed it to
>>>>>>>> 'ant.jar' on my system, went away;
>>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>>>> fixed that.
>>>>>>>>
>>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>>
>>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>>
>>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>>
>>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>>
>>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>>>>> to work!
>>>>>>>>
>>>>>>>> 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
>>>>>>
>>>>>
>>>>> --
>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>> http://www.teotigraphix.com
>>>>> http://blog.teotigraphix.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Cyrill,

Yes, an empty 'temp' folder exists in the root of compile.tests.

So, I reverted the compile.tests back to it's original state and run
the 'download' target. That indeed also cleared up the missing library
issue. But didn't solve the Failed tests thing :-(

EdB

On Sun, Nov 18, 2012 at 7:49 PM, Cyrill Zadra <cy...@gmail.com> wrote:
> Hi Erik
>
>> [javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib does not exist.
>
> I have those errors to.. but shouldn't be the problem.
>
>> on 'compiler.tests' I got "missing required library
> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
> fixed that.
>
> Instead of fixing the entry you could also execute the download target
> of the build.xml.
>
> Do you have a temp folder in compile.tests projects?
>
>
>
> cyrill
>
> On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
> <ap...@teotigraphix.com> wrote:
>> Usually Eclipse doesn't refresh folders immediately( the results folder is
>> created by junit build), press F5 on the compiler.tests project folder.
>>
>> Hmm, you need the stack trace in the JUnit view in Eclipse to show you where
>> exactly the null pointer was.
>>
>> But let me say this again, I have the same code as you and my tests are all
>> green except the one functional test that has like 4 warnings it fails on.
>>
>>
>> Mike
>>
>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>
>>> Ha, I just found the 'result' directory, must be 'hidden' in the
>>> Eclipse project…
>>>
>>> Here is another snippet:
>>>
>>>   <testcase
>>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>>> name="MXMLArrayNode_empty1" time="0.206">
>>>     <error
>>> type="java.lang.NullPointerException">java.lang.NullPointerException
>>> at
>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>>> Source)
>>> at
>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>>> Source)
>>> </error>
>>>   </testcase>
>>>
>>> Doesn't look good ;-)
>>>
>>> EdB
>>>
>>>
>>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>>> <ap...@teotigraphix.com> wrote:
>>>>
>>>> Yeah, that is not right, there is something failing in your setup.
>>>>
>>>> Look at the stack traces of the errors.
>>>>
>>>>
>>>> Mike
>>>>
>>>>
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>
>>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>>
>>>>>     [junit] Running
>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>>
>>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>>>
>>>>>     [junit] TEST
>>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>>
>>>>> Does that point to something I need to change before my local
>>>>> environment is 'fit to test'?
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> I do see some warnings on the 'compiler' build:
>>>>>>
>>>>>> "[javac]
>>>>>>
>>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>>
>>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>>> than a couple of the above):
>>>>>>
>>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>>> does not exist."
>>>>>>
>>>>>> Help?
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have followed the various instructions and was able to successfully
>>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>
>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>
>>>>>>> After that I was able to run from the command line and successfully
>>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>>
>>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>>> one:
>>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>>> re-created that variable in the project build path and pointed it to
>>>>>>> 'ant.jar' on my system, went away;
>>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>>> fixed that.
>>>>>>>
>>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>>
>>>>>>> <property name="env.JFLEX_JAR"
>>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>>
>>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>>
>>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>>
>>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>>>> to work!
>>>>>>>
>>>>>>> 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
>>>>>
>>>>
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC
>>>> http://www.teotigraphix.com
>>>> http://blog.teotigraphix.com
>>>>
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>>
>>
>> --
>> Michael Schmalle - Teoti Graphix, LLC
>> http://www.teotigraphix.com
>> http://blog.teotigraphix.com
>>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Cyrill Zadra <cy...@gmail.com>.
Hi Erik

> [javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
> Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib does not exist.

I have those errors to.. but shouldn't be the problem.

> on 'compiler.tests' I got "missing required library
'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
fixed that.

Instead of fixing the entry you could also execute the download target
of the build.xml.

Do you have a temp folder in compile.tests projects?



cyrill

On Sun, Nov 18, 2012 at 10:32 AM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
> Usually Eclipse doesn't refresh folders immediately( the results folder is
> created by junit build), press F5 on the compiler.tests project folder.
>
> Hmm, you need the stack trace in the JUnit view in Eclipse to show you where
> exactly the null pointer was.
>
> But let me say this again, I have the same code as you and my tests are all
> green except the one functional test that has like 4 warnings it fails on.
>
>
> Mike
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>> Ha, I just found the 'result' directory, must be 'hidden' in the
>> Eclipse project…
>>
>> Here is another snippet:
>>
>>   <testcase
>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>> name="MXMLArrayNode_empty1" time="0.206">
>>     <error
>> type="java.lang.NullPointerException">java.lang.NullPointerException
>> at
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>> Source)
>> at
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>> Source)
>> </error>
>>   </testcase>
>>
>> Doesn't look good ;-)
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>> <ap...@teotigraphix.com> wrote:
>>>
>>> Yeah, that is not right, there is something failing in your setup.
>>>
>>> Look at the stack traces of the errors.
>>>
>>>
>>> Mike
>>>
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>
>>>>     [junit] Running
>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>
>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>>
>>>>     [junit] TEST
>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>
>>>> Does that point to something I need to change before my local
>>>> environment is 'fit to test'?
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>
>>>>>
>>>>> I do see some warnings on the 'compiler' build:
>>>>>
>>>>> "[javac]
>>>>>
>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>
>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>> than a couple of the above):
>>>>>
>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>> does not exist."
>>>>>
>>>>> Help?
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have followed the various instructions and was able to successfully
>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>
>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>
>>>>>> After that I was able to run from the command line and successfully
>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>
>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>> one:
>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>> re-created that variable in the project build path and pointed it to
>>>>>> 'ant.jar' on my system, went away;
>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>> fixed that.
>>>>>>
>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>
>>>>>> <property name="env.JFLEX_JAR"
>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>
>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>
>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>
>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>>> to work!
>>>>>>
>>>>>> 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
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>

Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
 I'm sure something is wrong in my setup, seeing as my version has the
errors. I'm trying to diagnose it as we 'speak'.

EdB


On Sun, Nov 18, 2012 at 7:32 PM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
> Usually Eclipse doesn't refresh folders immediately( the results folder is
> created by junit build), press F5 on the compiler.tests project folder.
>
> Hmm, you need the stack trace in the JUnit view in Eclipse to show you where
> exactly the null pointer was.
>
> But let me say this again, I have the same code as you and my tests are all
> green except the one functional test that has like 4 warnings it fails on.
>
>
> Mike
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>> Ha, I just found the 'result' directory, must be 'hidden' in the
>> Eclipse project…
>>
>> Here is another snippet:
>>
>>   <testcase
>> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
>> name="MXMLArrayNode_empty1" time="0.206">
>>     <error
>> type="java.lang.NullPointerException">java.lang.NullPointerException
>> at
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
>> Source)
>> at
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
>> Source)
>> </error>
>>   </testcase>
>>
>> Doesn't look good ;-)
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
>> <ap...@teotigraphix.com> wrote:
>>>
>>> Yeah, that is not right, there is something failing in your setup.
>>>
>>> Look at the stack traces of the errors.
>>>
>>>
>>> Mike
>>>
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>>
>>>>     [junit] Running
>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>>
>>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>>
>>>>     [junit] TEST
>>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>>
>>>> Does that point to something I need to change before my local
>>>> environment is 'fit to test'?
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>
>>>>>
>>>>> I do see some warnings on the 'compiler' build:
>>>>>
>>>>> "[javac]
>>>>>
>>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>>> warning: 'includeantruntime' was not set, defaulting to
>>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>>
>>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>>> than a couple of the above):
>>>>>
>>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>>> does not exist."
>>>>>
>>>>> Help?
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have followed the various instructions and was able to successfully
>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>
>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>
>>>>>> After that I was able to run from the command line and successfully
>>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>>
>>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>>> one:
>>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>>> re-created that variable in the project build path and pointed it to
>>>>>> 'ant.jar' on my system, went away;
>>>>>> - on 'compiler.tests' I got "missing required library
>>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>>> fixed that.
>>>>>>
>>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>>
>>>>>> <property name="env.JFLEX_JAR"
>>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>>
>>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>>
>>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>>
>>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>>> to work!
>>>>>>
>>>>>> 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
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Usually Eclipse doesn't refresh folders immediately( the results  
folder is created by junit build), press F5 on the compiler.tests  
project folder.

Hmm, you need the stack trace in the JUnit view in Eclipse to show you  
where exactly the null pointer was.

But let me say this again, I have the same code as you and my tests  
are all green except the one functional test that has like 4 warnings  
it fails on.

Mike

Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Ha, I just found the 'result' directory, must be 'hidden' in the
> Eclipse project…
>
> Here is another snippet:
>
>   <testcase  
> classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
> name="MXMLArrayNode_empty1" time="0.206">
>     <error  
> type="java.lang.NullPointerException">java.lang.NullPointerException
> at  
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
> Source)
> at  
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
> Source)
> </error>
>   </testcase>
>
> Doesn't look good ;-)
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
> <ap...@teotigraphix.com> wrote:
>> Yeah, that is not right, there is something failing in your setup.
>>
>> Look at the stack traces of the errors.
>>
>>
>> Mike
>>
>>
>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>
>>> When running 'compiler.tests', this is a snippet of a failed test:
>>>
>>>     [junit] Running
>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>>
>>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>>
>>>     [junit] TEST
>>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>>
>>> Does that point to something I need to change before my local
>>> environment is 'fit to test'?
>>>
>>> EdB
>>>
>>>
>>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>
>>>> I do see some warnings on the 'compiler' build:
>>>>
>>>> "[javac]
>>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>>> warning: 'includeantruntime' was not set, defaulting to
>>>> build.sysclasspath=last; set to false for repeatable builds"
>>>>
>>>> When I do a 'wipe' and build again, I see one specific warning (other
>>>> than a couple of the above):
>>>>
>>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>>> does not exist."
>>>>
>>>> Help?
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I have followed the various instructions and was able to successfully
>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>
>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>
>>>>> After that I was able to run from the command line and successfully
>>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>>
>>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>>> one:
>>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>>> re-created that variable in the project build path and pointed it to
>>>>> 'ant.jar' on my system, went away;
>>>>> - on 'compiler.tests' I got "missing required library
>>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>>> fixed that.
>>>>>
>>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>>
>>>>> <property name="env.JFLEX_JAR"
>>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>>
>>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>>
>>>>> So, my environment seems to be set up. Now: how can I help?
>>>>>
>>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>>> to work!
>>>>>
>>>>> 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
>>>
>>
>> --
>> Michael Schmalle - Teoti Graphix, LLC
>> http://www.teotigraphix.com
>> http://blog.teotigraphix.com
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ha, I just found the 'result' directory, must be 'hidden' in the
Eclipse project…

Here is another snippet:

  <testcase classname="org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests"
name="MXMLArrayNode_empty1" time="0.206">
    <error type="java.lang.NullPointerException">java.lang.NullPointerException
at org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.getMXMLArrayNode(Unknown
Source)
at org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests.MXMLArrayNode_empty1(Unknown
Source)
</error>
  </testcase>

Doesn't look good ;-)

EdB


On Sun, Nov 18, 2012 at 7:19 PM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
> Yeah, that is not right, there is something failing in your setup.
>
> Look at the stack traces of the errors.
>
>
> Mike
>
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>> When running 'compiler.tests', this is a snippet of a failed test:
>>
>>     [junit] Running
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>>
>>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>>
>>     [junit] TEST
>> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>>
>> Does that point to something I need to change before my local
>> environment is 'fit to test'?
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>
>>> I do see some warnings on the 'compiler' build:
>>>
>>> "[javac]
>>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>>> warning: 'includeantruntime' was not set, defaulting to
>>> build.sysclasspath=last; set to false for repeatable builds"
>>>
>>> When I do a 'wipe' and build again, I see one specific warning (other
>>> than a couple of the above):
>>>
>>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>>> does not exist."
>>>
>>> Help?
>>>
>>> EdB
>>>
>>>
>>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl>
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I have followed the various instructions and was able to successfully
>>>> build the Falcon compiler. Along the way I encountered several issues
>>>> that are not yet documented (I'm on OS X 10.8):
>>>>
>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>> denied'. Setting the executable bit on the file corrected that;
>>>>
>>>> After that I was able to run from the command line and successfully
>>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>>
>>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>>> one:
>>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>>> re-created that variable in the project build path and pointed it to
>>>> 'ant.jar' on my system, went away;
>>>> - on 'compiler.tests' I got "missing required library
>>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>>> fixed that.
>>>>
>>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>>
>>>> <property name="env.JFLEX_JAR"
>>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>>
>>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>>> with plenty of FAILED tests (which I guess is expected?).
>>>>
>>>> So, my environment seems to be set up. Now: how can I help?
>>>>
>>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>>> to work!
>>>>
>>>> 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
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Yeah, that is not right, there is something failing in your setup.

Look at the stack traces of the errors.

Mike


Quoting Erik de Bruin <er...@ixsoftware.nl>:

> When running 'compiler.tests', this is a snippet of a failed test:
>
>     [junit] Running
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests
>
>     [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec
>
>     [junit] TEST
> org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED
>
> Does that point to something I need to change before my local
> environment is 'fit to test'?
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> I do see some warnings on the 'compiler' build:
>>
>> "[javac]  
>> /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
>> warning: 'includeantruntime' was not set, defaulting to
>> build.sysclasspath=last; set to false for repeatable builds"
>>
>> When I do a 'wipe' and build again, I see one specific warning (other
>> than a couple of the above):
>>
>> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
>> does not exist."
>>
>> Help?
>>
>> EdB
>>
>>
>> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Hi,
>>>
>>> I have followed the various instructions and was able to successfully
>>> build the Falcon compiler. Along the way I encountered several issues
>>> that are not yet documented (I'm on OS X 10.8):
>>>
>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>> - when trying to use the mxmlc on a project, I got 'permission
>>> denied'. Setting the executable bit on the file corrected that;
>>>
>>> After that I was able to run from the command line and successfully
>>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>>
>>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>>> work in in Eclipse. After importing them, I get a 'problem' on each
>>> one:
>>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>>> re-created that variable in the project build path and pointed it to
>>> 'ant.jar' on my system, went away;
>>> - on 'compiler.tests' I got "missing required library
>>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>>> fixed that.
>>>
>>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>>
>>> <property name="env.JFLEX_JAR"
>>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>>
>>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>>> with plenty of FAILED tests (which I guess is expected?).
>>>
>>> So, my environment seems to be set up. Now: how can I help?
>>>
>>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>>> to work!
>>>
>>> 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
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
When running 'compiler.tests', this is a snippet of a failed test:

    [junit] Running
org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests

    [junit] Tests run: 7, Failures: 0, Errors: 6, Time elapsed: 0.26 sec

    [junit] TEST
org.apache.flex.compiler.internal.tree.mxml.MXMLArrayNodeTests FAILED

Does that point to something I need to change before my local
environment is 'fit to test'?

EdB


On Sun, Nov 18, 2012 at 7:10 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> I do see some warnings on the 'compiler' build:
>
> "[javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds"
>
> When I do a 'wipe' and build again, I see one specific warning (other
> than a couple of the above):
>
> "Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
> does not exist."
>
> Help?
>
> EdB
>
>
> On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Hi,
>>
>> I have followed the various instructions and was able to successfully
>> build the Falcon compiler. Along the way I encountered several issues
>> that are not yet documented (I'm on OS X 10.8):
>>
>> - I needed to edit the 'build.xml' file on line 50, to point the
>> 'sdk.branch' property to the correct location of the SDK on my system;
>> - when trying to use the mxmlc on a project, I got 'permission
>> denied'. Setting the executable bit on the file corrected that;
>>
>> After that I was able to run from the command line and successfully
>> build "Hello.as", which ran fine in the standalone Flash debugger.
>>
>> So I proceed to get the projects 'compiler' and 'compiler.tests' to
>> work in in Eclipse. After importing them, I get a 'problem' on each
>> one:
>> - on 'compiler', I got a message about 'ANT_JAR', which after I
>> re-created that variable in the project build path and pointed it to
>> 'ant.jar' on my system, went away;
>> - on 'compiler.tests' I got "missing required library
>> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
>> fixed that.
>>
>> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>>
>> <property name="env.JFLEX_JAR"
>> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>>
>> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
>> with plenty of FAILED tests (which I guess is expected?).
>>
>> So, my environment seems to be set up. Now: how can I help?
>>
>> Note: I'm a noob on the topic of compilers, but I can copy-paste like
>> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
>> to work!
>>
>> 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: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I do see some warnings on the 'compiler' build:

"[javac] /Users/erik/Documents/ApacheFlex/svn/apacheFlex-falcon/compiler/build.xml:415:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds"

When I do a 'wipe' and build again, I see one specific warning (other
than a couple of the above):

"Warning: /Users/erik/Documents/ApacheFlex/svn/apacheFlex-sdk/ant/lib
does not exist."

Help?

EdB


On Sun, Nov 18, 2012 at 6:55 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Hi,
>
> I have followed the various instructions and was able to successfully
> build the Falcon compiler. Along the way I encountered several issues
> that are not yet documented (I'm on OS X 10.8):
>
> - I needed to edit the 'build.xml' file on line 50, to point the
> 'sdk.branch' property to the correct location of the SDK on my system;
> - when trying to use the mxmlc on a project, I got 'permission
> denied'. Setting the executable bit on the file corrected that;
>
> After that I was able to run from the command line and successfully
> build "Hello.as", which ran fine in the standalone Flash debugger.
>
> So I proceed to get the projects 'compiler' and 'compiler.tests' to
> work in in Eclipse. After importing them, I get a 'problem' on each
> one:
> - on 'compiler', I got a message about 'ANT_JAR', which after I
> re-created that variable in the project build path and pointed it to
> 'ant.jar' on my system, went away;
> - on 'compiler.tests' I got "missing required library
> 'lib/junit-4.10.jar'". Editing the entry in the 'build path/Libraries'
> fixed that.
>
> I got 'build.xml' on 'compiler' working in Eclipse after adding:
>
> <property name="env.JFLEX_JAR"
> value="/usr/share/java/jflex-1.4.3/lib/JFlex.jar"/>
>
> Then I ran 'build.xml' on 'compiler.tests' and that completed, but
> with plenty of FAILED tests (which I guess is expected?).
>
> So, my environment seems to be set up. Now: how can I help?
>
> Note: I'm a noob on the topic of compilers, but I can copy-paste like
> a Boss, so I'm sure you can use me ;-) Point me to the code and put me
> to work!
>
> 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: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Just to confirm, the fix worked. The tests pass now.

Onwards and upwards!

EdB


On Tue, Nov 20, 2012 at 11:00 PM, Gordon Smith <go...@adobe.com> wrote:
> I think we can simply use forward slashes..
>
> - Gordon
>
> -----Original Message-----
> From: Alex Harui [mailto:aharui@adobe.com]
> Sent: Tuesday, November 20, 2012 1:02 PM
> To: flex-dev@incubator.apache.org
> Subject: Re: Falcon compiler(.tests) building
>
> Gordon uses a Windows machine and the tests have some backslashes in the paths so the fail on Mac.
>
> What is the proper way to deal with slashes on different platforms in Java?
> If you know, you can fix the code in
> compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXMLNo
> deBaseTests.java
>
> And maybe elsewhere.
>
> -Alex
>
> On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Well, at least I know I'm not crazy, since you see the same failures
>> ;-)
>>
>> I'll wait for Gordon and meanwhile do a bit of the new website.
>>
>> EdB
>>
>>
>> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com> wrote:
>>> Erik,
>>>
>>> I sent just email to Gordon and got back an "out of office" until
>>> Monday email so you'll either have to wait or debug it.
>>>
>>> Carol
>>>
>>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>>> dir, right? If I put a breakpoint somewhere, I can see those files
>>>> are created and the contents that I can see seem to be correct. But
>>>> what about the contents that are not immediately visible? There was
>>>> a lot to do about line endings and such on the listŠ might this be
>>>> affected by something like that?
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>>>> <ap...@teotigraphix.com> wrote:
>>>>> I did exactly what you now tried; checkout the whole Apache
>>>>> project, build framework and build compiler.
>>>>>
>>>>> The only difference I see here is you are on OSX, but I think Carol
>>>>> is to.
>>>>>
>>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>>>
>>>>> Unfortunately, without sitting next to you and looking, I have no
>>>>> idea what is going wrong. I bet it is something small and
>>>>> ridiculous though.
>>>>>
>>>>>
>>>>> Mike
>>>>>
>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>
>>>>>> Latest news:
>>>>>>
>>>>>> - I got myself a new working copy of the entire Flex SVN repo, so
>>>>>> I don't need to mess with paths etc. anymore.
>>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and
>>>>>> got the EXACT SAME results as before, i.e. jUnit test fail and I
>>>>>> get some warnings!
>>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime"
>>>>>> warning go away
>>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in
>>>>>> the "ant/lib" directory of the SDK which, on my machine at least,
>>>>>> does not exist; changing all references to "ant/lib" to "lib"
>>>>>> (3x), where that jar does exist, makes the last warning go away;
>>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>>> (after an 'ant wipe') to it.
>>>>>>
>>>>>> Now, if these tests need to pass on my system before I can start
>>>>>> contributing, I need some input. If solving the reason why they
>>>>>> fail is some sort of initiation rite, it's going to take me a bit
>>>>>> more time to get into the 'inner circle' ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin
>>>>>> <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>
>>>>>>> Ok,
>>>>>>>
>>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>>>
>>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>>>
>>>>>>> I've piped the results of the compiler main to a text file. If
>>>>>>> anyone is interested, I'll create a JIRA ticket and attache that file to it.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin
>>>>>>> <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>>>> 'sdk.branch', good suggestion.
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton
>>>>>>>> <cf...@adobe.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>> successfully build the Falcon compiler. Along the way I
>>>>>>>>>> encountered several issues that are not yet documented (I'm on
>>>>>>>>>> OS X 10.8):
>>>>>>>>>>
>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point
>>>>>>>>>> the 'sdk.branch' property to the correct location of the SDK
>>>>>>>>>> on my system;
>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>> denied'. Setting the executable bit on the file corrected
>>>>>>>>>> that;
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in
>>>>>>>>> the falcon/trunk/README you should not have to make any edits
>>>>>>>>> to build.xml assuming your directory tree looks like it does in
>>>>>>>>> svn.
>>>>>>>>>
>>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>>>
>>>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>>> See the README there for instructions.
>>>>>>>>>
>>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>>>
>>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR
>>>>>>>>> file for JFlex 1.4.3.
>>>>>>>>>
>>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is
>>>>>>>>> not the case for you, rather than edit build.xml invoke it with
>>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>>>
>>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Carol
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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
>>>>>>
>>>>>
>>>>> --
>>>>> Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com
>>>>> http://blog.teotigraphix.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

RE: Falcon compiler(.tests) building

Posted by Gordon Smith <go...@adobe.com>.
I think we can simply use forward slashes..

- Gordon

-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com] 
Sent: Tuesday, November 20, 2012 1:02 PM
To: flex-dev@incubator.apache.org
Subject: Re: Falcon compiler(.tests) building

Gordon uses a Windows machine and the tests have some backslashes in the paths so the fail on Mac.

What is the proper way to deal with slashes on different platforms in Java?
If you know, you can fix the code in
compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXMLNo
deBaseTests.java

And maybe elsewhere.

-Alex

On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Well, at least I know I'm not crazy, since you see the same failures 
> ;-)
> 
> I'll wait for Gordon and meanwhile do a bit of the new website.
> 
> EdB
> 
> 
> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com> wrote:
>> Erik,
>> 
>> I sent just email to Gordon and got back an "out of office" until 
>> Monday email so you'll either have to wait or debug it.
>> 
>> Carol
>> 
>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>> dir, right? If I put a breakpoint somewhere, I can see those files 
>>> are created and the contents that I can see seem to be correct. But 
>>> what about the contents that are not immediately visible? There was 
>>> a lot to do about line endings and such on the listŠ might this be 
>>> affected by something like that?
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle 
>>> <ap...@teotigraphix.com> wrote:
>>>> I did exactly what you now tried; checkout the whole Apache 
>>>> project, build framework and build compiler.
>>>> 
>>>> The only difference I see here is you are on OSX, but I think Carol 
>>>> is to.
>>>> 
>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>> 
>>>> Unfortunately, without sitting next to you and looking, I have no 
>>>> idea what is going wrong. I bet it is something small and 
>>>> ridiculous though.
>>>> 
>>>> 
>>>> Mike
>>>> 
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>> 
>>>>> Latest news:
>>>>> 
>>>>> - I got myself a new working copy of the entire Flex SVN repo, so 
>>>>> I don't need to mess with paths etc. anymore.
>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and 
>>>>> got the EXACT SAME results as before, i.e. jUnit test fail and I 
>>>>> get some warnings!
>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" 
>>>>> warning go away
>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in 
>>>>> the "ant/lib" directory of the SDK which, on my machine at least, 
>>>>> does not exist; changing all references to "ant/lib" to "lib" 
>>>>> (3x), where that jar does exist, makes the last warning go away;
>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>> (after an 'ant wipe') to it.
>>>>> 
>>>>> Now, if these tests need to pass on my system before I can start 
>>>>> contributing, I need some input. If solving the reason why they 
>>>>> fail is some sort of initiation rite, it's going to take me a bit 
>>>>> more time to get into the 'inner circle' ;-)
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>> 
>>>>> 
>>>>> 
>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin 
>>>>> <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>> 
>>>>>> Ok,
>>>>>> 
>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>> 
>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>> 
>>>>>> I've piped the results of the compiler main to a text file. If 
>>>>>> anyone is interested, I'll create a JIRA ticket and attache that file to it.
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin 
>>>>>> <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>> 
>>>>>>> Thank you! I already figured out the first 3, but not the 
>>>>>>> 'sdk.branch', good suggestion.
>>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton 
>>>>>>> <cf...@adobe.com>
>>>>>>> wrote:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>> 
>>>>>>>>> Hi,
>>>>>>>>> 
>>>>>>>>> I have followed the various instructions and was able to 
>>>>>>>>> successfully build the Falcon compiler. Along the way I 
>>>>>>>>> encountered several issues that are not yet documented (I'm on 
>>>>>>>>> OS X 10.8):
>>>>>>>>> 
>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point 
>>>>>>>>> the 'sdk.branch' property to the correct location of the SDK 
>>>>>>>>> on my system;
>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission 
>>>>>>>>> denied'. Setting the executable bit on the file corrected 
>>>>>>>>> that;
>>>>>>>> 
>>>>>>>> 
>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in 
>>>>>>>> the falcon/trunk/README you should not have to make any edits 
>>>>>>>> to build.xml assuming your directory tree looks like it does in 
>>>>>>>> svn.
>>>>>>>> 
>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>> 
>>>>>>>> 1. Build the the "develop" branch of the SDK at 
>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>> See the README there for instructions.
>>>>>>>> 
>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and 
>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>> 
>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR 
>>>>>>>> file for JFlex 1.4.3.
>>>>>>>> 
>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is 
>>>>>>>> not the case for you, rather than edit build.xml invoke it with 
>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>> 
>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Carol
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> 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
>>>>> 
>>>> 
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com 
>>>> http://blog.teotigraphix.com
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>> 
> 
> 

--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: Falcon compiler(.tests) building

Posted by Gordon Smith <go...@adobe.com>.
I do all my work on Windows 7 and have never tried building Falcon or running its tests on a Mac. Is there anyone who has successfully done it yet on a Mac?

- Gordon

-----Original Message-----
From: Erik de Bruin [mailto:erik@ixsoftware.nl] 
Sent: Tuesday, November 20, 2012 8:35 AM
To: flex-dev@incubator.apache.org
Subject: Re: Falcon compiler(.tests) building

Well, at least I know I'm not crazy, since you see the same failures ;-)

I'll wait for Gordon and meanwhile do a bit of the new website.

EdB


On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com> wrote:
> Erik,
>
> I sent just email to Gordon and got back an "out of office" until 
> Monday email so you'll either have to wait or debug it.
>
> Carol
>
> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>Just guessing now, but: the MXML is read from a file in the 'temp'
>>dir, right? If I put a breakpoint somewhere, I can see those files are 
>>created and the contents that I can see seem to be correct. But what 
>>about the contents that are not immediately visible? There was a lot 
>>to do about line endings and such on the listŠ might this be affected 
>>by something like that?
>>
>>EdB
>>
>>
>>
>>On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle 
>><ap...@teotigraphix.com> wrote:
>>> I did exactly what you now tried; checkout the whole Apache project, 
>>>build  framework and build compiler.
>>>
>>> The only difference I see here is you are on OSX, but I think Carol 
>>>is to.
>>>
>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>
>>> Unfortunately, without sitting next to you and looking, I have no 
>>>idea what  is going wrong. I bet it is something small and ridiculous 
>>>though.
>>>
>>>
>>> Mike
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>> Latest news:
>>>>
>>>> - I got myself a new working copy of the entire Flex SVN repo, so I  
>>>>don't need to mess with paths etc. anymore.
>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and 
>>>>got  the EXACT SAME results as before, i.e. jUnit test fail and I 
>>>>get some  warnings!
>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" 
>>>>warning go  away
>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in 
>>>>the  "ant/lib" directory of the SDK which, on my machine at least, 
>>>>does not  exist; changing all references to "ant/lib" to "lib" (3x), 
>>>>where that  jar does exist, makes the last warning go away;
>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>> (after an 'ant wipe') to it.
>>>>
>>>> Now, if these tests need to pass on my system before I can start 
>>>> contributing, I need some input. If solving the reason why they 
>>>> fail is some sort of initiation rite, it's going to take me a bit 
>>>> more time to get into the 'inner circle' ;-)
>>>>
>>>> EdB
>>>>
>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>wrote:
>>>>>
>>>>> Ok,
>>>>>
>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>
>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>
>>>>> I've piped the results of the compiler main to a text file. If 
>>>>> anyone is interested, I'll create a JIRA ticket and attache that file to it.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin 
>>>>> <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>
>>>>>> Thank you! I already figured out the first 3, but not the 
>>>>>> 'sdk.branch', good suggestion.
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton 
>>>>>> <cf...@adobe.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I have followed the various instructions and was able to 
>>>>>>>>successfully  build the Falcon compiler. Along the way I 
>>>>>>>>encountered several issues  that are not yet documented (I'm on 
>>>>>>>>OS X 10.8):
>>>>>>>>
>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point 
>>>>>>>>the  'sdk.branch' property to the correct location of the SDK on 
>>>>>>>>my system;
>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission  
>>>>>>>>denied'. Setting the executable bit on the file corrected that;
>>>>>>>
>>>>>>>
>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the  
>>>>>>>falcon/trunk/README you should not have to make any edits to 
>>>>>>>build.xml  assuming your directory tree looks like it does in 
>>>>>>>svn.
>>>>>>>
>>>>>>> Before trying to build Falcon, you must:
>>>>>>>
>>>>>>> 1. Build the the "develop" branch of the SDK at 
>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>> See the README there for instructions.
>>>>>>>
>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and 
>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>
>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR 
>>>>>>>file for  JFlex 1.4.3.
>>>>>>>
>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is 
>>>>>>>not the  case for you, rather than edit build.xml invoke it with  
>>>>>>>ant -Dsdk.branch=/path/to/sdk
>>>>>>>
>>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Carol
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com 
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>>--
>>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: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
I would guess that it is File.separator

Mike

Quoting Alex Harui <ah...@adobe.com>:

> Gordon uses a Windows machine and the tests have some backslashes in the
> paths so the fail on Mac.
>
> What is the proper way to deal with slashes on different platforms in Java?
> If you know, you can fix the code in
> compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXMLNo
> deBaseTests.java
>
> And maybe elsewhere.
>
> -Alex
>
> On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Well, at least I know I'm not crazy, since you see the same failures ;-)
>>
>> I'll wait for Gordon and meanwhile do a bit of the new website.
>>
>> EdB
>>
>>
>> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com> wrote:
>>> Erik,
>>>
>>> I sent just email to Gordon and got back an "out of office" until Monday
>>> email so you'll either have to wait or debug it.
>>>
>>> Carol
>>>
>>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>>> dir, right? If I put a breakpoint somewhere, I can see those files are
>>>> created and the contents that I can see seem to be correct. But what
>>>> about the contents that are not immediately visible? There was a lot
>>>> to do about line endings and such on the listŠ might this be affected
>>>> by something like that?
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>>>> <ap...@teotigraphix.com> wrote:
>>>>> I did exactly what you now tried; checkout the whole Apache project,
>>>>> build
>>>>> framework and build compiler.
>>>>>
>>>>> The only difference I see here is you are on OSX, but I think Carol is
>>>>> to.
>>>>>
>>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>>>
>>>>> Unfortunately, without sitting next to you and looking, I have no idea
>>>>> what
>>>>> is going wrong. I bet it is something small and ridiculous though.
>>>>>
>>>>>
>>>>> Mike
>>>>>
>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>
>>>>>> Latest news:
>>>>>>
>>>>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>>>>> don't need to mess with paths etc. anymore.
>>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>>>>> the EXACT SAME results as before, i.e. jUnit test fail and I get some
>>>>>> warnings!
>>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning
>>>>>> go
>>>>>> away
>>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>>>>> "ant/lib" directory of the SDK which, on my machine at least, does not
>>>>>> exist; changing all references to "ant/lib" to "lib" (3x), where that
>>>>>> jar does exist, makes the last warning go away;
>>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>>> (after an 'ant wipe') to it.
>>>>>>
>>>>>> Now, if these tests need to pass on my system before I can start
>>>>>> contributing, I need some input. If solving the reason why they fail
>>>>>> is some sort of initiation rite, it's going to take me a bit more time
>>>>>> to get into the 'inner circle' ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>
>>>>>>> Ok,
>>>>>>>
>>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>>>
>>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>>>
>>>>>>> I've piped the results of the compiler main to a text file. If anyone
>>>>>>> is interested, I'll create a JIRA ticket and attache that file to it.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>>>> 'sdk.branch', good suggestion.
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>> successfully
>>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>>> issues
>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>
>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>>> system;
>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>>>> build.xml
>>>>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>>>>
>>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>>>
>>>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>>> See the README there for instructions.
>>>>>>>>>
>>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>>>
>>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file
>>>>>>>>> for
>>>>>>>>> JFlex 1.4.3.
>>>>>>>>>
>>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not
>>>>>>>>> the
>>>>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>>>
>>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Carol
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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
>>>>>>
>>>>>
>>>>> --
>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>> http://www.teotigraphix.com
>>>>> http://blog.teotigraphix.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Alex Harui <ah...@adobe.com>.
Looks like Carol fixed.  I get all tests passing now on Mac.  Yay!


On 11/20/12 1:11 PM, "Michael Schmalle" <mi...@teotigraphix.com> wrote:

> Carol,
> 
> I can fix these, how would you suggest? Just using + concatenation? or
> StringBuffer?
> 
> Mike
> 
> Quoting Carol Frampton <cf...@adobe.com>:
> 
>> File.separatorChar
>> 
>> 
>> On 11/20/12 4 :01PM, "Alex Harui" <ah...@adobe.com> wrote:
>> 
>>> Gordon uses a Windows machine and the tests have some backslashes in the
>>> paths so the fail on Mac.
>>> 
>>> What is the proper way to deal with slashes on different platforms in
>>> Java?
>>> If you know, you can fix the code in
>>> compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXML
>>> No
>>> deBaseTests.java
>>> 
>>> And maybe elsewhere.
>>> 
>>> -Alex
>>> 
>>> On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>> 
>>>> Well, at least I know I'm not crazy, since you see the same failures ;-)
>>>> 
>>>> I'll wait for Gordon and meanwhile do a bit of the new website.
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com>
>>>> wrote:
>>>>> Erik,
>>>>> 
>>>>> I sent just email to Gordon and got back an "out of office" until
>>>>> Monday
>>>>> email so you'll either have to wait or debug it.
>>>>> 
>>>>> Carol
>>>>> 
>>>>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>> 
>>>>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>>>>> dir, right? If I put a breakpoint somewhere, I can see those files are
>>>>>> created and the contents that I can see seem to be correct. But what
>>>>>> about the contents that are not immediately visible? There was a lot
>>>>>> to do about line endings and such on the listŠ might this be affected
>>>>>> by something like that?
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>> I did exactly what you now tried; checkout the whole Apache project,
>>>>>>> build
>>>>>>> framework and build compiler.
>>>>>>> 
>>>>>>> The only difference I see here is you are on OSX, but I think Carol
>>>>>>> is
>>>>>>> to.
>>>>>>> 
>>>>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>>>>> 
>>>>>>> Unfortunately, without sitting next to you and looking, I have no
>>>>>>> idea
>>>>>>> what
>>>>>>> is going wrong. I bet it is something small and ridiculous though.
>>>>>>> 
>>>>>>> 
>>>>>>> Mike
>>>>>>> 
>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>> 
>>>>>>>> Latest news:
>>>>>>>> 
>>>>>>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>>>>>>> don't need to mess with paths etc. anymore.
>>>>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>>>>>>> the EXACT SAME results as before, i.e. jUnit test fail and I get
>>>>>>>> some
>>>>>>>> warnings!
>>>>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime"
>>>>>>>> warning
>>>>>>>> go
>>>>>>>> away
>>>>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>>>>>>> "ant/lib" directory of the SDK which, on my machine at least, does
>>>>>>>> not
>>>>>>>> exist; changing all references to "ant/lib" to "lib" (3x), where
>>>>>>>> that
>>>>>>>> jar does exist, makes the last warning go away;
>>>>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>>>>> (after an 'ant wipe') to it.
>>>>>>>> 
>>>>>>>> Now, if these tests need to pass on my system before I can start
>>>>>>>> contributing, I need some input. If solving the reason why they fail
>>>>>>>> is some sort of initiation rite, it's going to take me a bit more
>>>>>>>> time
>>>>>>>> to get into the 'inner circle' ;-)
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>> Ok,
>>>>>>>>> 
>>>>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>>>>> 
>>>>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>>>>> 
>>>>>>>>> I've piped the results of the compiler main to a text file. If
>>>>>>>>> anyone
>>>>>>>>> is interested, I'll create a JIRA ticket and attache that file to
>>>>>>>>> it.
>>>>>>>>> 
>>>>>>>>> EdB
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>> 
>>>>>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>>>>>> 'sdk.branch', good suggestion.
>>>>>>>>>> 
>>>>>>>>>> EdB
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton
>>>>>>>>>> <cf...@adobe.com>
>>>>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Hi,
>>>>>>>>>>>> 
>>>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>>>> successfully
>>>>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>>>>> issues
>>>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>>> 
>>>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>>>>> system;
>>>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>>>>>> build.xml
>>>>>>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>>>>>> 
>>>>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>>>>> 
>>>>>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>>>>> See the README there for instructions.
>>>>>>>>>>> 
>>>>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>>>>> 
>>>>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR
>>>>>>>>>>> file
>>>>>>>>>>> for
>>>>>>>>>>> JFlex 1.4.3.
>>>>>>>>>>> 
>>>>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is
>>>>>>>>>>> not
>>>>>>>>>>> the
>>>>>>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>>>>> 
>>>>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in
>>>>>>>>>>> there.
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> Carol
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> --
>>>>>>>>>> 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
>>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>>> http://www.teotigraphix.com
>>>>>>> http://blog.teotigraphix.com
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>> 
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>> 
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>> 
>>>> 
>>>> 
>>> 
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>> 
>> 
>> 
> 
> 
> 

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <mi...@teotigraphix.com>.
Carol,

I can fix these, how would you suggest? Just using + concatenation? or  
StringBuffer?

Mike

Quoting Carol Frampton <cf...@adobe.com>:

> File.separatorChar
>
>
> On 11/20/12 4 :01PM, "Alex Harui" <ah...@adobe.com> wrote:
>
>> Gordon uses a Windows machine and the tests have some backslashes in the
>> paths so the fail on Mac.
>>
>> What is the proper way to deal with slashes on different platforms in
>> Java?
>> If you know, you can fix the code in
>> compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXML
>> No
>> deBaseTests.java
>>
>> And maybe elsewhere.
>>
>> -Alex
>>
>> On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>> Well, at least I know I'm not crazy, since you see the same failures ;-)
>>>
>>> I'll wait for Gordon and meanwhile do a bit of the new website.
>>>
>>> EdB
>>>
>>>
>>> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com>
>>> wrote:
>>>> Erik,
>>>>
>>>> I sent just email to Gordon and got back an "out of office" until
>>>> Monday
>>>> email so you'll either have to wait or debug it.
>>>>
>>>> Carol
>>>>
>>>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>>>> dir, right? If I put a breakpoint somewhere, I can see those files are
>>>>> created and the contents that I can see seem to be correct. But what
>>>>> about the contents that are not immediately visible? There was a lot
>>>>> to do about line endings and such on the listŠ might this be affected
>>>>> by something like that?
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>>>>> <ap...@teotigraphix.com> wrote:
>>>>>> I did exactly what you now tried; checkout the whole Apache project,
>>>>>> build
>>>>>> framework and build compiler.
>>>>>>
>>>>>> The only difference I see here is you are on OSX, but I think Carol
>>>>>> is
>>>>>> to.
>>>>>>
>>>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>>>>
>>>>>> Unfortunately, without sitting next to you and looking, I have no
>>>>>> idea
>>>>>> what
>>>>>> is going wrong. I bet it is something small and ridiculous though.
>>>>>>
>>>>>>
>>>>>> Mike
>>>>>>
>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>
>>>>>>> Latest news:
>>>>>>>
>>>>>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>>>>>> don't need to mess with paths etc. anymore.
>>>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>>>>>> the EXACT SAME results as before, i.e. jUnit test fail and I get
>>>>>>> some
>>>>>>> warnings!
>>>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime"
>>>>>>> warning
>>>>>>> go
>>>>>>> away
>>>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>>>>>> "ant/lib" directory of the SDK which, on my machine at least, does
>>>>>>> not
>>>>>>> exist; changing all references to "ant/lib" to "lib" (3x), where
>>>>>>> that
>>>>>>> jar does exist, makes the last warning go away;
>>>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>>>> (after an 'ant wipe') to it.
>>>>>>>
>>>>>>> Now, if these tests need to pass on my system before I can start
>>>>>>> contributing, I need some input. If solving the reason why they fail
>>>>>>> is some sort of initiation rite, it's going to take me a bit more
>>>>>>> time
>>>>>>> to get into the 'inner circle' ;-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Ok,
>>>>>>>>
>>>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>>>>
>>>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>>>>
>>>>>>>> I've piped the results of the compiler main to a text file. If
>>>>>>>> anyone
>>>>>>>> is interested, I'll create a JIRA ticket and attache that file to
>>>>>>>> it.
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>>>>> 'sdk.branch', good suggestion.
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton
>>>>>>>>> <cf...@adobe.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>>> successfully
>>>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>>>> issues
>>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>>>
>>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>>>> system;
>>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>>>>> build.xml
>>>>>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>>>>>
>>>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>>>>
>>>>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>>>> See the README there for instructions.
>>>>>>>>>>
>>>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>>>>
>>>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR
>>>>>>>>>> file
>>>>>>>>>> for
>>>>>>>>>> JFlex 1.4.3.
>>>>>>>>>>
>>>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is
>>>>>>>>>> not
>>>>>>>>>> the
>>>>>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>>>>
>>>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in
>>>>>>>>>> there.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Carol
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>>> http://www.teotigraphix.com
>>>>>> http://blog.teotigraphix.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>
>>>
>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>




Re: Falcon compiler(.tests) building

Posted by Carol Frampton <cf...@adobe.com>.
File.separatorChar


On 11/20/12 4 :01PM, "Alex Harui" <ah...@adobe.com> wrote:

>Gordon uses a Windows machine and the tests have some backslashes in the
>paths so the fail on Mac.
>
>What is the proper way to deal with slashes on different platforms in
>Java?
>If you know, you can fix the code in
>compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXML
>No
>deBaseTests.java
>
>And maybe elsewhere.
>
>-Alex
>
>On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Well, at least I know I'm not crazy, since you see the same failures ;-)
>> 
>> I'll wait for Gordon and meanwhile do a bit of the new website.
>> 
>> EdB
>> 
>> 
>> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com>
>>wrote:
>>> Erik,
>>> 
>>> I sent just email to Gordon and got back an "out of office" until
>>>Monday
>>> email so you'll either have to wait or debug it.
>>> 
>>> Carol
>>> 
>>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>> 
>>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>>> dir, right? If I put a breakpoint somewhere, I can see those files are
>>>> created and the contents that I can see seem to be correct. But what
>>>> about the contents that are not immediately visible? There was a lot
>>>> to do about line endings and such on the listŠ might this be affected
>>>> by something like that?
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>>>> <ap...@teotigraphix.com> wrote:
>>>>> I did exactly what you now tried; checkout the whole Apache project,
>>>>> build
>>>>> framework and build compiler.
>>>>> 
>>>>> The only difference I see here is you are on OSX, but I think Carol
>>>>>is
>>>>> to.
>>>>> 
>>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>>> 
>>>>> Unfortunately, without sitting next to you and looking, I have no
>>>>>idea
>>>>> what
>>>>> is going wrong. I bet it is something small and ridiculous though.
>>>>> 
>>>>> 
>>>>> Mike
>>>>> 
>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>> 
>>>>>> Latest news:
>>>>>> 
>>>>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>>>>> don't need to mess with paths etc. anymore.
>>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>>>>> the EXACT SAME results as before, i.e. jUnit test fail and I get
>>>>>>some
>>>>>> warnings!
>>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime"
>>>>>>warning
>>>>>> go
>>>>>> away
>>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>>>>> "ant/lib" directory of the SDK which, on my machine at least, does
>>>>>>not
>>>>>> exist; changing all references to "ant/lib" to "lib" (3x), where
>>>>>>that
>>>>>> jar does exist, makes the last warning go away;
>>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>>> (after an 'ant wipe') to it.
>>>>>> 
>>>>>> Now, if these tests need to pass on my system before I can start
>>>>>> contributing, I need some input. If solving the reason why they fail
>>>>>> is some sort of initiation rite, it's going to take me a bit more
>>>>>>time
>>>>>> to get into the 'inner circle' ;-)
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>> 
>>>>>>> Ok,
>>>>>>> 
>>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>>> 
>>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>>> 
>>>>>>> I've piped the results of the compiler main to a text file. If
>>>>>>>anyone
>>>>>>> is interested, I'll create a JIRA ticket and attache that file to
>>>>>>>it.
>>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>> 
>>>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>>>> 'sdk.branch', good suggestion.
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton
>>>>>>>><cf...@adobe.com>
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>> 
>>>>>>>>>> Hi,
>>>>>>>>>> 
>>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>>> successfully
>>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>>> issues
>>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>>> 
>>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>>> system;
>>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>>>> build.xml
>>>>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>>>> 
>>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>>> 
>>>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>>> See the README there for instructions.
>>>>>>>>> 
>>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>>> 
>>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR
>>>>>>>>>file
>>>>>>>>> for
>>>>>>>>> JFlex 1.4.3.
>>>>>>>>> 
>>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is
>>>>>>>>>not
>>>>>>>>> the
>>>>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>>> 
>>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in
>>>>>>>>>there.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Carol
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> 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
>>>>>> 
>>>>> 
>>>>> --
>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>> http://www.teotigraphix.com
>>>>> http://blog.teotigraphix.com
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Ix Multimedia Software
>>>> 
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>> 
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>> 
>> 
>> 
>
>-- 
>Alex Harui
>Flex SDK Team
>Adobe Systems, Inc.
>http://blogs.adobe.com/aharui
>


Re: Falcon compiler(.tests) building

Posted by Alex Harui <ah...@adobe.com>.
Gordon uses a Windows machine and the tests have some backslashes in the
paths so the fail on Mac.

What is the proper way to deal with slashes on different platforms in Java?
If you know, you can fix the code in
compiler.tests/unit-tests/org/apache/flex/compiler/internal/tree/mxml/MXMLNo
deBaseTests.java

And maybe elsewhere.

-Alex

On 11/20/12 8:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Well, at least I know I'm not crazy, since you see the same failures ;-)
> 
> I'll wait for Gordon and meanwhile do a bit of the new website.
> 
> EdB
> 
> 
> On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com> wrote:
>> Erik,
>> 
>> I sent just email to Gordon and got back an "out of office" until Monday
>> email so you'll either have to wait or debug it.
>> 
>> Carol
>> 
>> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> Just guessing now, but: the MXML is read from a file in the 'temp'
>>> dir, right? If I put a breakpoint somewhere, I can see those files are
>>> created and the contents that I can see seem to be correct. But what
>>> about the contents that are not immediately visible? There was a lot
>>> to do about line endings and such on the listŠ might this be affected
>>> by something like that?
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>>> <ap...@teotigraphix.com> wrote:
>>>> I did exactly what you now tried; checkout the whole Apache project,
>>>> build
>>>> framework and build compiler.
>>>> 
>>>> The only difference I see here is you are on OSX, but I think Carol is
>>>> to.
>>>> 
>>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>> 
>>>> Unfortunately, without sitting next to you and looking, I have no idea
>>>> what
>>>> is going wrong. I bet it is something small and ridiculous though.
>>>> 
>>>> 
>>>> Mike
>>>> 
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>> 
>>>>> Latest news:
>>>>> 
>>>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>>>> don't need to mess with paths etc. anymore.
>>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>>>> the EXACT SAME results as before, i.e. jUnit test fail and I get some
>>>>> warnings!
>>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning
>>>>> go
>>>>> away
>>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>>>> "ant/lib" directory of the SDK which, on my machine at least, does not
>>>>> exist; changing all references to "ant/lib" to "lib" (3x), where that
>>>>> jar does exist, makes the last warning go away;
>>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>>> (after an 'ant wipe') to it.
>>>>> 
>>>>> Now, if these tests need to pass on my system before I can start
>>>>> contributing, I need some input. If solving the reason why they fail
>>>>> is some sort of initiation rite, it's going to take me a bit more time
>>>>> to get into the 'inner circle' ;-)
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>> 
>>>>> 
>>>>> 
>>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>> 
>>>>>> Ok,
>>>>>> 
>>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>> 
>>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>> 
>>>>>> I've piped the results of the compiler main to a text file. If anyone
>>>>>> is interested, I'll create a JIRA ticket and attache that file to it.
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>> 
>>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>>> 'sdk.branch', good suggestion.
>>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com>
>>>>>>> wrote:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>> 
>>>>>>>>> Hi,
>>>>>>>>> 
>>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>> successfully
>>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>> issues
>>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>> 
>>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>> system;
>>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>> 
>>>>>>>> 
>>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>>> build.xml
>>>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>>> 
>>>>>>>> Before trying to build Falcon, you must:
>>>>>>>> 
>>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>>> See the README there for instructions.
>>>>>>>> 
>>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>> 
>>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file
>>>>>>>> for
>>>>>>>> JFlex 1.4.3.
>>>>>>>> 
>>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not
>>>>>>>> the
>>>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>> 
>>>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Carol
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> 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
>>>>> 
>>>> 
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC
>>>> http://www.teotigraphix.com
>>>> http://blog.teotigraphix.com
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>> 
> 
> 

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Well, at least I know I'm not crazy, since you see the same failures ;-)

I'll wait for Gordon and meanwhile do a bit of the new website.

EdB


On Tue, Nov 20, 2012 at 5:15 PM, Carol Frampton <cf...@adobe.com> wrote:
> Erik,
>
> I sent just email to Gordon and got back an "out of office" until Monday
> email so you'll either have to wait or debug it.
>
> Carol
>
> On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>Just guessing now, but: the MXML is read from a file in the 'temp'
>>dir, right? If I put a breakpoint somewhere, I can see those files are
>>created and the contents that I can see seem to be correct. But what
>>about the contents that are not immediately visible? There was a lot
>>to do about line endings and such on the listŠ might this be affected
>>by something like that?
>>
>>EdB
>>
>>
>>
>>On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
>><ap...@teotigraphix.com> wrote:
>>> I did exactly what you now tried; checkout the whole Apache project,
>>>build
>>> framework and build compiler.
>>>
>>> The only difference I see here is you are on OSX, but I think Carol is
>>>to.
>>>
>>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>>
>>> Unfortunately, without sitting next to you and looking, I have no idea
>>>what
>>> is going wrong. I bet it is something small and ridiculous though.
>>>
>>>
>>> Mike
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>> Latest news:
>>>>
>>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>>> don't need to mess with paths etc. anymore.
>>>> - I did a build of the SDK in 'branches/develop' without problems.
>>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>>> the EXACT SAME results as before, i.e. jUnit test fail and I get some
>>>> warnings!
>>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning
>>>>go
>>>> away
>>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>>> "ant/lib" directory of the SDK which, on my machine at least, does not
>>>> exist; changing all references to "ant/lib" to "lib" (3x), where that
>>>> jar does exist, makes the last warning go away;
>>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>>> (after an 'ant wipe') to it.
>>>>
>>>> Now, if these tests need to pass on my system before I can start
>>>> contributing, I need some input. If solving the reason why they fail
>>>> is some sort of initiation rite, it's going to take me a bit more time
>>>> to get into the 'inner circle' ;-)
>>>>
>>>> EdB
>>>>
>>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>>
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>wrote:
>>>>>
>>>>> Ok,
>>>>>
>>>>> I did a super-clean and main on the SDK, was successful.
>>>>>
>>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>>
>>>>> I've piped the results of the compiler main to a text file. If anyone
>>>>> is interested, I'll create a JIRA ticket and attache that file to it.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>
>>>>>> Thank you! I already figured out the first 3, but not the
>>>>>> 'sdk.branch', good suggestion.
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I have followed the various instructions and was able to
>>>>>>>>successfully
>>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>>issues
>>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>>
>>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>>system;
>>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>>
>>>>>>>
>>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>>build.xml
>>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>>
>>>>>>> Before trying to build Falcon, you must:
>>>>>>>
>>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>>> See the README there for instructions.
>>>>>>>
>>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>>
>>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file
>>>>>>>for
>>>>>>> JFlex 1.4.3.
>>>>>>>
>>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not
>>>>>>>the
>>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>>
>>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Carol
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>>--
>>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: Falcon compiler(.tests) building

Posted by Carol Frampton <cf...@adobe.com>.
Erik,

I sent just email to Gordon and got back an "out of office" until Monday
email so you'll either have to wait or debug it.

Carol

On 11/20/12 7 :17AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>Just guessing now, but: the MXML is read from a file in the 'temp'
>dir, right? If I put a breakpoint somewhere, I can see those files are
>created and the contents that I can see seem to be correct. But what
>about the contents that are not immediately visible? There was a lot
>to do about line endings and such on the listŠ might this be affected
>by something like that?
>
>EdB
>
>
>
>On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
><ap...@teotigraphix.com> wrote:
>> I did exactly what you now tried; checkout the whole Apache project,
>>build
>> framework and build compiler.
>>
>> The only difference I see here is you are on OSX, but I think Carol is
>>to.
>>
>> I just ran my tests from the compiler.tests/build.xml and all passed.
>>
>> Unfortunately, without sitting next to you and looking, I have no idea
>>what
>> is going wrong. I bet it is something small and ridiculous though.
>>
>>
>> Mike
>>
>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>
>>> Latest news:
>>>
>>> - I got myself a new working copy of the entire Flex SVN repo, so I
>>> don't need to mess with paths etc. anymore.
>>> - I did a build of the SDK in 'branches/develop' without problems.
>>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>>> the EXACT SAME results as before, i.e. jUnit test fail and I get some
>>> warnings!
>>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning
>>>go
>>> away
>>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>>> "ant/lib" directory of the SDK which, on my machine at least, does not
>>> exist; changing all references to "ant/lib" to "lib" (3x), where that
>>> jar does exist, makes the last warning go away;
>>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>>> (after an 'ant wipe') to it.
>>>
>>> Now, if these tests need to pass on my system before I can start
>>> contributing, I need some input. If solving the reason why they fail
>>> is some sort of initiation rite, it's going to take me a bit more time
>>> to get into the 'inner circle' ;-)
>>>
>>> EdB
>>>
>>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>>
>>>
>>>
>>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>wrote:
>>>>
>>>> Ok,
>>>>
>>>> I did a super-clean and main on the SDK, was successful.
>>>>
>>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>>
>>>> I've piped the results of the compiler main to a text file. If anyone
>>>> is interested, I'll create a JIRA ticket and attache that file to it.
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>
>>>>> Thank you! I already figured out the first 3, but not the
>>>>> 'sdk.branch', good suggestion.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have followed the various instructions and was able to
>>>>>>>successfully
>>>>>>> build the Falcon compiler. Along the way I encountered several
>>>>>>>issues
>>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>>
>>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>>> 'sdk.branch' property to the correct location of the SDK on my
>>>>>>>system;
>>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>>
>>>>>>
>>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>>> falcon/trunk/README you should not have to make any edits to
>>>>>>build.xml
>>>>>> assuming your directory tree looks like it does in svn.
>>>>>>
>>>>>> Before trying to build Falcon, you must:
>>>>>>
>>>>>> 1. Build the the "develop" branch of the SDK at
>>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>>> See the README there for instructions.
>>>>>>
>>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>>
>>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file
>>>>>>for
>>>>>> JFlex 1.4.3.
>>>>>>
>>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not
>>>>>>the
>>>>>> case for you, rather than edit build.xml invoke it with
>>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>>
>>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Carol
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>
>>
>> --
>> Michael Schmalle - Teoti Graphix, LLC
>> http://www.teotigraphix.com
>> http://blog.teotigraphix.com
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Just guessing now, but: the MXML is read from a file in the 'temp'
dir, right? If I put a breakpoint somewhere, I can see those files are
created and the contents that I can see seem to be correct. But what
about the contents that are not immediately visible? There was a lot
to do about line endings and such on the list… might this be affected
by something like that?

EdB



On Tue, Nov 20, 2012 at 1:09 PM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
> I did exactly what you now tried; checkout the whole Apache project, build
> framework and build compiler.
>
> The only difference I see here is you are on OSX, but I think Carol is to.
>
> I just ran my tests from the compiler.tests/build.xml and all passed.
>
> Unfortunately, without sitting next to you and looking, I have no idea what
> is going wrong. I bet it is something small and ridiculous though.
>
>
> Mike
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>> Latest news:
>>
>> - I got myself a new working copy of the entire Flex SVN repo, so I
>> don't need to mess with paths etc. anymore.
>> - I did a build of the SDK in 'branches/develop' without problems.
>> - I did a build of the Falcon compiler ('ant main' in trunk) and got
>> the EXACT SAME results as before, i.e. jUnit test fail and I get some
>> warnings!
>> - switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning go
>> away
>> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
>> "ant/lib" directory of the SDK which, on my machine at least, does not
>> exist; changing all references to "ant/lib" to "lib" (3x), where that
>> jar does exist, makes the last warning go away;
>> - I created a JIRA ticket [1] and attached the output of 'ant main'
>> (after an 'ant wipe') to it.
>>
>> Now, if these tests need to pass on my system before I can start
>> contributing, I need some input. If solving the reason why they fail
>> is some sort of initiation rite, it's going to take me a bit more time
>> to get into the 'inner circle' ;-)
>>
>> EdB
>>
>> 1: https://issues.apache.org/jira/browse/FLEX-33271
>>
>>
>>
>> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>
>>> Ok,
>>>
>>> I did a super-clean and main on the SDK, was successful.
>>>
>>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>>
>>> I've piped the results of the compiler main to a text file. If anyone
>>> is interested, I'll create a JIRA ticket and attache that file to it.
>>>
>>> EdB
>>>
>>>
>>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl>
>>> wrote:
>>>>
>>>> Thank you! I already figured out the first 3, but not the
>>>> 'sdk.branch', good suggestion.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com>
>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have followed the various instructions and was able to successfully
>>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>>
>>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>>
>>>>>
>>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>>> falcon/trunk/README you should not have to make any edits to build.xml
>>>>> assuming your directory tree looks like it does in svn.
>>>>>
>>>>> Before trying to build Falcon, you must:
>>>>>
>>>>> 1. Build the the "develop" branch of the SDK at
>>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>>> See the README there for instructions.
>>>>>
>>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>>
>>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file for
>>>>> JFlex 1.4.3.
>>>>>
>>>>> sdk.branch is set to <property name="sdk.branch"
>>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
>>>>> case for you, rather than edit build.xml invoke it with
>>>>> ant -Dsdk.branch=/path/to/sdk
>>>>>
>>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Carol
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
I did exactly what you now tried; checkout the whole Apache project,  
build framework and build compiler.

The only difference I see here is you are on OSX, but I think Carol is to.

I just ran my tests from the compiler.tests/build.xml and all passed.

Unfortunately, without sitting next to you and looking, I have no idea  
what is going wrong. I bet it is something small and ridiculous though.

Mike

Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Latest news:
>
> - I got myself a new working copy of the entire Flex SVN repo, so I
> don't need to mess with paths etc. anymore.
> - I did a build of the SDK in 'branches/develop' without problems.
> - I did a build of the Falcon compiler ('ant main' in trunk) and got
> the EXACT SAME results as before, i.e. jUnit test fail and I get some
> warnings!
> - switching from ant 1.8 to 1.7.1 made the "includeantruntime"  
> warning go away
> - the build file in 'compiler' is looking for 'flexTasks.jar' in the
> "ant/lib" directory of the SDK which, on my machine at least, does not
> exist; changing all references to "ant/lib" to "lib" (3x), where that
> jar does exist, makes the last warning go away;
> - I created a JIRA ticket [1] and attached the output of 'ant main'
> (after an 'ant wipe') to it.
>
> Now, if these tests need to pass on my system before I can start
> contributing, I need some input. If solving the reason why they fail
> is some sort of initiation rite, it's going to take me a bit more time
> to get into the 'inner circle' ;-)
>
> EdB
>
> 1: https://issues.apache.org/jira/browse/FLEX-33271
>
>
>
> On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Ok,
>>
>> I did a super-clean and main on the SDK, was successful.
>>
>> Did a wipe and main on the compiler and compiler.tests, no luck.
>>
>> I've piped the results of the compiler main to a text file. If anyone
>> is interested, I'll create a JIRA ticket and attache that file to it.
>>
>> EdB
>>
>>
>> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Thank you! I already figured out the first 3, but not the
>>> 'sdk.branch', good suggestion.
>>>
>>> EdB
>>>
>>>
>>>
>>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com> wrote:
>>>>
>>>>
>>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have followed the various instructions and was able to successfully
>>>>> build the Falcon compiler. Along the way I encountered several issues
>>>>> that are not yet documented (I'm on OS X 10.8):
>>>>>
>>>>> - I needed to edit the 'build.xml' file on line 50, to point the
>>>>> 'sdk.branch' property to the correct location of the SDK on my system;
>>>>> - when trying to use the mxmlc on a project, I got 'permission
>>>>> denied'. Setting the executable bit on the file corrected that;
>>>>
>>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>>> falcon/trunk/README you should not have to make any edits to build.xml
>>>> assuming your directory tree looks like it does in svn.
>>>>
>>>> Before trying to build Falcon, you must:
>>>>
>>>> 1. Build the the "develop" branch of the SDK at
>>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>>> See the README there for instructions.
>>>>
>>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>>
>>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file for
>>>> JFlex 1.4.3.
>>>>
>>>> sdk.branch is set to <property name="sdk.branch"
>>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
>>>> case for you, rather than edit build.xml invoke it with
>>>> ant -Dsdk.branch=/path/to/sdk
>>>>
>>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>>
>>>>
>>>>
>>>>
>>>> Carol
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Carol Frampton <cf...@adobe.com>.

On 11/20/12 6 :54AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>Latest news:
>
>- I got myself a new working copy of the entire Flex SVN repo, so I
>don't need to mess with paths etc. anymore.
>- I did a build of the SDK in 'branches/develop' without problems.
>- I did a build of the Falcon compiler ('ant main' in trunk) and got
>the EXACT SAME results as before, i.e. jUnit test fail and I get some
>warnings!
>- switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning go
>away

the default for includeantruntime changed with 1.8 which is what the
warning is telling you - you can ignore the warning but we can fix the
build.xml so you don't even see it

>- the build file in 'compiler' is looking for 'flexTasks.jar' in the
>"ant/lib" directory of the SDK which, on my machine at least, does not
>exist; changing all references to "ant/lib" to "lib" (3x), where that
>jar does exist, makes the last warning go away;

that's because it is in ant/lib in an installed kit and lib in the dev
branch - the build file should be fixed to look in both places if it
doesn't already - I made this same fix to the installer build.xml file
already

>- I created a JIRA ticket [1] and attached the output of 'ant main'
>(after an 'ant wipe') to it.
>
>Now, if these tests need to pass on my system before I can start
>contributing, I need some input. If solving the reason why they fail
>is some sort of initiation rite, it's going to take me a bit more time
>to get into the 'inner circle' ;-)
>
>EdB


Re: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Latest news:

- I got myself a new working copy of the entire Flex SVN repo, so I
don't need to mess with paths etc. anymore.
- I did a build of the SDK in 'branches/develop' without problems.
- I did a build of the Falcon compiler ('ant main' in trunk) and got
the EXACT SAME results as before, i.e. jUnit test fail and I get some
warnings!
- switching from ant 1.8 to 1.7.1 made the "includeantruntime" warning go away
- the build file in 'compiler' is looking for 'flexTasks.jar' in the
"ant/lib" directory of the SDK which, on my machine at least, does not
exist; changing all references to "ant/lib" to "lib" (3x), where that
jar does exist, makes the last warning go away;
- I created a JIRA ticket [1] and attached the output of 'ant main'
(after an 'ant wipe') to it.

Now, if these tests need to pass on my system before I can start
contributing, I need some input. If solving the reason why they fail
is some sort of initiation rite, it's going to take me a bit more time
to get into the 'inner circle' ;-)

EdB

1: https://issues.apache.org/jira/browse/FLEX-33271



On Mon, Nov 19, 2012 at 6:08 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Ok,
>
> I did a super-clean and main on the SDK, was successful.
>
> Did a wipe and main on the compiler and compiler.tests, no luck.
>
> I've piped the results of the compiler main to a text file. If anyone
> is interested, I'll create a JIRA ticket and attache that file to it.
>
> EdB
>
>
> On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Thank you! I already figured out the first 3, but not the
>> 'sdk.branch', good suggestion.
>>
>> EdB
>>
>>
>>
>> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com> wrote:
>>>
>>>
>>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>>Hi,
>>>>
>>>>I have followed the various instructions and was able to successfully
>>>>build the Falcon compiler. Along the way I encountered several issues
>>>>that are not yet documented (I'm on OS X 10.8):
>>>>
>>>>- I needed to edit the 'build.xml' file on line 50, to point the
>>>>'sdk.branch' property to the correct location of the SDK on my system;
>>>>- when trying to use the mxmlc on a project, I got 'permission
>>>>denied'. Setting the executable bit on the file corrected that;
>>>
>>> I'm running on OS X 10.7.  If you follow the instructions in the
>>> falcon/trunk/README you should not have to make any edits to build.xml
>>> assuming your directory tree looks like it does in svn.
>>>
>>> Before trying to build Falcon, you must:
>>>
>>> 1. Build the the "develop" branch of the SDK at
>>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>>> See the README there for instructions.
>>>
>>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>>> PLAYERGLOBAL_HOME as when building the SDK.
>>>
>>> 3. Set the environment variable JFLEX_JAR to point to the JAR file for
>>> JFlex 1.4.3.
>>>
>>> sdk.branch is set to <property name="sdk.branch"
>>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
>>> case for you, rather than edit build.xml invoke it with
>>> ant -Dsdk.branch=/path/to/sdk
>>>
>>> or add falcon/complier/local.properties and set sdk.branch in there.
>>>
>>>
>>>
>>>
>>> Carol
>>>
>>>
>>>
>>
>>
>>
>> --
>> 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: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ok,

I did a super-clean and main on the SDK, was successful.

Did a wipe and main on the compiler and compiler.tests, no luck.

I've piped the results of the compiler main to a text file. If anyone
is interested, I'll create a JIRA ticket and attache that file to it.

EdB


On Mon, Nov 19, 2012 at 5:02 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Thank you! I already figured out the first 3, but not the
> 'sdk.branch', good suggestion.
>
> EdB
>
>
>
> On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com> wrote:
>>
>>
>> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>>Hi,
>>>
>>>I have followed the various instructions and was able to successfully
>>>build the Falcon compiler. Along the way I encountered several issues
>>>that are not yet documented (I'm on OS X 10.8):
>>>
>>>- I needed to edit the 'build.xml' file on line 50, to point the
>>>'sdk.branch' property to the correct location of the SDK on my system;
>>>- when trying to use the mxmlc on a project, I got 'permission
>>>denied'. Setting the executable bit on the file corrected that;
>>
>> I'm running on OS X 10.7.  If you follow the instructions in the
>> falcon/trunk/README you should not have to make any edits to build.xml
>> assuming your directory tree looks like it does in svn.
>>
>> Before trying to build Falcon, you must:
>>
>> 1. Build the the "develop" branch of the SDK at
>> incubator/flex/sdk/branches/develop by doing 'ant main'.
>> See the README there for instructions.
>>
>> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
>> PLAYERGLOBAL_HOME as when building the SDK.
>>
>> 3. Set the environment variable JFLEX_JAR to point to the JAR file for
>> JFlex 1.4.3.
>>
>> sdk.branch is set to <property name="sdk.branch"
>> value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
>> case for you, rather than edit build.xml invoke it with
>> ant -Dsdk.branch=/path/to/sdk
>>
>> or add falcon/complier/local.properties and set sdk.branch in there.
>>
>>
>>
>>
>> Carol
>>
>>
>>
>
>
>
> --
> 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: Falcon compiler(.tests) building

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Thank you! I already figured out the first 3, but not the
'sdk.branch', good suggestion.

EdB



On Mon, Nov 19, 2012 at 4:53 PM, Carol Frampton <cf...@adobe.com> wrote:
>
>
> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>Hi,
>>
>>I have followed the various instructions and was able to successfully
>>build the Falcon compiler. Along the way I encountered several issues
>>that are not yet documented (I'm on OS X 10.8):
>>
>>- I needed to edit the 'build.xml' file on line 50, to point the
>>'sdk.branch' property to the correct location of the SDK on my system;
>>- when trying to use the mxmlc on a project, I got 'permission
>>denied'. Setting the executable bit on the file corrected that;
>
> I'm running on OS X 10.7.  If you follow the instructions in the
> falcon/trunk/README you should not have to make any edits to build.xml
> assuming your directory tree looks like it does in svn.
>
> Before trying to build Falcon, you must:
>
> 1. Build the the "develop" branch of the SDK at
> incubator/flex/sdk/branches/develop by doing 'ant main'.
> See the README there for instructions.
>
> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
> PLAYERGLOBAL_HOME as when building the SDK.
>
> 3. Set the environment variable JFLEX_JAR to point to the JAR file for
> JFlex 1.4.3.
>
> sdk.branch is set to <property name="sdk.branch"
> value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
> case for you, rather than edit build.xml invoke it with
> ant -Dsdk.branch=/path/to/sdk
>
> or add falcon/complier/local.properties and set sdk.branch in there.
>
>
>
>
> Carol
>
>
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Falcon compiler(.tests) building

Posted by Michael Schmalle <ap...@teotigraphix.com>.
I was just about to say something like this.

 From his directory structure (unit tests output), it doesn't look  
like he checked things out from the full flex svn.

I decided to check out the whole Apache Flex project which took hours  
but now I have a whole mirror of the Apache Flex svn on my computer.

I did exactly what Carol explained below and didn't have to edit  
anything, only set env vars and build each unit, framework, compiler  
and tests.

Mike


Quoting Carol Frampton <cf...@adobe.com>:

>
>
> On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Hi,
>>
>> I have followed the various instructions and was able to successfully
>> build the Falcon compiler. Along the way I encountered several issues
>> that are not yet documented (I'm on OS X 10.8):
>>
>> - I needed to edit the 'build.xml' file on line 50, to point the
>> 'sdk.branch' property to the correct location of the SDK on my system;
>> - when trying to use the mxmlc on a project, I got 'permission
>> denied'. Setting the executable bit on the file corrected that;
>
> I'm running on OS X 10.7.  If you follow the instructions in the
> falcon/trunk/README you should not have to make any edits to build.xml
> assuming your directory tree looks like it does in svn.
>
> Before trying to build Falcon, you must:
>
> 1. Build the the "develop" branch of the SDK at
> incubator/flex/sdk/branches/develop by doing 'ant main'.
> See the README there for instructions.
>
> 2. Set the environment variables JAVA_HOME, ANT_HOME, and
> PLAYERGLOBAL_HOME as when building the SDK.
>
> 3. Set the environment variable JFLEX_JAR to point to the JAR file for
> JFlex 1.4.3.
>
> sdk.branch is set to <property name="sdk.branch"
> value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
> case for you, rather than edit build.xml invoke it with
> ant -Dsdk.branch=/path/to/sdk
>
> or add falcon/complier/local.properties and set sdk.branch in there.
>
>
>
>
> Carol
>
>
>
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: Falcon compiler(.tests) building

Posted by Carol Frampton <cf...@adobe.com>.

On 11/18/12 12 :55PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>Hi,
>
>I have followed the various instructions and was able to successfully
>build the Falcon compiler. Along the way I encountered several issues
>that are not yet documented (I'm on OS X 10.8):
>
>- I needed to edit the 'build.xml' file on line 50, to point the
>'sdk.branch' property to the correct location of the SDK on my system;
>- when trying to use the mxmlc on a project, I got 'permission
>denied'. Setting the executable bit on the file corrected that;

I'm running on OS X 10.7.  If you follow the instructions in the
falcon/trunk/README you should not have to make any edits to build.xml
assuming your directory tree looks like it does in svn.

Before trying to build Falcon, you must:

1. Build the the "develop" branch of the SDK at
incubator/flex/sdk/branches/develop by doing 'ant main'.
See the README there for instructions.

2. Set the environment variables JAVA_HOME, ANT_HOME, and
PLAYERGLOBAL_HOME as when building the SDK.

3. Set the environment variable JFLEX_JAR to point to the JAR file for
JFlex 1.4.3.

sdk.branch is set to <property name="sdk.branch"
value="${compiler}/../../../sdk/branches/develop"/>. If this is not the
case for you, rather than edit build.xml invoke it with
ant -Dsdk.branch=/path/to/sdk

or add falcon/complier/local.properties and set sdk.branch in there.




Carol