Current SVN head compile error

9 views
Skip to first unread message

Alexander Gladysh

unread,
Sep 10, 2009, 12:49:01 PM9/10/09
to fluint-di...@googlegroups.com
Hi, list!

Current SVN head (r269) does not build on my machine (note that I've
had to apply patch below for build.xml to honor FLEX_HOME environment
variable).

Here is the build log:

$ ant
Buildfile: build.xml

clean:

clean:
[delete] Deleting directory /users/agladysh/projects/fluint/fluint/target

clean:
[delete] Deleting directory
/users/agladysh/projects/fluint/airtestrunner/target

clean:

fluint:

init:
[mkdir] Created dir: /users/agladysh/projects/fluint/fluint/target
[mkdir] Created dir: /users/agladysh/projects/fluint/fluint/target/classes
[mkdir] Created dir:
/users/agladysh/projects/fluint/fluint/target/test-classes
[mkdir] Created dir: /users/agladysh/projects/fluint/fluint/target/report
[mkdir] Created dir: /users/agladysh/projects/fluint/fluint/target/doc

build:
[java] Loading configuration file
/Users/agladysh/flex_sdk_3/frameworks/flex-config.xml
[java] /Users/agladysh/projects/fluint/fluint/target/classes/fluint.swc
(63018 bytes)

package:
[java] Loading configuration file
/Users/agladysh/flex_sdk_3/frameworks/flex-config.xml
[java]
[java]
[java]
[java]
[java]
[java] Documentation was created in
/users/agladysh/projects/fluint/fluint/target/doc/
[copy] Copying 1 file to /users/agladysh/projects/fluint/fluint/target

airtestrunner:
[copy] Copying 1 file to /users/agladysh/projects/fluint/airtestrunner/libs

init:
[mkdir] Created dir: /users/agladysh/projects/fluint/airtestrunner/target
[mkdir] Created dir:
/users/agladysh/projects/fluint/airtestrunner/target/classes
[mkdir] Created dir:
/users/agladysh/projects/fluint/airtestrunner/target/doc

build:
[java] Loading configuration file
/Users/agladysh/flex_sdk_3/frameworks/air-config.xml
[java] /Users/agladysh/projects/fluint/airtestrunner/src/main/flex/net/digitalprimates/fluintairrunner/TestRunnerWindow.as(99):
col: 24 Error: Implicit coercion of a value of type
net.digitalprimates.fluint.ui:TestRunner to an unrelated type
flash.display:DisplayObject.
[java]
[java] this.addChild(testRunner);
[java] ^
[java]

BUILD FAILED
/users/agladysh/projects/fluint/build.xml:51: The following error
occurred while executing this line:
/users/agladysh/projects/fluint/airtestrunner/build.xml:33: Java returned: 1

Total time: 21 seconds


What am I missing?

Alexander.

diff --git a/build.xml b/build.xml
index 513c5d6..0f7e7a9 100644
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,19 @@
<project name="fluint" basedir="." default="package">

<!-- User defined properties -->
- <property name="flex.home" location="/Applications/Adobe Flex
Builder 3/sdks/3.2.0" />
+ <property environment="env"/>
+ <property name="flex.home" location="${env.FLEX_HOME}" />
+ <fail>
+ <condition>
+ <not>
+ <isset property="env.FLEX_HOME" />
+ </not>
+ </condition>
+ Error!
+ You need to set FLEX_HOME environment variable (path to Flex SDK)
+ export FLEX_HOME=/Applications/Adobe\ Flex\ Builder\ 3/sdks/3.2.0
+ </fail>
+
<property name="fluint.testrunner"
location="/Applications/FluintAIRTestRunner.app/Contents/MacOS/FluintAIRTestRunner"
/>
<property name="cert.loc" location="${basedir}/cert.p12" />
<property name="cert.password" value="password" />

Alexander Gladysh

unread,
Sep 10, 2009, 1:40:00 PM9/10/09
to fluint-di...@googlegroups.com
> build:
>     [java] Loading configuration file
> /Users/agladysh/flex_sdk_3/frameworks/flex-config.xml
>     [java] /Users/agladysh/projects/fluint/fluint/target/classes/fluint.swc
> (63018 bytes)

So, it appears that the fluint.swc was successfully built, and errors
were related to other targets.

However, when I link fluint.swc to my swf instead of version 1.1.1, I
get a runtime error (error message is unfortunately in Russian, so the
translation may be inexact):

