Re: [ruboto] Ruboto Yaml problem

31 views
Skip to first unread message

Uwe Kubosch

unread,
Feb 21, 2013, 6:15:52 PM2/21/13
to rub...@googlegroups.com
Scott, have you got this one? Have you tried YAML in Ruboto IRB?



On 2013-02-12, at 11:18, Thomas Buschhardt <busch...@gmail.com> wrote:

> Hallo,
>
> I want run ruboto run on my phone (Samsung Galaxy mini 2 GT-S6500) with Android-Version 2.3.6. I went to the "Play Store" and install "Ruboto Core" (04.01.2013 7,25MB - don't see a Versionnumber) and "Ruboto IRB" (0.8.1 - latest Version?).
> When I run IRB :
>
> require 'rubygems'
> => false
> require 'yaml'
> => false
> YAML::dump('hallo')
> => NoMethodError: undefined method 'dump' for YAML:Module
> method_missing at org/jruby/RubyBasicObject.java1652
> method_missing at file:/mnt/asec/org.ruboto.irb-1/pkg.apk!/ruboto/base.rb:20
> (root) at eval:1
> nil
>
> if I want load Psych
>
> require 'psych'
> => LoadError: load error: psych/scalar_scanner -- java.lang.StackOverflowError: null
> ...many errors (cant Copy and Paste, because App dosnt)
>
> What Im doing wrong?
>
> Thanks Thomas
>
> --
> You received this message because you are subscribed to the Google Groups "Ruboto (JRuby on Android)" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ruboto+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Uwe Kubosch
u...@kubosch.no
http://kubosch.no/




Scott Moyer

unread,
Feb 21, 2013, 7:19:01 PM2/21/13
to rub...@googlegroups.com

Just tested it, and it works for me.

What's your $LOAD_PATH?

You don't need to require 'rubygems', but that shouldn't matter for this problem.

Thomas Buschhardt

unread,
Feb 25, 2013, 8:05:29 AM2/25/13
to rub...@googlegroups.com
Dear Scott

> What's your $LOAD_PATH?


["/mnt/sdcard/jruby", ".", "file:/data/app/org.ruboto.core-1.apk!/jruby.home/lib/ruby/site_ruby", "file:/data/app/org.ruboto.core-1.apk!/jruby.home/lib/ruby/shared", "file:/data/app/org.ruboto.core-1.apk!/jruby.home/lib/ruby/1.9"]

PS: sorry for the late answer.

Thomas

Scott Moyer

unread,
Feb 25, 2013, 11:57:20 AM2/25/13
to rub...@googlegroups.com

That looks correct. Can you confirm the version of Ruboto Core (from App Info)? Should be 0.5.1.

I'm on a 4.1 device, so I'll check it out a 2.3.x device.

Thomas Buschhardt

unread,
Feb 25, 2013, 12:49:53 PM2/25/13
to rub...@googlegroups.com

Hallo Scott

I got Ruboto Core Version 0.5.2.

Greetz Thomas

Thomas Buschhardt

unread,
Feb 25, 2013, 1:02:30 PM2/25/13
to rub...@googlegroups.com
Hallo again,

on my Nexus 7 (Android 4.2.2  Ruboto Core 0.5.2 - Ruboto IRB 0.8.1) -  I got no problem with a fresh install

the Load_Path looks similar - the first listmember is of course different.



Am Montag, 25. Februar 2013 17:57:20 UTC+1 schrieb Scott:

Scott Moyer

unread,
Feb 25, 2013, 1:22:16 PM2/25/13
to rub...@googlegroups.com

If it's working on your 4.2 device and not working on your 2.3 device, I suspect that it may be a stack issue while parsing. I haven't had a chance to test this theory, but you can if you want:

require 'ruboto/util/stack'
with_large_stack{require 'yaml'}

Thomas Buschhardt

unread,
Feb 25, 2013, 2:21:37 PM2/25/13
to rub...@googlegroups.com
OK both give me true back
and YAML.dump('hallo') works too

Thomas Buschhardt

unread,
Feb 26, 2013, 2:01:13 AM2/26/13
to rub...@googlegroups.com

:-) Just use me as tester ... 
Reply all
Reply to author
Forward
0 new messages