Hello, I''ve got this warning: /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb: 82: warning: redefine listFonts when launching an FXRuby application. Is there anything I could changee in kwargs.rb to get rid of it. Computer: iMac flat G4, running Mac OS X 10.4.1 Fox version: 1.6.34 Thanks in advance for any hint. Cheers, Mich?le <http://micmacfr.homeunix.org> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081101/5d30f436/attachment.html>
On Nov 1, 2008, at 3:05 PM, Mich?le Garoche wrote:> Hello, > > I''ve got this warning: > > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb: > 82: warning: redefine listFonts > > when launching an FXRuby application. > > Is there anything I could changee in kwargs.rb to get rid of it?Run Ruby without warnings turned on (i.e. don''t pass the "-w" flag to ruby). I''m not sure why they''ve chosen to tag redefining methods as a warning, but there''s not much we can do about it. Hope this helps, Lyle --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081101/c4092ff7/attachment-0001.html>
Le 2 nov. 2008 ? 00:32, Lyle Johnson a ?crit :> > On Nov 1, 2008, at 3:05 PM, Mich?le Garoche wrote: > >> Hello, >> >> I''ve got this warning: >> >> /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/ >> kwargs.rb:82: warning: redefine listFonts >> >> when launching an FXRuby application. >> >> Is there anything I could changee in kwargs.rb to get rid of it? > > Run Ruby without warnings turned on (i.e. don''t pass the "-w" flag > to ruby). I''m not sure why they''ve chosen to tag redefining methods > as a warning, but there''s not much we can do about it. > > Hope this helps,Yes, sure, so simple. Thank you very much. Cheers, Mich?le <http://micmacfr.homeunix.org> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081102/4d9f8de4/attachment.html>
It easy to remove redefinition warnings. Just wrap the redefinition like so: $VERBOSE = nil def redefined_method ... end $VERBOSE = true This disables ruby warnings for that section. Ryan ________________________________ From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of Lyle Johnson Sent: Saturday, November 01, 2008 5:33 PM To: fxruby-users at rubyforge.org Subject: Re: [fxruby-users] Warning on kwargs on launch On Nov 1, 2008, at 3:05 PM, Mich?le Garoche wrote: Hello, I''ve got this warning: /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:82: warning: redefine listFonts when launching an FXRuby application. Is there anything I could changee in kwargs.rb to get rid of it? Run Ruby without warnings turned on (i.e. don''t pass the "-w" flag to ruby). I''m not sure why they''ve chosen to tag redefining methods as a warning, but there''s not much we can do about it. Hope this helps, Lyle --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/3ee638b0/attachment.html>
On Mon, Nov 3, 2008 at 9:36 AM, Melton, Ryan <rmelton at ball.com> wrote:> It easy to remove redefinition warnings. Just wrap the redefinition like > so: > > $VERBOSE = nil > > def redefined_method > ? > end > > $VERBOSE = true > > This disables ruby warnings for that section.Thanks! That I can do. I like this a lot better than just disabling warnings altogether.
Thank you very much Ryan, I prefer this solution than to disable warning (which I''ve not done). Le 3 nov. 2008 ? 16:36, Melton, Ryan a ?crit :> It easy to remove redefinition warnings. Just wrap the > redefinition like so: > > > > $VERBOSE = nil > > > > def redefined_method > > ? > > end > > > > $VERBOSE = true > > > > This disables ruby warnings for that section. > > > > Ryan > > > > From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users- > bounces at rubyforge.org] On Behalf Of Lyle Johnson > Sent: Saturday, November 01, 2008 5:33 PM > To: fxruby-users at rubyforge.org > Subject: Re: [fxruby-users] Warning on kwargs on launch > > > > > > On Nov 1, 2008, at 3:05 PM, Mich?le Garoche wrote: > > > > > Hello, > > > > I''ve got this warning: > > > > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb: > 82: warning: redefine listFonts > > > > when launching an FXRuby application. > > > > Is there anything I could changee in kwargs.rb to get rid of it? > > > > Run Ruby without warnings turned on (i.e. don''t pass the "-w" flag > to ruby). I''m not sure why they''ve chosen to tag redefining methods > as a warning, but there''s not much we can do about it. > > > > Hope this helps, > > > > Lyle > > > > --- > > "FXRuby: Create Lean and Mean GUIs with Ruby" > > Now available from the Pragmatic Bookshelf! > > http://www.pragprog.com/titles/fxruby > > > > > > > > > > > > This message and any enclosures are intended only for the > addressee. Please > notify the sender by email if you are not the intended recipient. > If you are > not the intended recipient, you may not use, copy, disclose, or > distribute this > message or its contents or enclosures to any other person and any > such actions > may be unlawful. Ball reserves the right to monitor and review all > messages > and enclosures sent to or from this email address. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-usersCheers, Mich?le <http://micmacfr.homeunix.org> ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/dff4137d/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 36C471DED4B09EEB30A0281F2608DB2FE6F9E147.gpgkey Type: application/octet-stream Size: 1744 bytes Desc: not available URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/dff4137d/attachment.obj> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081103/dff4137d/attachment-0001.html>