Re: [MacRuby-devel] BridgeSupport stack overflow

2011-03-03 Thread Martin Hawkins
Just to confirm; I have created a 'Do Nothing' MacRuby app from
scratch (which literally does nothing except show the vanilla window).
Built with the --bs option added to the embed script, this runs ok on
10.6.6 and crashes in the same way as described above on 10.6.

I tried removing files from the BridgeSupport folder and running the
app to see which ones caused the problem - it turns out that if I
remove Foundation.bridgesupport and PrintCore.bridgesupport, the app
will not crash - including either of those will result in a crash.

Hope this helps.
Martin
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Creating an Objective-C bundle to use with MacRuby

2011-03-03 Thread Martin Hawkins
I presume I'm doing something really dopey and apologies if that is
the case.

I've been following Matt Aimonetti's excellent instructions on the
MacRuby site with the above title - I'm attempting to wrap Uli
Kusterer's UKKQueue library.
I've followed the instructions - the bundle builds ok; it builds
'UKKQueue_engine.bundle' and then I try to 'require' it from the
macirb prompt and I get
  require 'UKKQueue_engine'
  LoadError: no such file to load -- UKKQueue_engine

I've copied the UKKQueue_engine.bundle into the pwd - should I be
putting the file somewhere else?
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Should Mechanize Work with MacRuby?

2011-03-03 Thread Duane Kiefer
I'm trying to use Mechanize with MacRuby but it fails with the following error:

>
Darwin::dekiefer:29-> sudo macgem install mechanize
Password:
Successfully installed mechanize-1.0.0
1 gem installed
Darwin::dekiefer:30-> macirb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mechanize'
=> true
irb(main):003:0> agent = Mechanize.new
=> # nil>
irb(main):004:0> page= agent.get('http://google.com/')
NoMethodError: undefined method `html_parser' for nil:NilClass

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/forwardable.rb:185:in
 `search:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/Gems/1.9.2/gems/mechanize-1.0.0/lib/mechanize/page.rb:227:in
 `meta'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/Gems/1.9.2/gems/mechanize-1.0.0/lib/mechanize/inspect.rb:21:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:199:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:225:in
 `nest:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:198:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:210:in
 `group_sub'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:197:in
 `group:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/Gems/1.9.2/gems/mechanize-1.0.0/lib/mechanize/inspect.rb:20:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:199:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:225:in
 `nest:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:198:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:210:in
 `group_sub'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:197:in
 `group:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:164:in
 `object_group:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/Gems/1.9.2/gems/mechanize-1.0.0/lib/mechanize/inspect.rb:16:in
 `pretty_print:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:154:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:199:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:225:in
 `nest:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:198:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:210:in
 `group_sub'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/prettyprint.rb:197:in
 `group:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:154:in
 `pp:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:77:in
 `block'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:121:in
 `guard_inspect_key'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:77:in
 `pp:'

/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/1.9.2/pp.rb:51:in
 `inspect'
irb(main):005:0> NoMethodError: undefined method `html_parser' for 
nil:NilClassirb(main):005:0> 
<--

I'm using the latest version of the trunk:
Darwin::dekiefer:3-> svn co 
http://svn.macosforge.org/repository/ruby/MacRuby/trunk MacRuby-trunk
Checked out revision 5248.
Darwin::dekiefer:4-> macruby -v
MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64]
Darwin::dekiefer:5-> 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] macruby_deploy --gem

2011-03-03 Thread Andre Lewis
Just wanted to report from the field that gem packaging in the new
macruby_deploy is working great. It really simplified our build scripts. For
reference:

PATH="$PATH:/usr/local/bin" macruby_deploy --embed
"$TARGET_BUILD_DIR/Redwood.app" --gem nokogiri --gem gdata_19 --compile

Thanks for this huge improvement in 0.9.
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel