From: Masao Mutoh Date: 2003-12-16T03:24:46+09:00 Subject: Re: rbbr errors (was: Re: rexml, rbbr, ruby-mysql, and exerb errors) Hi, On Mon, 15 Dec 2003 08:47:05 +0900 gabriele renzi wrote: > il Sun, 14 Dec 2003 22:00:17 +0900, Masao Mutoh > ha scritto:: > >BTW, > >I intend to release rbbr-0.5.1 for MS Windows > >if your problem will be fixed. > >So keep to report your problems until you succeed to run rbbr, please ;). > > I just sent a longer message that does not seem to have appeared here. > My ISP has problems ATM with newsservers so I try again. > > I think there are some possible fix before 0.5.1, > my environment is > winxp pro > ruby 1.8.0 (2003-08-04) [i386-mswin32] > ruby-gtk 0.8 > gtk from dropline 2.2.4 > > 1) > for some strange reason, %USERPROFILE% does'nt get setted on my box. > so, if you try do a 'require library' you may get: > > C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/confmanager.rb:65: > in `initialize': No such file or directory - %USERPROFILE%/.rbbr > (Errno::ENOENT) Hmm, rbbr doesn't use %USERPROFILE% directly. How is your environment variables? I think your HOME environment is set like as HOME=%USERPROFILE%. If so, set correct path to HOME or USERPROFILE. > I accpet the erro, but possibly an error dialog instead of a crash > would be better :) Sure. I'll change it in the near future. > 2) > I suppose in the rescue clause there should exist an additional > 'NameError' catching. in browser.rb:39 > if you try to load this script > > $ary=Arrayciao 3000 , 0 > > you may get this error: > > C:\Documents and Settings\gabriele\bf.rb:1: undefined > method`Arrayciao' for # (NoMethodError) > from > C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/browser.rb:39:in > `load' > btw, every NameError will crash rbbr. What's wrong with just catching > every exception in that line ? (I'm a nuby forgive me :) Thanks. Fixed. > 3) > in moduleindex.rb line 47, > maybe this : > if iter.get_value(0) =~ /#{target_name}/i > should become > if iter.get_value(0) =~ /#{Regexp.quote(target_name)}/i > > other way, if you try to search for a single "]" you'll get a huge > number of warnings in the console. But maybe this is ok. The entry box accept regexp strings. For example, when you find classes which start 'A', put '^a' to the entry box. If you find Gtk::Window itself, put 'Gtk::Window$' there. If you find all of Gtk and Gdk modules/classes, put '(Gtk|Gdk)' there. It's really useful for me :). -- .:% Masao Mutoh