some aging code which tries to partially evaluate those expressions at compile time
seems to be blowing a fuse someplace. If you can find the test case which causes this compiler error it would be helpful, I thought I had fixed this, and the fix does appear to be in the 3.2 release, but there must be some other case getting through.
The real fix is to strip out all this old compile-time matching code, it was made to try to push some calculations to compile time because Flash 5 player was soo slooow. I don't think it is needed or used in the current Flash 6/7/8 runtimes.
Henry,
I'm not quite sure about your example. Are you saying that we should not be able to do things such as
height="${parent.height - 20}'
Or
var myvar = 20;
height="${parent.height - myvar}"
Thanks
-David
From: Henry Minsky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 28, 2006 1:15 PM
To: David Buckler
Subject: Re: [Laszlo-user] Compiler Error 3.2
I meant
height="${parent.height +/- dddd}"
On 3/28/06, Henry Minsky <[EMAIL PROTECTED] > wrote:
According to where the stacktrace is, I would suspect an _expression_ in the source code declaring a view or other class with a constraint of the form height="$parent.height + dddd".
All that code needs to be removed at some point, it was basically to support precomputing some parameters at compile time where possible, because the Flash 5 runtime was sooo slooow. I don't think it is even used for anything in Flash 6/7/8 runtimes.
On 3/28/06, David Buckler < [EMAIL PROTECTED]> wrote:
That sample provide didn't reproduce the error in the first place and I incorrectly included that as an example of the bug. We haven't been able to track down exactly what line is causing the problem. I can try and dig up an example, but it will honestly take a few days to get to it. Any suggestions that you would have about the cause of the problem would be very helpful.
From: Henry Minsky [mailto: [EMAIL PROTECTED]]
Sent: Tuesday, March 28, 2006 11:12 AM
To: David Buckler
Cc: [email protected]
Subject: Re: [Laszlo-user] Compiler Error 3.2
In the bug this test case is filed:
<canvas height="500" debug="true">
<attribute name="fsize" value="30"/>
<text height="400" width="400"
fontsize="${parent.getAttribute('fsize') + 10}"
text="My test text" resize="true"/>
</canvas>
Is that the one you are still getting errors on, or is it another case?On 3/28/06, David Buckler <[EMAIL PROTECTED] > wrote:
When the community release of 3.2 came out I documented a bug regarding a compiler error I received. It was opened up in the JIRA with the key of LPP-1561, and since then the bug was fixed for the3.2 release. Unfortunately it seems that this issue hasn't been fixed because I received the same issue when I go and fire up
3.2:
Error: No match foundjava.lang.IllegalStateException: No match found
at java.util.regex.Matcher.group(Matcher.java:353)at org.openlaszlo.compiler.ViewCompiler.evalHeight
(ViewCompiler.java:760)at org.openlaszlo.compiler.ViewCompiler.mergeHeight
(ViewCompiler.java:669)at org.openlaszlo.compiler.ViewCompiler.mergeClassFontInfo
(ViewCompiler.java:517)atorg.openlaszlo.compiler.ViewCompiler.mergeClassFontInfo
(ViewCompiler.java:498)at org.openlaszlo.compiler.ViewCompiler.mapTextMetricsCompilation
(ViewCompiler.java:546)at org.openlaszlo.compiler.ViewCompiler.mapTextMetricsCompilation(ViewCompiler.java
:589)at org.openlaszlo.compiler.ViewCompiler.compile(ViewCompiler.java:107)
at org.openlaszlo.compiler.Compiler.compileElement (Compiler.java:564)at org.openlaszlo.compiler.CanvasCompiler.compile(CanvasCompiler.java
:154)at org.openlaszlo.compiler.Compiler.compileElement(Compiler.java:564)
at org.openlaszlo.compiler.Compiler.compile(Compiler.java:388)
at org.openlaszlo.compiler.Compiler.compile(Compiler.java:163)
at org.openlaszlo.cm.CompilationManager.compileItem(CompilationManager.java:886)at org.openlaszlo.cm.CompilationManager.getItem (CompilationManager.java:626)
at org.openlaszlo.cm.CompilationManager.getLastModified(CompilationManager.java:594)
at org.openlaszlo.servlets.responders.ResponderCompile.getLastModified(ResponderCompile.java
:423)at org.openlaszlo.servlets.responders.ResponderCompile.respondImpl(ResponderCompile.java:187)at org.openlaszlo.servlets.responders.Responder.respond(Responder.java:260)
at org.openlaszlo.servlets.LZServlet._doGet(LZServlet.java:441)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:355)
at javax.servlet.http.HttpServlet.service(HttpServlet.java :697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :157)at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)atorg.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:929)at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:793)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:702)at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:571)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:644)at java.lang.Thread.run(Thread.java:534)
Any ideas?
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
