From: Masao Mutoh Date: 2003-12-18T01:33:29+09:00 Subject: Re: Other little bugs for rbbr Hi, On Wed, 17 Dec 2003 20:52:04 +0900 gabriele renzi wrote: > Hi gurus and nubys, > > I know I should post it to the sourceforge bug system, but I'm running > away ATM, so I send them here quickly. Why don't you join Ruby-GNOME2 ML? http://sourceforge.net/mail/?group_id=53614 > BTW, I'd like to thank Masao Mutoh (and the whole ruby-gnome2) project > for the quick answer, fix and the great libraries :) You're welcome ;). > These are some possible problem found in rbbr 0.5: > > > problem 1: > > If you load a file with "Load Script" and set $SAFE to 4 in it, you'll > get this error: > somehow SecurityErrors should be locked. Everything works fine with > $SAFE=1,2,3 and if you use "require library" to load the file This is one of the rbbr's restrictions. Both of "Load Script" and "require library" have this kind of problems. > problem 2: > > You can crash rbbr if you cause a TypeError within a script and load > it via "load script" > the input in this case was > 'y'.freeze.sub!(/y/ ,'c') This is also a restriction. But in this case, it's a bug. isn't it? > problem 3: > > > "require library" goes boom with a NameError > > C:/Programmi/ruby-1.8/ruby/lib/ruby/1.8/tmp.rb:1: undefined local > variable or method `crash' for # (NameError) > input: > crash Ditto. > problem 4: > dunno how this could be fixed, but if you change the content of an > already required library, you'll fall in the ugly situation that you > can't load rbbr anymore, cause it crashes in the start up. And I don't > know if there could be a simple "Can't load #{lib}" dialog in this > case, cause I don't know if rbbr and Gtk are already uvailable in that > moment. If "reading libraries process" is separated from main rbbr process, It may be solved. But I don't think to make rbbr complex. Because rbbr is a sample application of Ruby/GTK2. > possible problem: > > file selection dialog disappear silently on most (I suppose)erros, but > this seem like a Gtk specific annoyance. > For example if you pass names like "/" or "A:" or "^" or a non > existing directory, it just disappears, with no error message. > > At least maybe we could have some dialog box for the "Loading Ok" > case? :-) OK. I'll apply it in the near future. > btw, my confgiuartion: > WinXP pro > ruby 1.8.0 (2003-08-04) [i386-mswin32] > Gtk 2.2.4 from dropline > ruby-gtk2 0.8 > rbbr 0.5 > On a sidenote, what are the sugested packages for this? I'm helping > with the italian version of ruby-gnome2.sf.jp wiki, and I suppose we > should change a littl the installa guides, at least the one about > windows, to latest packages (it seem oudated even in the english and > japanese version of the wiki) Your configuration is now newest on MS Windows. And I updated english/japanese installation guide. If you help us, join our ML first, please. You need to get an account for editting the site. -- .:% Masao Mutoh