Thank you so much, If you send me your patch, I send it to a friend of mine, because we want to start this project for the next week. Regards, Stephane On 31 Mar 2009, at 00:11, Matt Aimonetti wrote:
If I can find 5 minutes tonight, I'll try to write a quick work around patch for you so you can start working on your project and not wait for Macruby to be fixed.
- Matt
On Mon, Mar 30, 2009 at 2:51 PM, Stéphane Wirtel <stephane.wirtel@gmail.com
Thank you
But I hope this bug will be resolved because I want to implement a native cocoa client for the OpenERP project
On 30 Mar 2009, at 23:22, Matt Aimonetti wrote:
Could you please create a ticket for this bug, it looks like a constant is being called before being defined. It might be related to the load order in MacRuby (wild guess).
- Matt
On Mon, Mar 30, 2009 at 2:02 PM, Stéphane Wirtel <stephane.wirtel@gmail.com
wrote: Hi all,
I am trying to create a small xml-rpc client with macruby, but I got this error.
stargate:test_ruby stephane$ ./client.rb /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/ 1.9.1/rexml/attribute.rb:18:in `<class:Attribute>': uninitialized constant REXML::Attribute::NAME_STR (NameError) from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/rexml/attribute.rb:9:in `<module:REXML>' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/rexml/attribute.rb:4:in `<top (required)>' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/rexml/element.rb:3:in `require' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/rexml/element.rb:3:in `<top (required)>' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/rexml/document.rb:1:in `require' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/rexml/document.rb:1:in `<top (required)>' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/xmlrpc/parser.rb:700:in `require' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/xmlrpc/parser.rb:700:in `initialize' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/xmlrpc/utils.rb:48:in `new' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/xmlrpc/utils.rb:48:in `parser' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/xmlrpc/client.rb:421:in `call2' from /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/ lib/ruby/1.9.1/xmlrpc/client.rb:410:in `call' from ./client.rb:6:in `<main>'
Here is the source code of my small client
#!/usr/local/bin/macruby
require "xmlrpc/client"
server = XMLRPC::Client.new("tiny.my.odoo.com", "/xmlrpc/common", 8069) puts server.call("about")
This code works fine with the standard ruby.
So, I have downloaded the trunk version and I will try to fix this bug, and make a patch.
Regards,
Stephane
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Stéphane Wirtel stephane.wirtel@gmail.com
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Stéphane Wirtel stephane.wirtel@gmail.com