Frank Guo | 8 Feb 17:13
Favicon
Gravatar

Why we use other div to catch mouse event

Hi Tucker / Max,

There some bugs about mouse events handling when different components overlap.
I found one lzsprite will create another div to catch the mouse events.
Some bugs come from such mechanism. For example LPP-10120, when the function makeTextLink of text  class  will add a span element of the div, but such div will be overlapped by the clickdiv of the other view in lzcanvasclickdiv. 

I believe there must a very reason we choose such mechanism,
could tell me the reason. And it's better to give the some suggestion to resolve such bugs.

thanks a lot
frank
Frank Guo | 8 Feb 17:03
Favicon
Gravatar

How to generate uncompressed javascript

Hi Tucker / Max,

I want to fix some javascript bugs by using debug tools of browsers,
like firebug.
But I found it's difficult to debug compressed javascript.
Do you have way to make OL generated uncompressed js,
especially LFC kernel classes, like LzSprite.
They are written in js, but the OL make them unreadable.

Do you have any method to make them maintain their original format?

Thanks a lot
Frank

Picon
Gravatar

Re: [Laszlo-user] Microphone.getEnhancedMicrophone(); throws compiler error

I think some information is also provided in this Issue report:
http://jira.openlaszlo.org/jira/browse/LPP-9081

It includes the SVN log of the an update of the Flex Compiler.

I think this issue:
http://jira.openlaszlo.org/jira/browse/LPP-9903
can be closed, as there is already Flex 4.6 available.

However, for me it seems like upgrading Flex doesn't require many source code changes in the OpenLaszlo framework.
As far as I can see only this file is concerned:
/openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java

So this file here:
http://www.openlaszlo.org/svn/openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
=>I think SWF9External.java sets a number of compiler options to trigger the flex-sdk-compiler.

The rest of the updated files seem like a copy/update/compare of needed JARs,executables and other library stuff of the Flex SDK.
So, if there are no changes in the way Flex works and for example how it does does throw compiler errors, the update should potentially work.

Are there other known obstacles that need to be addressed?

Sebastian

2012/2/7 seba.wagner <at> gmail.com <seba.wagner <at> gmail.com>
Hi Raju,

did you had a chance to publish the docs somewhere? Or are those actually already somewhere in the wiki?

Thanks,
Sebastian


2012/2/3 Raju Bitter <r.bitter.mailinglists <at> googlemail.com>
Are you looking for the acoustic echo cancellation feature? That has
been added with FP 10.3 - and OpenLaszlo only supports 10.1.
http://groups.adobe.com/index.cfm?event=post.display&postid=35211

I'm going to share the information on upgrading the Flex SDK through
Google Docs, will post the link here later.

- Raju

On Fri, Feb 3, 2012 at 11:56 AM, seba.wagner <at> gmail.com
<seba.wagner <at> gmail.com> wrote:
> Hm,
>
> okay, where do you commit your results to?
>
> Sebastian
>
>
> 2012/2/3 Will Daniels <willops79 <at> gmail.com>
>>
>> Hi! I think it has to do with the fact the Laszlo is not currently
>> compiled against the latest Flex SDK, so none of the new classes seem to be
>> available.
>>
>> Raju and I are working on that...but help is always appreciated :)
>>
>>
>> On Thu, Feb 2, 2012 at 11:00 AM, seba.wagner <at> gmail.com
>> <seba.wagner <at> gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> the script
>>> Microphone.getEnhancedMicrophone();
>>>
>>> throws a compiler error that there is a static reference to .. I guess
>>> non existing method.
>>>
>>> Microphone.getMicrophone();
>>>
>>> works. However, that is of course no "enhancedMicrophone" then.
>>>
>>> Anybody got an idea how to solve or workaround that?
>>>
>>> Sebastian
>>>
>>> --
>>> Sebastian Wagner
>>> http://www.openmeetings.de
>>> http://incubator.apache.org/openmeetings/
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wagner <at> gmail.com
>>
>>
>
>
>
> --
> Sebastian Wagner
> http://www.openmeetings.de
> http://incubator.apache.org/openmeetings/
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner <at> gmail.com



