ryanmelt / qtbindings

An easy to install gem version of the Ruby bindings to Qt
http://github.com/ryanmelt/qtbindings
Other
340 stars 63 forks source link

method redefined #82

Closed AlexTalker closed 10 years ago

AlexTalker commented 10 years ago
/usr/lib/ruby/vendor_ruby/2.1.0/Qt/qtruby4.rb:2527: warning: method redefined; discarding old method_missing
/usr/lib/ruby/vendor_ruby/2.1.0/Qt/qtruby4.rb:2527: warning: method redefined; discarding old const_missing
^C/usr/lib/ruby/vendor_ruby/2.1.0/Qt/qtruby4.rb:469:in `method_missing': Interrupt
        from /usr/lib/ruby/vendor_ruby/2.1.0/Qt/qtruby4.rb:469:in `exec'
        from ./rubu-qt-test.rb:10:in `<main>'

Code - https://gist.github.com/AlexTalker/9916083 Ruby: 2.1.0 System: Manjaro Linux Install style: gem install qtbindings

This, i think, not very hard warning, but it spammed in console.

jmthomas commented 10 years ago

Running under Windows 7 Ruby 2.0.0p353, qtbindings 4.8.5.2 does not output any warnings. I wonder if this is due to how it's being compiled in Linux.

jmthomas commented 10 years ago

The only place we re-defined method_missing in qtruby4.rb is inside the DBusInterface which you're not calling. I can't match up the line number either so I'm not sure what's going on. I don't have Manjaro Linux to test on so I'll leave it to you to fix and send a pull request.