Warning messages from ActiveRecord when used with FXRuby
-
lyle (at lylejohnson)
Since they are warning messages, they shouldn't be causing your program to fail (you just get a lot of noise in the console window). But I have a guess of what might fix it, if you can try something for me locally.
For the purpose of this discussion, I'm going to assume that you've installed FXRuby via RubyGems, and that it's installed here:
/opt/local/lib/ruby/gems/1.8/gems/fxruby-1.6.19
I want you to make changes to two lines in this file from the FXRuby installation:
/opt/local/lib/ruby/gems/1.8/gems/fxruby-1.6.19/lib/fox16/kwargs.rb
The first line I want you to change is line 3. It currently reads:
$VERBOSE = niland I want you to change it to:
old_verbose = $VERBOSE; $VERBOSE = nilThe other line I want you to change is line 2740 (the last line), which currently reads:
$VERBOSE = trueand I want you to change it to read:
$VERBOSE = old_verboseWhen you've changed those two lines, try running your program again and let's see if that doesn't clear up all those warnings from ActiveRecord.
-
lyle (at lylejohnson)
Original submitter replied:
I made the changes you suggested and I don't see any warnings now. Earlier I also used to get a warning from rscribd gem code when I am using fox16, now that is gone too.
-
lyle (at lylejohnson)
- Tag set to rubyforge
-
lyle (at lylejohnson)
- State changed from new to resolved
(from [ed77236fb21adf17187b86e9f81e29da9c45d770]) Modified the generate_kwargs_lib.rb script so that it remembers the previous warning level the user had set instead of just assuming
that warnings were turned on. [#8 Warning messages from ActiveRecord when used with FXRuby state:resolved]
http://github.com/lylejohnson/fxruby/commit/ed77236fb21adf17187b86e... -
lyle (at lylejohnson)
- Milestone order changed from 0 to 0
(from [ed6af26685a586605164161d5aeb4c0c4d907ecc]) Modified the generate_kwargs_lib.rb script so that it remembers the previous warning level the user had set instead of just assuming
that warnings were turned on. [#8 Warning messages from ActiveRecord when used with FXRuby state:resolved]
http://github.com/lylejohnson/fxruby/commit/ed6af26685a586605164161...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.