[MacRuby-devel] REXML

Matt Aimonetti mattaimonetti at gmail.com
Sat May 23 09:02:35 PDT 2009


hmmm make sure you are executing my code before loading rexml/document or
rexml/client. If you can't get it to work, please show me your code so I can
reproduce the issue and try to help.

- Matt

On Sat, May 23, 2009 at 7:43 AM, Robert Rice <rice.audio at pobox.com> wrote:

> Hi Matt:
> Your hot patch works in MacIRB but it doesn't seem to work in XCODE. Any
> idea why there would be a difference?
>
> Thanks,
> Bob Rice
>
>
> On May 22, 2009, at 12:59 PM, Matt Aimonetti wrote:
>
> For XML, you can use Cocoa API or if you want to ue REXML, you need to use
> the hot patch I mentioned there:
>
> http://www.macruby.org/trac/ticket/134
>
> Regarding the serialport library, I can't seem to see it on rubyforge, so
> I'm not sure what you are referring to.
>
> - Matt
>
> On Fri, May 22, 2009 at 9:44 AM, Robert Rice <rice.audio at pobox.com> wrote:
>
>> Dear MacRuby development team:
>>
>> I am new to Ruby and I have an application that I would like to port to
>> MacRuby. The two extensions I will need are XML and serial port I/O.
>> So far I have not been able to get them to work:
>>
>> Last login: Fri May 22 12:31:48 on ttys000
>> new-host:~ robertrice$ macirb
>> >> require "rexml/document"
>> NameError: uninitialized constant REXML::Attribute::NAME_STR
>>        from
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:18:in
>> `<class:Attribute>'
>>        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 (irb):1:in `require'
>>        from (irb):1
>>        from /usr/local/bin/macirb:12:in `<main>'
>> >> require "rubygems"
>> => false
>> >> require "serialport"
>> LoadError: no such file to load -- serialport
>>        from (irb):3:in `require'
>>        from (irb):3
>>        from /usr/local/bin/macirb:12:in `<main>'
>> >> exit
>> new-host:~ robertrice$ exit
>> logout
>>
>> [Process completed]
>>
>> Can anyone help me? Do I have a bad installation of MacRuby?
>>
>> Thanks,
>> Bob Rice
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090523/7d53f85c/attachment.html>


More information about the MacRuby-devel mailing list