I built a small form in wxFormBuilder. In cmd i wrote
xrcise -o test.rb ui.xrc
output was
C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/outputter.rb:4
6:in clean_id_attr_readers': undefined method
each’ for
#String:0xba5850 (No
MethodError)
from (erb):16:in output' from C:/ruby/lib/ruby/1.9.1/erb.rb:753:in
eval’
from C:/ruby/lib/ruby/1.9.1/erb.rb:753:in result' from C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/o utputter.rb:19:in
output’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:126:in
block (2 levels) in <top (required)>' from C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:125:in
each’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:125:in
block in <top (required)>' from C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:124:in
open’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:124:in
<top (required)>' from C:/ruby/bin/xrcise:19:in
load’
from C:/ruby/bin/xrcise:19:in `’
File : ui.xrc
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 500,300 Test 2 2 0 0 1 wxEXPAND | wxALL 5 wxTAB_TRAVERSAL wxVERTICAL 0 wxALL 5 0 0 wxALL 5 0 0 wxALL 5 MyButton 0 0 wxALL 5 MyButton 0 1 wxEXPAND | wxALL 5 wxTAB_TRAVERSAL 2 2 0 0 0 wxALL 5 wxCAL_SHOW_HOLIDAYS MyMenuBar File HelpCan someone explain what’s wrong?