weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #31050] cannot use config_new_option from ruby script


From: arno
Subject: [Weechat-dev] [bug #31050] cannot use config_new_option from ruby script
Date: Thu, 16 Sep 2010 11:45:20 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100820 Iceweasel/3.6.4 (like Firefox/3.6.4) FirePHP/0.4

URL:
  <http://savannah.nongnu.org/bugs/?31050>

                 Summary: cannot use config_new_option from ruby script
                 Project: WeeChat
            Submitted by: arenevier
            Submitted on: jeu 16 sep 2010 11:45:19 GMT
                Category: script API plugins
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
                IRC nick: 

    _______________________________________________________

Details:

Hi,
when trying to user config_new_option from a ruby script, it fails with
error
ruby: error: (eval):6:in `config_new_option': too many arguments (17)
(ArgumentError)
I investigated a bit, a discovered that ruby has a limit of 15 arguments to
cfuncs:
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_insnhelper.c?annotate=29040#l380


Here is my example script:

def weechat_init
    Weechat.register('test', 'arno', '0.1', 'WTFPL', 'test', '', '')

    config = Weechat.config_new("weechat", "", "")
    section = Weechat.config_new_section(config, "history", 0, 0, "", "", "",
"", "", "", "", "", "", "")
    option = Weechat.config_new_option(config, section, "max_commands",
"integer", "", "", 0, 32767, "100", "", 0, "", "", "", "", "", "")

    return Weechat::WEECHAT_RC_OK
end





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?31050>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]