--
Sebastian Wagner
http://www.openmeetings.de
http://incubator.apache.org/openmeetings/
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner <at> gmail.com



--
Sebastian Wagner
http://www.openmeetings.de
http://incubator.apache.org/openmeetings/
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner <at> gmail.com
Daniel Ju | 8 Feb 04:24
Favicon
Gravatar

[laszlo-dev] Add test cases for lzo compiler of <type/>

Change dju-20120207-PiR by dju <at> dju-laptop on 2012-02-07 16:19:17 CST 
    in /home/dju/src/svn/openlaszlo/trunk 
    for http://svn.openlaszlo.org/openlaszlo/trunk 

Summary: Add test cases for <type/> lzo compilation in lztest suite 

New Features: 

Bugs Fixed: LPP-10134 

Technical Reviewer: fguo 
QA Reviewer: dju 
Doc Reviewer: 

Documentation: 

Release Notes: 

Overview: 
Added special test cases in lztest test suite for <type/> lzo 
compilation check 
     
Details: 
Added 2 test cases 
Test point: 
1. The <type/> can be compiled to lzo successfully 
2. The lzo should work as expectation format (see LPP-10129 issue) 

Tests: 
ant lztest 

Files: 
A test/lztest/lzotype 
A test/lztest/lzotype/lztest-type.lzx 
A test/lztest/lzotype/lztest-type-include 
A test/lztest/lzotype/lztest-type-include/lztest-type-include.lzx 
A test/lztest/lzotype/lztest-type-include/lztest-type-include.benchmark 
A test/lztest/lzotype/lztest-type.benchmark 
M build-tools/runlztest.sh 
A build-tools/type-lzo-test.sh 

 
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/dju-20120207-PiR.tar  

Thanks,
Daniel Ju

Raju Bitter | 3 Feb 22:41

OpenLaszlo and Git - dealing with SVN dependencies in build scripts

Has anyone ever tried to replace the SVN dependencies in the
build-tools/build-opt.xml with compatible Git commands? Or how did you
go about building OpenLaszlo running on Git instead of SVN?

Frank Guo | 3 Feb 11:34
Favicon
Gravatar

LPP-10129 bug fixing

 
Summary: Fix lazyreplicator.insertNode(), classroot

New Features:

Bugs Fixed: LPP-10129
 

Documentation:

Release Notes:

Overview:

when compiling file include user type definition to lzo,
there are some generated code out side the XML.

Details:
TypeCompiler.java

It is because the TypeCompiler generate the lzs code when it resolve the type element. 
The moment is too early, so the lzs code for user type declaration  will appear at the top of lzo file. 
But the compile method of  TypeCompiler  is empty, so it will not generate any code, when compile the type element.

 

Files:
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/TypeCompiler.java
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java

After tracing the OL code, I found the reason of LPP-10129, the lzo problem. 


It is because the TypeCompiler generate the lzs code when resolve the the type element. 
The moment is too early, so the lzs code for user  type declaration  will appear at the top of lzo file. 
But the compile method of  TypeCompiler  is empty, so it will not generate any code, when compile the type element.

I read the code of ClassCompiler,  use the idea of it. I added the content of compile method of TypeCompiler, move the code that can generate lzs code from resolve method to compile method. 

After some basic test, I found it works well. Do you think we can fix the bug like this. 

I attach the file I had changed, I add a method to ViewSchema class, to get Type Class model.  

 

thanks 


frank 

Attachment (TypeCompiler.java): text/x-java, 5078 bytes
Attachment (ViewSchema.java): text/x-java, 33 KiB
Index: compiler/TypeCompiler.java
===================================================================
--- compiler/TypeCompiler.java	(revision 19507)
+++ compiler/TypeCompiler.java	(working copy)
@@ -47,10 +47,15 @@

     @Override
     public ClassModel resolve(CompilationEnvironment env)