TypeError: Error #1009: Can't call property or method with null reference
at net.digitalprimates.fluint.ui::TestProgressBar/rebuildProgressBar()[/
Users/agladysh/projects/fluint/fluint/src/main/flex/net/digitalprimates/fluint/u
i/TestProgressBar.as:312]
at net.digitalprimates.fluint.ui::TestProgressBar/updateDisplayList()[/U
sers/agladysh/projects/fluint/fluint/src/main/flex/net/digitalprimates/fluint/ui
/TestProgressBar.as:272]
at mx.core::UIComponent/validateDisplayList()[C:\autobuild\3.2.0\framewo
rks\projects\framework\src\mx\core\UIComponent.as:6351]
at mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\framework
s\projects\framework\src\mx\core\Container.as:2677]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\f
rameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\framew
orks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\framewo
rks\projects\framework\src\mx\core\UIComponent.as:8568]

The same code with version 1.1.1 works fine.

Perhaps I should change something in my code?

I, of course, could just paste that getTests() into the TestCase class
and be done with it, but I'd like to avoid using custom modified code.

When the next release of fluint is planned?

Alexander.

Michael Labriola

unread,
Sep 13, 2009, 5:51:03 PM9/13/09
to Fluint Discussions
Alexandar,

I don't have an exact date for you, but I will get this trunk fixed so
that you can use that code

Mike

On Sep 10, 12:40 pm, Alexander Gladysh <aglad...@gmail.com> wrote:
> > build:
> >     [java] Loading configuration file
> > /Users/agladysh/flex_sdk_3/frameworks/flex-config.xml
> >     [java] /Users/agladysh/projects/fluint/fluint/target/classes/fluint.swc
> > (63018 bytes)
>
> So, it appears that the fluint.swc was successfully built, and errors
> were related to other targets.
>
> However, when I link fluint.swc to my swf instead of version 1.1.1, I
> get a runtime error (error message is unfortunately in Russian, so the
> translation may be inexact):
>
> TypeError: Error #1009: Can't call property or method with null reference
>         at net.digitalprimates.fluint.ui::TestProgressBar/rebuildProgressBar()[/
> Users/agladysh/projects/fluint/fluint/src/main/flex/net/digitalprimates/flu­int/u
> i/TestProgressBar.as:312]
>         at net.digitalprimates.fluint.ui::TestProgressBar/updateDisplayList()[/U
> sers/agladysh/projects/fluint/fluint/src/main/flex/net/digitalprimates/flui­nt/ui

Tom Williams

unread,
Sep 17, 2009, 7:19:16 AM9/17/09
to Fluint Discussions
Alexander,
After a little hacking I was able to get trunk compiling. Here's my
diff:

Index: fluint/src/main/flex/net/digitalprimates/fluint/ui/
TestResultDisplay.mxml
===================================================================
--- fluint/src/main/flex/net/digitalprimates/fluint/ui/
TestResultDisplay.mxml (revision 269)
+++ fluint/src/main/flex/net/digitalprimates/fluint/ui/
TestResultDisplay.mxml (working copy)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns="*"
xmlns:mx="http://www.adobe.com/2006/mxml"
- xmlns:dp="http://www.digitalprimates.net/2008/fluint"
+ xmlns:dp="net.digitalprimates.fluint.ui.*"
paddingLeft="10"
paddingRight="10"
paddingTop="10">
Index: fluint/src/main/flex/net/digitalprimates/fluint/ui/
TestRunner.as
===================================================================
--- fluint/src/main/flex/net/digitalprimates/fluint/ui/TestRunner.as
(revision 269)
+++ fluint/src/main/flex/net/digitalprimates/fluint/ui/TestRunner.as
(working copy)
@@ -27,6 +27,7 @@
import flash.events.EventDispatcher;
import flash.events.TimerEvent;
import flash.utils.*;
+ import flash.display.Sprite;

import mx.collections.ArrayCollection;
import mx.collections.CursorBookmark;
@@ -47,7 +48,7 @@
* TestSuite is executed and the results are aggragated
*/
[Event(name="testsComplete",type="flash.events.Event")]
- public class TestRunner extends EventDispatcher implements
IMXMLObject {
+ public class TestRunner extends Sprite implements IMXMLObject {
public static const TESTS_COMPLETE:String = "testsComplete";

I also had to comment out the asdoc generation as this seemed to fail.

This wasn't a complete solution as the build I was running (trying to
build the air test runner) still failed at the generation of the air
app, but the build did produce the AIRTestRunner.swf artifact which I
could copy into my installation of the AIRTestRunner I got from the
website. It does however generate an up to date fluint.swc quite
adequately.

Hope that's some help.

Regards,
Tom

Michael Labriola

unread,
Sep 17, 2009, 9:59:52 AM9/17/09
to Fluint Discussions

Tom,

Can you attach (or email me) a patch file and I will review and apply.

Thanks,
Mike
Reply all
Reply to author
Forward
0 new messages