[Grace-core] Web-based compiler problems

Kim Bruce kim at cs.pomona.edu
Sun Feb 23 20:28:44 PST 2014


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:


Error around line 9 of window: RuntimeError: No such method 'init' on Object.
  Called Object.add (defined at window:111 in object at window:45) at test_Graphics_Timer:15
  Called block<window:118>.match (defined at unknown location) at window:97
  Called block<window:118>.applyIndirectly (defined at unknown location) at window:9
  Called Object.init (defined nowhere in object at components:175) at window:9
Error around line 9 of window: RuntimeError: No such method 'init' on Object.
   8: // This component is a top level graphical frame, which is required
   9: // for anything that needs to be displayed. It is also of type container
  10: // as it can contain other components which get displayed in the window.
You can examine the values of local variables at the time the program stopped.

----------
There is indeed a call of canvas.init on line 116 of window.grace, but it shouldn't be
executed in this instance.  I also didn't see why any init method would be called in box.add(c).
David or Alex, any idea what is happening.

test_Graphics_Mouse also died, while test_Color, test_Graphics_Basic, test_Contains, and test_Ordering were fine.

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.

Thanks for your help!

Kim



On Dec 11, 2013, at 10:53 AM, Alex Sandilands <sandilands.alex at gmail.com> wrote:

> 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
> 
> 
> On Wed, Dec 11, 2013 at 10:49 AM, Kim Bruce <kim at cs.pomona.edu> wrote:
> >
> >> 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.
> > That is not going to happen.
> 
> 
> 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.
> 
> 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.
> 
> Kim
> 
> > -Michael
> 
> 
> _______________________________________________
> Grace-core mailing list
> Grace-core at cecs.pdx.edu
> https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailhost.cecs.pdx.edu/pipermail/grace-core/attachments/20140224/b4879026/attachment.html>


More information about the Grace-core mailing list