From: gabriele renzi Date: 2003-12-15T05:56:59+09:00 Subject: Re: rbbr errors (was: Re: rexml, rbbr, ruby-mysql, and exerb errors) il Sun, 14 Dec 2003 22:00:17 +0900, Masao Mutoh ha scritto:: >The errors is caused not to be set HOME environment variable. >So the workarround is to set HOME correctly on dos prompt: > >set HOME=c:\your\own\directory > >or you can set it with Control Panel as a permanent environment variable. > >> Thanks again for all of your help... > >You're welcome ;). > >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 ;). wow, if you're going to correct such issues[1], I'd like to add dsome more: 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) from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/confmanager.rb:65:in `open' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/confmanager.rb:65:in `[]=' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/confmanager.rb:90:in `[]=' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/confmanager.rb:100:in `add_libs' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/libselectiondialog.rb:83:in `initialize' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/browser.rb:27:in`new' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/browser.rb:27:in `create_menubar' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/browser.rb:26:in `call' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:54:in `main' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:54:in `main' from c:/programmi/ruby-1.8/ruby/bin/rbbr.rb:22 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' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/browser.rb:39:in `create_menubar' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk/browser.rb:30:in `call' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:54:in `main' from C:/Programmi/ruby-1.8/ruby/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:54:in `main' from c:/programmi/ruby-1.8/ruby/bin/rbbr.rb:22 btw, every NameError will crash rbbr. What's wrong with just catching every exception ? 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. [1] I mean, those were is the environment that is not working or users doing stupid things :)