Hello, I have started learning FXRuby about 2 weeks ago. Now I''m trying to launch the scintilla_test.rb from the fxruby-1.6 installation directory (/usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/examples) and get this error: /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in `old_initialize'': wrong number of arguments (8 for 0) (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in `initialize'' from -:32:in `new'' from -:32:in `initialize'' from -:75:in `new'' from -:75 Exited: 256 I''m on Ubuntu 8.04 and I installed libfxscintilla17 and libfxscintilla-dev from Synaptic. When I change line 2007 in kwargs.rb to old_initialize() the application starts but without the editor. How can I fix this error? Thanks in advance, Rovshan
On Aug 18, 2008, at 6:52 AM, Rovshan Baghirov wrote:> I have started learning FXRuby about 2 weeks ago. Now I''m trying to > launch the scintilla_test.rb from the fxruby-1.6 installation > directory > (/usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/examples) and get this > error: /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb: > 2007:in `old_initialize'': wrong number of arguments (8 for 0) > (ArgumentError) > > from /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb: > 2007:in `initialize'' > from -:32:in `new'' > from -:32:in `initialize'' > from -:75:in `new'' > from -:75 > > Exited: 256 > > I''m on Ubuntu 8.04 and I installed libfxscintilla17 and > libfxscintilla-dev from Synaptic.I can''t reproduce the error here, but based on your description it sounds as though your FXRuby wasn''t compiled with support for FXScintilla. If the FXScintilla packages weren''t actually installed when you installed the FXRuby gem, it wouldn''t have built-in the additional support for FXScintilla. I would suggest uninstalling, and then re-installing, the FXRuby gem, to see if that fixes 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
Thank you for response. I will try it. Thanks, Rovshan On Fri, Aug 22, 2008 at 9:16 PM, Lyle Johnson <lyle at lylejohnson.name> wrote:> > On Aug 18, 2008, at 6:52 AM, Rovshan Baghirov wrote: > > I have started learning FXRuby about 2 weeks ago. Now I''m trying to >> launch the scintilla_test.rb from the fxruby-1.6 installation directory >> (/usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/examples) and get this >> error: >> /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in >> `old_initialize'': wrong number of arguments (8 for 0) (ArgumentError) >> >> from /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in >> `initialize'' >> from -:32:in `new'' >> from -:32:in `initialize'' >> from -:75:in `new'' >> from -:75 >> >> Exited: 256 >> >> I''m on Ubuntu 8.04 and I installed libfxscintilla17 and >> libfxscintilla-dev from Synaptic. >> > > I can''t reproduce the error here, but based on your description it sounds > as though your FXRuby wasn''t compiled with support for FXScintilla. If the > FXScintilla packages weren''t actually installed when you installed the > FXRuby gem, it wouldn''t have built-in the additional support for > FXScintilla. I would suggest uninstalling, and then re-installing, the > FXRuby gem, to see if that fixes 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 > > > > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080825/31592c72/attachment.html>
I downloaded and built fxscintilla and fxruby from sources and now everything works correctly. Thank you, Rovshan On Fri, Aug 22, 2008 at 9:16 PM, Lyle Johnson <lyle at lylejohnson.name> wrote:> > On Aug 18, 2008, at 6:52 AM, Rovshan Baghirov wrote: > > I have started learning FXRuby about 2 weeks ago. Now I''m trying to >> launch the scintilla_test.rb from the fxruby-1.6 installation directory >> (/usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/examples) and get this >> error: >> /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in >> `old_initialize'': wrong number of arguments (8 for 0) (ArgumentError) >> >> from /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in >> `initialize'' >> from -:32:in `new'' >> from -:32:in `initialize'' >> from -:75:in `new'' >> from -:75 >> >> Exited: 256 >> >> I''m on Ubuntu 8.04 and I installed libfxscintilla17 and >> libfxscintilla-dev from Synaptic. >> > > I can''t reproduce the error here, but based on your description it sounds > as though your FXRuby wasn''t compiled with support for FXScintilla. If the > FXScintilla packages weren''t actually installed when you installed the > FXRuby gem, it wouldn''t have built-in the additional support for > FXScintilla. I would suggest uninstalling, and then re-installing, the > FXRuby gem, to see if that fixes 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 > > > > > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080825/d33c24a7/attachment.html>