Bugs: Browse | Submit New | Admin

[#2931] Error when running Ruby Doc

Date:
2005-12-03 00:19
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Error when running Ruby Doc

Detailed description
I recieved the following error when runing Ruby Doc, from a clean 0.9.4 release

NoMethodError: undefined method `create' for nil:NilClass

/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fxri/fxri.rb:146:in `build'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fxri/fxri.rb:111:in `initialize'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fxri/fxri.rb:111:in `new'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fxri/fxri.rb:111:in `build'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fxri/fxri.rb:62:in `initialize'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fox_ri.rb:135:in `new'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fox_ri.rb:135:in `initialize'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fox_ri.rb:75:in `new'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fox_ri.rb:75:in `start'
/usr/local/FreeRIDE/./plugins/rubyide_tools_fox_ri/fox_ri.rb:74:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/databus.rb:949:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/databus.rb:559:in `invoke'
/usr/local/FreeRIDE/./plugins/rubyide_commands/command_manager.rb:148:in `invoke'
/usr/local/FreeRIDE/./plugins/rubyide_gui/menupane.rb:131:in `add_command'
/usr/local/FreeRIDE/./plugins/rubyide_gui/menupane.rb:131:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/databus.rb:949:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/databus.rb:559:in `invoke'
/usr/local/FreeRIDE/./plugins/rubyide_fox_gui/menupane.rb:104:in `update'
/usr/local/FreeRIDE/./plugins/rubyide_fox_gui/menupane.rb:104:in `call'
/usr/local/FreeRIDE/freeruby/lib/ruby/site_ruby/1.8/fox12/responder2.rb:57:in `onHandleMsg'
/usr/local/FreeRIDE/./plugins/rubyide_fox_gui/appframe.rb:51:in `run'
/usr/local/FreeRIDE/./plugins/rubyide_fox_gui/appframe.rb:51:in `start'
/usr/local/FreeRIDE/./plugins/rubyide_fox_gui/appframe.rb:49:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/databus.rb:949:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/databus.rb:559:in `call'
/usr/local/FreeRIDE/freebase/lib/freebase/core.rb:69:in `initialize'
/usr/local/FreeRIDE/freebase/lib/freebase/core.rb:68:in `initialize'
/usr/local/FreeRIDE/freebase/lib/freebase/core.rb:68:in `new'
/usr/local/FreeRIDE/freebase/lib/freebase/core.rb:68:in `initialize'
/usr/local/FreeRIDE/freebase/lib/freebase/core.rb:35:in `new'
/usr/local/FreeRIDE/freebase/lib/freebase/core.rb:35:in `startup'
/usr/local/FreeRIDE/freeride.rb:77:in `startup'
/usr/local/FreeRIDE/freeride.rb:116

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-02-20 20:05
Sender: Thomas Rynne

I have found a work around to the original stack trace. I think
it the issue has something to do with the fonts on my machine
but I expect it should handle missing fonts more gracefully.
I have installed more fonts but it made no difference. Anyway,
the following change fixes the bug:

Change lines 173-177 of rubyide_tools_fox_ri/fxri/fxri.rb
to this
                font = load_font($cfg.ri_font)
                @gui.text.font = font if font
                font.create if font
                @gui.text_width = 10
                @gui.text_width = font.fontWidth if font
Date: 2006-02-09 02:34
Sender: Phil Duby

Similar error in Ruby 0.9.5 on Windows XP Pro.  If I just type
"Y" in the Ruby Doc search / text windows, Ruby closes
with no error message, but I can get an error trace with the
following sequence:

Open FreeRIDE ==> Ruby Doc in detached / undocked window ==>
scroll until YAML visible ==> click YAML (the class)

NoMethodError: undefined method `join' for
"YAML":String

C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/FoxT
extFormatter.rb:229:in `display_flow_item'
C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/FoxT
extFormatter.rb:275:in `display_flow'
C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/FoxT
extFormatter.rb:274:in `display_flow'
C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/FoxD
isplayer.rb:150:in `display_flow'
C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/FoxD
isplayer.rb:93:in `display_class_info'
C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/RiMa
nager.rb:107:in `report_class_stuff'
C:/Progs/ruby/freeride/plugins/rubyide_tools_fox_ri/fxri/lib/RiMa
nager.rb:101:in `show'
C:/Progs/ruby/freeride/./plugins/rubyide_tools_fox_ri/fxri/fxri.r
b:288:in `on_show'
C:/Progs/ruby/freeride/./plugins/rubyide_tools_fox_ri/fxri/fxri.r
b:296:in `show_info'
C:/Progs/ruby/freeride/./plugins/rubyide_tools_fox_ri/fxri/fxri.r
b:153:in `build'
C:/Progs/ruby/lib/ruby/gems/1.8/gems/fxruby-1.2.6-mswin32/lib/fox
12/responder2.rb:57:in `onHandleMsg'
C:/Progs/ruby/freeride/./plugins/rubyide_fox_gui/appframe.rb:51:in
`start'
C:/Progs/ruby/freeride/freebase/lib/freebase/databus.rb:949:in
`call'
C:/Progs/ruby/freeride/freebase/lib/freebase/databus.rb:559:in
`call'
C:/Progs/ruby/freeride/freebase/lib/freebase/core.rb:69:in
`initialize'
C:/Progs/ruby/freeride/freebase/lib/freebase/core.rb:68:in
`initialize'
C:/Progs/ruby/freeride/freebase/lib/freebase/core.rb:35:in
`startup'
freeride.rb:77:in `startup'
freeride.rb:116

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item