[Laszlo-dev] how to catch the Flex compiler Errors?

Sebastian Wagner seba.wagner at gmail.com
Fri Jul 24 04:28:50 PDT 2009


hi,

actually you run into a lot of compilation issues when you run a previous
application into SWF9.
I followed the SWF9 Migration Guide of course, the code has zero problems to
be compiled to SWF8.
I guess in most cases its something very tiny tricky in the code that needs
to be changed but actually you don't get anything except
*org.openlaszlo.sc.CompilerError: Errors from compiler, output file not
created*
The console does also only pring:
FAIL: compiler returned 1 ... or another number

So how do you get those Compile Errors?
I guess they are not really that handy as they will show you only errors in
the resulting ActionScript that is going to be compiled by the Flex
compiler.
So you will not see which LZX-Codeline has the error.
But without any notice at which code-block to look at its almost impossible
to migrate more then a bunch of code lines with every compilation.

I've seen that there are some properties in the configuration:
compiler.swf9.warnings=false
compiler.swf9.execflex=true
# Tell compiler to catch errors in debug mode
compiler.catcherrors=true

changing them does seem to have an effect.

Is there a clue that is hidden somewhere or how do you judge what needs to
be done when you run into this?

thanks,
sebastian

-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090724/451faf7d/attachment.html


More information about the Laszlo-dev mailing list