Beagle123 / visualruby

Make GUI programs with Ruby!
https://beagle123.github.io/visualruby
MIT License
39 stars 9 forks source link

Uninitialized constant VR::Alert::GladeGUI #48

Closed rdhallman closed 6 years ago

rdhallman commented 6 years ago

I followed the install instructions on visualruby.net. But when I try to start vr or any of the examples, I get the following error:

$ vr
/Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:102:in rescue in block in require_all': Could not require /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/visualruby-3.2.0/lib/Alert.rb (uninitialized constant VR::Alert::GladeGUI). Please require the necessary files (RequireAll::LoadError) from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:97:inblock in require_all' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:96:in each' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:96:inrequire_all' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:118:in block in require_rel' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:117:ineach' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/require_all-2.0.0/lib/require_all.rb:117:in require_rel' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/visualruby-3.2.0/vr:17:inload_everything' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/visualruby-3.2.0/vr:41:in block in <top (required)>' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/gobject-introspection-3.2.4/lib/gobject-introspection/loader.rb:110:ininvoke' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/gobject-introspection-3.2.4/lib/gobject-introspection/loader.rb:110:in block in define_singleton_method' from /Users/rhallman/.rvm/gems/ruby-2.4.1/gems/visualruby-3.2.0/vr:44:in<top (required)>' from /Users/rhallman/.rvm/gems/ruby-2.4.1/bin/vr:23:in load' from /Users/rhallman/.rvm/gems/ruby-2.4.1/bin/vr:23:in

' from /Users/rhallman/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in eval' from /Users/rhallman/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in
'

All the dependencies installed fine. Any ideas what is wrong?

rdhallman commented 6 years ago

Nevermind. Reading other threads, found the comment about require_all 2.0 vs 1.3. Downgrading to 1.3 seems to have resolved my issue.