We are using OpenLaszlo 3.2 and have broken our application into
libraries for a variety of reasons (improve download time, improve
startup speed, lower memory usage, etc.).
Now we are finding that the code in the libraries no longer generates
the helpful "reference to undefined variable", "reference to undefined
property", or "undefined object does not have a property" messages.
I've looked through the JIRA bug database, and don't see a bug on this
issue.
If at all possible, we would really like to use libraries while
developing, and still get the useful undefined reference messages.
Looking deep into the OpenLaszlo source in VariableReference.java, it
seems that the only reasons that these messages would not be emitted to
the debugger is if Compiler.WARN_UNDEFINED_REFERENCES was set to false,
which it does not seem to be, or if node.filename was null, which also
does not seem likely.
I've gone as deep as I can (or want to) into the java code, and I do not
understand why this is happening. Can someone out there with a deeper
understanding of the Java code let me know why this is happening, and
how to fix it.
Enclosed is a sample program to reproduce the problem.
Thanks for your time.
--
Jason Stafford
Principal Developer
Inspiration Software, Inc.
The leader in visual thinking & learning
Introducing INSPIRATION(r) 8, the essential tool to visualize, think,
organize and learn. Students use Inspiration to plan, research and
complete projects successfully. Learn more at www.inspiration.com.
503-297-3004 Extension 119
503-297-4676 (Fax)
9400 SW Beaverton-Hillsdale Highway
Suite 300
Beaverton, OR 97005-3300
<?xml version='1.0' encoding='UTF-8' ?>
<canvas width='100%' height='100%' proxied='true' debug='true'>
<import name='library' stage='late' href='library.lzx'/>
<handler name='oninit'>
polly.wog();
Debug.write("Canvas is inited. Got expected warnings.");
</handler>
</canvas>
<?xml version='1.0' encoding='UTF-8' ?>
<library>
<view>
<handler name='oninit'>
froggy.frog();
Debug.write("Library is inited. Didn't see any warnings.");
</handler>
</view>
</library>
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev