[Kde-bindings] [Bug 277459] Ruby bindings produce huge amount of warnings in ruby 1.9
Richard Dale
richard.dale at telefonica.net
Sun Jul 17 18:44:48 UTC 2011
https://bugs.kde.org/show_bug.cgi?id=277459
--- Comment #1 from Richard Dale <richard dale telefonica net> 2011-07-17 18:44:48 ---
On Sunday, July 10, 2011 09:44:00 AM Stefano Crocco wrote:
> https://bugs.kde.org/show_bug.cgi?id=277459
>
> Summary: Ruby bindings produce huge amount of warnings in ruby
> 1.9
> Product: bindings
> Version: unspecified
> Platform: Gentoo Packages
> OS/Version: Linux
> Status: UNCONFIRMED
> Severity: normal
> Priority: NOR
> Component: general
> AssignedTo: kde-bindings at kde.org
> ReportedBy: stefano.crocco at alice.it
>
>
> Version: unspecified (using Devel)
> OS: Linux
>
> Requiring 'Qt4' or 'korundum4' using ruby 1.9 (this doesn't happen with
> ruby 1.8) with warnings enabled (using the -w switch) prints a huge amount
> of warnings. There are two kind of warnings:
>
> usr/lib64/ruby/site_ruby/1.9.1/Qt/qtruby4.rb:2527: warning: method
> redefined; discarding old const_missing
>
> /usr/lib64/ruby/site_ruby/1.9.1/Qt/qtruby4.rb:2527: warning: method
> redefined; discarding old method_missing
Are we redefining method_missing in the wrong way or something? Is there an api
in Ruby 1.9 to supress warnings like this? Otherwise, I can't see how to avoid
these warnings, as QtRuby completely depends on overriding method_missing - it
is the basic principle by which it works.
-- Richard
> Other warnings of these kinds are also shown later when running the ruby
> script. This is very annoying as it makes it impossible to see warnings
> produced by the script itself, as they're lost in the sea of warnings
> produced by qtruby/korundum
>
> Reproducible: Always
>
> Steps to Reproduce:
> run the command
>
> ruby -w -e 'require "Qt4"'
>
> using ruby 1.9
>
> Actual Results:
> A lot of warnings saying
>
> usr/lib64/ruby/site_ruby/1.9.1/Qt/qtruby4.rb:2527: warning: method
> redefined; discarding old const_missing
>
> and
>
> /usr/lib64/ruby/site_ruby/1.9.1/Qt/qtruby4.rb:2527: warning: method
> redefined; discarding old method_missing
>
> are shown
>
> Expected Results:
> No (or at least only a few) warnings shown
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-bindings
mailing list