<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I just loaded up the new graphics library components on the web-based Grace compiler and tried to run test_Graphics_Timer from the repository (grace-phix). Unfortunately it crashed. Here is the error message:<div><br></div><div><br><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"><span style="font-family: Helvetica; font-size: 12px; white-space: normal;">E</span>rror around line 9 of window: RuntimeError: No such method 'init' on Object.</li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> Called Object.add (defined at <a>window:111</a> in object at <a>window:45</a>) at <a>test_Graphics_Timer:15</a></li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> Called block<<a>window:118</a>>.match (defined at unknown location) at <a>window:97</a></li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> Called block<<a>window:118</a>>.applyIndirectly (defined at unknown location) at <a>window:9</a></li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> Called Object.init (defined nowhere in object at <a>components:175</a>) at <a>window:9</a></li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;">Error around line 9 of window: RuntimeError: No such method 'init' on Object.</li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> 8: // This component is a top level graphical frame, which is required</li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> 9: // for anything that needs to be displayed. It is also of type container</li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"> 10: // as it can contain other components which get displayed in the window.</li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"></li><li style="max-width: 60vw; font-family: monospace; font-size: medium; white-space: pre-wrap;"><a>You can examine the values of local variables at the time the program stopped.</a></li><div><br></div><div>----------</div><div>There is indeed a call of canvas.init on line 116 of window.grace, but it shouldn't be</div><div>executed in this instance. I also didn't see why any init method would be called in box.add(c).</div><div>David or Alex, any idea what is happening.</div><div><br></div><div>test_Graphics_Mouse also died, while test_Color, test_Graphics_Basic, test_Contains, and test_Ordering were fine.</div><div><br></div><div>I'll try to look at it more later to see if I can find anything more specific, but I was just using your test code.</div><div><br></div><div>Thanks for your help!</div><div><br class="webkit-block-placeholder"></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>Kim</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Dec 11, 2013, at 10:53 AM, Alex Sandilands <<a href="mailto:sandilands.alex@gmail.com">sandilands.alex@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">In a week or two we should have a cross platform graphics library working. With that you can write code that will run through the web compiler and on gtk with minigrace</div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Dec 11, 2013 at 10:49 AM, Kim Bruce <span dir="ltr"><<a href="mailto:kim@cs.pomona.edu" target="_blank">kim@cs.pomona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">><br>
>> I hope the gtk material can be integrated into the main web-based stream relatively soon as the lack means I can't use it for most of my demos where I am doing graphical applications using the objectdraw library.<br>
> That is not going to happen.<br>
<br>
<br>
</div>Then it sounds like I should forget trying to use Grace for teaching here next year. At this point i have to wonder why I am involved with this project if it will not support the kind of teaching I am planning.<br>
<br>
I can find other things to do on my leave next semester rather than wasting my time with something that will never be classroom ready.<br>
<span class="HOEnZb"><font color="#888888"><br>
Kim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> -Michael<br>
<br>
<br>
_______________________________________________<br>
Grace-core mailing list<br>
<a href="mailto:Grace-core@cecs.pdx.edu">Grace-core@cecs.pdx.edu</a><br>
<a href="https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core" target="_blank">https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core</a><br>
</div></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>