-         throws CompilationError
-      {
+         throws CompilationError {
+             
         if (resolved) { return this; }
         resolved = true;
+        return this;
+    }
+    
+    protected void compile(CompilationEnvironment env, boolean force) {
+    
         String typename = XMLUtils.requireAttributeValue(definition, "name");
         LinkedHashMap<String, Object> instanceAttributes = new LinkedHashMap<String, Object>();
         LinkedHashMap<String, Object> classAttributes = new LinkedHashMap<String, Object>();
@@ -70,12 +75,11 @@
               "The tag '" + childName + "' cannot be used as a child of <type>", definition);
           }
         }
-        classAttributes.put("lzxtype", ScriptCompiler.quote(typename));
+        classAttributes.put("lzxtype", ScriptCompiler.quote(typename));    	
         ScriptClass scriptClass = new ScriptClass(className, "$lz$class_PresentationType", null,
instanceAttributes, classAttributes, "", "class");
         env.compileScript(scriptClass.toString(), definition);
         env.compileScript("lz.Type.addType('" + typename + "', new " + className + "());");
-        return this;
-      }
+    }
   }

     /**
@@ -103,8 +107,18 @@
     }

     @Override
-    public void compile(Element element)
-    {
+    public void compile(Element element) {
+    
+        String tagName = element.getAttributeValue("name");
+        if (tagName.equals("anonymous")) {
+              CompilationError cerr = new CompilationError(
+                  "The type 'anonymous' is reserved for system use, please choose another class name"
+                  , element);
+              throw(cerr);
+        }        
+              
+        ClassModel classModel = mEnv.getSchema().getInstanceTypeClassModel(element);
+        classModel.compile(mEnv, true);
     }
 }

Index: compiler/ViewSchema.java
===================================================================
--- compiler/ViewSchema.java	(revision 19507)
+++ compiler/ViewSchema.java	(working copy)
@@ -19,6 +19,7 @@
 import org.jdom.Element;
 import org.jdom.JDOMException;
 import org.openlaszlo.xml.internal.Schema;
+import org.openlaszlo.xml.internal.XMLUtils;
 import org.openlaszlo.utils.ChainedException;
 import org.openlaszlo.server.*;

@@ -341,6 +342,16 @@
       }
       return model;
     }
+    
+    ClassModel getInstanceTypeClassModel(Element element) {
+        String kind = KIND_TYPE;
+        String typename = XMLUtils.requireAttributeValue(element, "name");
+        ClassModel model = getClassModel(kind, typename);
+        if (model == null ) {
+          throw new CompilationError("no type"+typename, element);
+        }
+        return model;
+  }

   ClassModel getInstanceClassModel(Element element) {
     return getInstanceClassModel(element, true);
Picon
Gravatar

Microphone.getEnhancedMicrophone(); throws compiler error

Hi,

the script
Microphone.getEnhancedMicrophone();

throws a compiler error that there is a static reference to .. I guess
non existing method.

Microphone.getMicrophone();

works. However, that is of course no "enhancedMicrophone" then.

Anybody got an idea how to solve or workaround that?

Sebastian

--

-- 
Sebastian Wagner
http://www.openmeetings.de
http://incubator.apache.org/openmeetings/
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner <at> gmail.com

Raju Bitter | 26 Jan 20:32

Webinar: Moving from Adobe Flex to HTML5 and Sencha

For anyone interested in learning more about how to build HTML 5 apps
with Sencha, there's a free webinar

Topic: Moving from Flex to HTML5 & Sencha
When: Tuesday, February 14th
Time: 10:00 AM PT (1:00 PM ET)

http://pages.sencha.com/flex-to-sencha-webinar.html

Yu Feng | 16 Jan 09:17
Picon

Unexpected prolog in LZO for new components(gradient, basepanel, etc)

Hi Henry, Tucker and everyone,

Parts modules in our project are using new components in trunk and we are going to compile them to LZO.

As you can see from the build script error, it can be compiled into LZO successfully but fail when compiling the whole project and throw a BOM error.

build-libraries:
     [echo] lzc: /Users/yufeng/Work/fred-webtop/ol5/walnut/trunk/_sdk/17222/laszlo-webtop-2.2.1.1/webtop-sdk/openlaszlo/_walnut-client-build/client/webtop/walnut/globalcomponents/contact/library.lzx
     [exec] Compiling: library.lzx to library.lzo
     [copy] Copying 1 file to /Users/yufeng/Work/fred-webtop/ol5/walnut/trunk/_build/_lzo/globalcomponents/contact

build-client:
     [exec] Compiling: main.lzx to main.swf10.swf
     [exec] Compilation errors occurred:
     [exec] globalcomponents/contact/library.lzo:1:1: Content is not allowed in prolog. Some text editors may insert a Byte-Order Mark (the sequence of characters 0xEFBBBF) at the start of your source file without your knowledge. Please remove any non-whitespace characters before the start of the first '<' character.
     [exec] 

I am trying to dig more information from Parser.java and here is the contents in library.lzo:
dynamic class $lzc$type_gradient extends $lz$class_PresentationType{static var lzxtype="gradient";override function accept($a,$b:LzNode,$c:String){return new (lz.CSSGradient)($a)}override function present($a,$b:LzNode,$c:String){if($a&&$a.css)return $a.css;return null}}

lz.Type.addType("gradient",new $lzc$type_gradient());
<!-- This is a binary library.  Not meant for human consumption. -->
<!-- DO NOT EDIT THIS FILE.  Edit the source and recompile with `-c` -->
<library includes="resources/library.lzx
  AlertPreviewListView.lzx
  AlertPreviewItem.lzx
  BasePreviewItem.lzx
  MessagePreviewListView.lzx
  MessagePreviewItem.lzx
  BasePreviewListView.lzx">
<include href='../../olcontrols/library.lzx' />
<include href='../../../../components/textservice/library.lzo' />
<include href='../../../../components/ellipsis/library.lzo' />
<include href='../../../../components/model/library.lzo' />
.....
.....
</library>

The reason of the error may lie in while handling the reference of new components(gradient fill, etc), the compiler is adding some declaration of 'dynamic class' which result in an  unexpected prolog of a XML.

My question is, do you have any better idea to handle it? I am totally stuck by this issue...

thanks,
-Fred
Will Daniels | 10 Jan 17:24
Picon

Re: Any plans / timeframe to upgrade to Flex 4.5 SDK and support swf12?

Hi All,

Raju, I have the need to use some of the new Flash features in my current OL application, so I can write a detailed step by step guide on how to upgrade to the latest Flex SDK. I think your help and experience would be more than useful in this process =)

I think that, as a first step, we should integrate the new Flex SDK with the current OL 4.9.0 (old but stable), instead of the tip of the trunk (newer but unstable). This would give people a "refreshed" version of a stable OL build until the future of the framework is decided. I'm trying to build OL 4.9.0 from the SVN tag with a JDK 1.6 and facing some problems too...but I expect to devote a lot of time on this during the following weeks.

I've invested a lot of time and effort into building a complex OL app, and everybody is very happy with it (developers, customers, etc). I would hate having to throw everything down the toilet (although we all know that shit happens, je).

Thanks in advance,
Will


From: Raju Bitter <r.bitter.mailinglists <at> googlemail.com>
Date: Fri, Dec 16, 2011 at 1:04 PM
Subject: Re: [Laszlo-dev] Any plans / timeframe to upgrade to Flex 4.5 SDK and support swf12?
To: "seba.wagner <at> gmail.com" <seba.wagner <at> gmail.com>
Cc: Henry Minsky <hqm <at> alum.mit.edu>, laszlo-dev reporting <Laszlo-dev <at> openlaszlo.org>


No, not yet. Have not heard back on my last questions on where to host
the source code.

On Fri, Dec 16, 2011 at 3:24 PM, seba.wagner <at> gmail.com
<seba.wagner <at> gmail.com> wrote:
> That sounds good,
>
> is there now already a Git Repository with the current OpenLaszlo Sources?
>
> Thanks
>
>
> 2011/12/16 Henry Minsky <hqm <at> alum.mit.edu>
>>
>> Good detective work, Raju
>>
>> I was always worried about the performance of the TextLayout classes; we
>> were going to move to
>> them because the TextField class was declared at end-of-life, and we
>> needed the bidirectional text layout for a contract. But the speed of
>> rendering text was obviously slower with the new classes than
>> the old text field which was implemented natively.
>>
>> I think there were a few places we were using text fields inefficiently,
>> like in the debugger, where each additional line of output was causing the
>> whole field to re-render.
>>
>>
>>
>>
>> On Fri, Dec 16, 2011 at 8:02 AM, Raju Bitter
>> <r.bitter.mailinglists <at> googlemail.com> wrote:
>>>
>>> Ok, with those changes I was able to build OL with Flex 4.5,
>>> generating SWF11 files (checked the 4th byte of the generated SWF
>>> file, and it's "0B", for 4.1 it's "0A").
>>>
>>> On Fri, Dec 16, 2011 at 1:35 PM, Raju Bitter
>>> <r.bitter.mailinglists <at> googlemail.com> wrote:
>>> > Henry, I finally had time to look back into the problem with compiler
>>> > exception:
>>> > Changes in Flex Hero
>>> > Note: TextLayoutFormatValueHolder was a leightweight replacement for
>>> > an extremely inefficient TextLayoutFormat class. Since TLF 2.0 the
>>> > TextLayoutFormats implementation has been completely replaced by the
>>> > code of TextLayoutFormatValueHolder. So since Flex Hero (4.5) this
>>> > class is no longer available. In this case, simply replace
>>> > TextLayoutFormatValueHolder with TextLayoutFormats in the above
>>> > example.
>>> >
>>> > I replaced TextLayoutFormatValueHolder with TextLayoutFormat (no "s"
>>> > here, that's a typo in the Adobe docs) within
>>> > LzTLFTextFieldHostFormat.as and LzTLFTextFieldStyleResolver.as. Built
>>> > the LFC again, and got the following errors.
>>> >
>>> > LzTLFTextFieldHostFormat needs to implement the following methods:
>>> >  + Interface method get clearFloats in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get linkActiveFormat in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get linkHoverFormat in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get linkNormalFormat in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get listAutoPadding in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get listMarkerFormat in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get listStylePosition in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get listStyleType in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get styleName in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method get wordSpacing in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >  + Interface method getStyle in namespace
>>> > flashx.textLayout.formats:ITextLayoutFormat
>>> >
>>> > When I imlemented the missing methods as dummy methods, the LFC was
>>> > compiled without any errors.
>>> >
>>> > I think what OL needs is a good guide for upgrading the Flex SDK to
>>> > newer versions (including adding a new runtime radio to the dev
>>> > console). Without that, it will be difficult to maintain the compiler,
>>> > and keep the SWF runtime up-to-date.
>>> >
>>> > On Wed, Nov 16, 2011 at 1:02 AM, Raju Bitter
>>> > <r.bitter.mailinglists <at> googlemail.com> wrote:
>>> >> Thanks, Henry. No problem. I'll look into this a bit more tomorrow,
>>> >> and already have a basic understanding how the integration works.
>>> >>
>>> >> On Tue, Nov 15, 2011 at 11:06 PM, Henry Minsky <hqm <at> alum.mit.edu>
>>> >> wrote:
>>> >>> eek, seems like a few things need to be adjusted. I'm out of town for
>>> >>> this
>>> >>> week, maybe I can
>>> >>> look at this when I get back.
>>> >>>
>>> >>> On Tue, Nov 15, 2011 at 2:52 PM, Raju Bitter
>>> >>> <r.bitter.mailinglists <at> googlemail.com> wrote:
>>> >>>>
>>> >>>> Henry,
>>> >>>>
>>> >>>> following your instructions, I noticed these things when upgrading
>>> >>>> the
>>> >>>> Flex SDK to 4.5:
>>> >>>> 1) lib/flexTasks.jar does not exist any more
>>> >>>>
>>> >>>> 2) the configuration of the Flex version, runtime version and path
>>> >>>> information for playergobal.swc is spread out over a number of Java
>>> >>>> classes, configuration files and probably other places. Is there any
>>> >>>> list available which files need to be changed when a new Flash
>>> >>>> version/runtime is added?
>>> >>>>
>>> >>>> 3) How is the value of
>>> >>>>
>>> >>>>
>>> >>>> <path-element>libs/player/{targetPlayerVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
>>> >>>> set?
>>> >>>>
>>> >>>> 4) Using Flex 4.5 means, the playerglobal.swc will be 10.2, but the
>>> >>>> generated SWF format will be Flash 11. Does that mean we should
>>> >>>> switch
>>> >>>> the default runtime to Flash 11, or should the user be able to
>>> >>>> select
>>> >>>> the version (10.1 or 11.0)?
>>> >>>>
>>> >>>> Here are the things I've tried so far:
>>> >>>> a) copy the files from the new Flex version over into the $LPS_HOME
>>> >>>> directory structure, following the guideline file Henry created
>>> >>>>
>>> >>>> b) Update the LPS.java player version in
>>> >>>> WEB-INF/lps/server/src/org/openlaszlo/server/LPS.java
>>> >>>> public static String mDefaultFlexVersion = "10.2";
>>> >>>>
>>> >>>> c) Added the new Flex version to the list of known versions in
>>> >>>> WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java:
>>> >>>> public static List<String> KNOWN_FLEX_VERSIONS =
>>> >>>>        Arrays.asList("10.0", "10.1", "10.2");
>>> >>>>
>>> >>>> d) Added the swf11 runtime switch in
>>> >>>> org.openlaszlo.sc.SWF9External.java#compileTranslationUnits
>>> >>>>     if ("swf11".equals((String)options.get(Compiler.RUNTIME))) {
>>> >>>>          cmd.add("-target-player=10.2");
>>> >>>>     } else if
>>> >>>> ("swf10".equals((String)options.get(Compiler.RUNTIME))) {
>>> >>>>        if ("10.1".equals(flex_version)) {
>>> >>>>
>>> >>>> e) LFC build folder WEB-INF/lps/lfc
>>> >>>> In build.xml, add "11" to var swfruntimes.
>>> >>>> The individual build shell scripts access the flex and runtime
>>> >>>> default
>>> >>>> settings in
>>> >>>> WEB-INF/lps/config/lps.properties
>>> >>>> # Default runtime
>>> >>>> compiler.runtime.default=swf11
>>> >>>> compiler.flex_version.default=10.2
>>> >>>>
>>> >>>> Now, when I try to build, I get the following error message when
>>> >>>> building the LFC SWC files:
>>> >>>> lzl:
>>> >>>>     [echo] Compiling
>>> >>>> /home/raju/src/svn/openlaszlo/trunk45/lps/includes/lfc/LFC10.swc
>>> >>>>     [echo] Runtime: swf10
>>> >>>>     [java] compiler output is Loading configuration file
>>> >>>>
>>> >>>> /home/raju/src/svn/openlaszlo/trunk45/WEB-INF/frameworks/flex-config.xml
>>> >>>>     [java]
>>> >>>>     [java] Exception compiling scriptfile:
>>> >>>> org.openlaszlo.sc.CompilerError: line unknown: Error: Type was not
>>> >>>> found or was not a compile-time constant:
>>> >>>> TextLayoutFormatValueHolder,
>>> >>>> in line:             attr:TextLayoutFormatValueHolder,
>>> >>>>     [java] line unknown: Error: Type was not found or was not a
>>> >>>> compile-time constant: TextLayoutFormatValueHolder, in line:
>>> >>>>  styleSelector:String):TextLayoutFormatValueHolder
>>> >>>>     [java] org.openlaszlo.sc.CompilerException:
>>> >>>> org.openlaszlo.sc.CompilerError: line unknown: Error: Type was not
>>> >>>> found or was not a compile-time constant:
>>> >>>> TextLayoutFormatValueHolder,
>>> >>>> in line:             attr:TextLayoutFormatValueHolder,
>>> >>>>     [java] line unknown: Error: Type was not found or was not a
>>> >>>> compile-time constant: TextLayoutFormatValueHolder, in line:
>>> >>>>  styleSelector:String):TextLayoutFormatValueHolder
>>> >>>>     [java]     at
>>> >>>> org.openlaszlo.sc.Compiler.compile(Compiler.java:430)
>>> >>>>     [java]     at org.openlaszlo.sc.lzsc.compile(lzsc.java:127)
>>> >>>>     [java]     at org.openlaszlo.sc.lzsc.compile(lzsc.java:366)
>>> >>>>     [java]     at org.openlaszlo.sc.Main.main(Main.java:23)
>>> >>>>     [java] Compilation aborted.
>>> >>>>
>>> >>>> BUILD FAILED
>>> >>>> /home/raju/src/svn/openlaszlo/trunk45/WEB-INF/lps/lfc/build.xml:128:
>>> >>>> javax.script.ScriptException:
>>> >>>> sun.org.mozilla.javascript.internal.WrappedException: Wrapped The
>>> >>>> following error occurred while executing this line:
>>> >>>> /home/raju/src/svn/openlaszlo/trunk45/WEB-INF/lps/lfc/build.xml:80:
>>> >>>> Java returned: 1 (<Unknown source>#28) in <Unknown source> at line
>>> >>>> number 28
>>> >>>>        at
>>> >>>>
>>> >>>> com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:110)
>>> >>>>        at
>>> >>>>
>>> >>>> com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:124)
>>> >>>>        at
>>> >>>>
>>> >>>> javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
>>> >>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> >>>> Method)
>>> >>>> ...
>>> >>>>
>>> >>>> What should I do next? I still see that the system tries to build an
>>> >>>> LFC10SWC, not an LFC11.SWC. And the error is probably connected to
>>> >>>> an
>>> >>>> API change for the TLF.
>>> >>>>
>>> >>>> Any help appreciated. The runtime information is really spread out
>>> >>>> over MANY files.
>>> >>>>
>>> >>>> Raju
>>> >>>>
>>> >>>> On Tue, Nov 15, 2011 at 2:17 PM, Raju Bitter
>>> >>>> <r.bitter.mailinglists <at> googlemail.com> wrote:
>>> >>>> > Ignacio,
>>> >>>> >
>>> >>>> > did you ever try to upgrade the compiler? I'm going to give it a
>>> >>>> > try
>>> >>>> > today. Would be good to have the compiler upgraded before the 5.0
>>> >>>> > release.
>>> >>>> >
>>> >>>> > <at> Henry: If I run into any problems, I'd appreciate your help.
>>> >>>> >
>>> >>>> > Raju
>>> >>>> >
>>> >>>> > On Tue, Sep 13, 2011 at 2:43 PM, Amy Muntz
>>> >>>> > <amuntz <at> laszlosystems.com>
>>> >>>> > wrote:
>>> >>>> >> Hi Ignacio,
>>> >>>> >>
>>> >>>> >> Yes - it would be great if you could work on SWF12 support.  Let
>>> >>>> >> us
>>> >>>> >> know how
>>> >>>> >> it goes and if you get stuck, please don't hesitate to send
>>> >>>> >> email. This
>>> >>>> >> would be a great step forward!
>>> >>>> >>
>>> >>>> >> Thanks so much!
>>> >>>> >> Amy
>>> >>>> >>
>>> >>>> >>
>>> >>>> >>
>>> >>>> >> On Mon, Sep 12, 2011 at 7:44 PM, Donald Anderson
>>> >>>> >> <dda <at> ddanderson.com>
>>> >>>> >> wrote:
>>> >>>> >>>
>>> >>>> >>> Thanks, Henry.
>>> >>>> >>> Ignacio, I also worked on this code, though not as recently as
>>> >>>> >>> Henry.
>>> >>>> >>> So I may be able to help too if you get stuck.
>>> >>>> >>> Thanks for volunteering to work on this!
>>> >>>> >>> - Don
>>> >>>> >>> On Sep 12, 2011, at 6:56 PM, Henry Minsky wrote:
>>> >>>> >>>
>>> >>>> >>> I was the one who updated to the last SDK, I could help you out
>>> >>>> >>> with
>>> >>>> >>> trying to update.
>>> >>>> >>>
>>> >>>> >>> I had some steps I wrote up in a file in the sources, in
>>> >>>> >>> 3rd-party/how-to-copy-flex
>>> >>>> >>>
>>> >>>> >>> There are probably better ways to grab the flex SDK bits than
>>> >>>> >>> what I
>>> >>>> >>> did,
>>> >>>> >>> but this is a place to start. I can help out if there are any
>>> >>>> >>> changes
>>> >>>> >>> to the
>>> >>>> >>> command line calls to
>>> >>>> >>> invoke Flex.
>>> >>>> >>>
>>> >>>> >>>  In the file
>>> >>>> >>> WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
>>> >>>> >>> there is code which builds the command args that call the Flex
>>> >>>> >>> compiler. It
>>> >>>> >>> might be necessary to modify these if any args have changed or
>>> >>>> >>> been
>>> >>>> >>> added to
>>> >>>> >>> mxmlc or compc
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>> On Mon, Sep 12, 2011 at 3:49 PM, Ignacio Lopez
>>> >>>> >>> <ignacio.lopez <at> gmail.com>
>>> >>>> >>> wrote:
>>> >>>> >>>>
>>> >>>> >>>> OL is missing from A LOT of new things in Flash by being stuck
>>> >>>> >>>> with
>>> >>>> >>>> the
>>> >>>> >>>> old SDK and swf formats...Any plans / timeframe to upgrade to
>>> >>>> >>>> Flex
>>> >>>> >>>> 4.5 SDK
>>> >>>> >>>> and support swf12?
>>> >>>> >>>> I can volunteer some time to help if someone points me in the
>>> >>>> >>>> right
>>> >>>> >>>> direction =)
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>> --
>>> >>>> >>> Henry Minsky
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>> <howto-copy-flex>
>>> >>>> >>>
>>> >>>> >>> --
>>> >>>> >>> Don Anderson
>>> >>>> >>> Java/C/C++, Berkeley DB, systems consultant
>>> >>>> >>>
>>> >>>> >>> voice: 617-306-2057
>>> >>>> >>> email: dda <at> ddanderson.com
>>> >>>> >>> www: http://www.ddanderson.com
>>> >>>> >>> blog: http://libdb.wordpress.com
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>>
>>> >>>> >>
>>> >>>> >>
>>> >>>> >
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Henry Minsky
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>
>>
>>
>>
>> --
>> Henry Minsky
>>
>>
>>
>
>
>
> --
> Sebastian Wagner
> http://www.openmeetings.de
> http://incubator.apache.org/openmeetings/
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner <at> gmail.com



Raju Bitter | 1 Jan 15:26

OpenLaszlo compilation with i7 SandyBridge 2600k machine / mSata HDD

Intel Core i7 2600k quad core with 3.4 Ghz and mSata SSD. Build time
with skip-docs=true is 90s.

Compilation time SWF10 (empty canvas): less than 4 seconds
Compilation time DHTML (empty canvas): 2 seconds

The first time the OpenLaszlo compiler feels fast again, since the 3.0
release. :-)


Gmane