[MacRuby-devel] MacBacon problem

Daniel Westendorf daniel at prowestech.com
Fri Nov 30 09:52:53 PST 2012


Stephen,

It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install the
gem using macgem? You might have to uninstall any other versions you've
installed.

I never had much luck with RVM+MacRuby; I always installed MacRuby using
the installer from the website. This might have been fixed though.

dw

On Fri, Nov 30, 2012 at 10:46 AM, stephen horne <fatste at gmail.com> wrote:

> I'm trying to get started with tdd and MacRuby, but I've hit a stumbling
> block immediately with macbacon. I suspect it's something to do with rvm,
> but I'm not sure.
>
> When I run macbacon like this:
>
> $macbacon my_class_test.rb
>
> I get the following error backtrace:
>
> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require':
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
> syntax error, unexpected tLABEL (SyntaxError)
> ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
> ...                               ^
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
> class definition in method body
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
> syntax error, unexpected keyword_end, expecting $end
> from
> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require'
> from
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
> `<top (required)>'
> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'
> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `<main>'
>
> Can anyone see what's wrong with my setup?
>
> Thanks.
> --
> Stephen Horne
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121130/092a0b80/attachment.html>


More information about the MacRuby-devel mailing list