[MacRuby-devel] Using hotcocoa to create a project
Hi, when I try to create a project using hotcocoa as described in the MacRuby Postie tutorial http://www.macruby.org/hotcocoa/getting_started.html $ hotcocoa Postie I get this error: /Users/jeremysmith/.rvm/gems/ruby-1.9.2-p180/gems/hotcocoa-0.5.1/lib/hotcocoa/template.rb:20:in `gsub!': invalid byte sequence in UTF-8 (ArgumentError) Any ideas? Thanks, Jeremy ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Is there a workaround for regex named capture groups not being supported?
I now I can't use re2 because it is a C based gem, but is there any way to support named capture groups in MacRuby? It is a pretty necessary component of my project, and not having it is forcing me to look for solutions like running my gem as a service, or compiling it using Rubinius. I'd rather there was a workaround! :) Thanks, Jeremy ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Is there a workaround for regex named capture groups not being supported?
Hi Matt, thanks for your reply. The re2 gem didn't install under MacRuby, but will install under MRI 1.9.2.. Password: Building native extensions. This could take a while... ERROR: Error installing re2: ERROR: Failed to build gem native extension. /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macruby extconf.rb checking for main() in -lstdc++... yes checking for main() in -lre2... yes creating Makefile make /usr/bin/g++ -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -I/usr/local/include -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -Wall -Wextra -funroll-loops -arch x86_64 -arch x86_64 -o re2.o -c re2.cc re2.cc: In function ‘void re2_matchdata_mark(re2_matchdata*)’: re2.cc:45: error: ‘rb_gc_mark’ was not declared in this scope re2.cc: In function ‘VALUE re2_Replace(VALUE, VALUE, VALUE, VALUE)’: re2.cc:933: error: invalid conversion from ‘const void*’ to ‘void*’ re2.cc:933: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ re2.cc: In function ‘VALUE re2_GlobalReplace(VALUE, VALUE, VALUE, VALUE)’: re2.cc:983: error: invalid conversion from ‘const void*’ to ‘void*’ re2.cc:983: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ make: *** [re2.o] Error 1 On Thu, Aug 18, 2011 at 12:22 PM, Matt Aimonetti wrote: > Have you tried re2? MacRuby supports a great number of C extensions. > > - Matt > > Sent from my iPhone > > On Aug 18, 2011, at 8:14, Jeremy Smith wrote: > > > I now I can't use re2 because it is a C based gem, but is there any way > to support named capture groups in MacRuby? It is a pretty necessary > component of my project, and not having it is forcing me to look for > solutions like running my gem as a service, or compiling it using Rubinius. > I'd rather there was a workaround! :) > > > > Thanks, > > Jeremy > > ___ > > MacRuby-devel mailing list > > [email protected] > > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Is there a workaround for regex named capture groups not being supported?
I will Matt, thank you. On Thu, Aug 18, 2011 at 2:12 PM, Matt Aimonetti wrote: > Could I ask you to file a bug so someone can look at it? > In the meantime, I'm not sure I have a workaround for you :( > > - Matt > > On Thu, Aug 18, 2011 at 10:05 AM, Jeremy Smith wrote: > >> Hi Matt, >> >> thanks for your reply. The re2 gem didn't install under MacRuby, but will >> install under MRI 1.9.2.. >> >> Password: >> Building native extensions. This could take a while... >> ERROR: Error installing re2: >> ERROR: Failed to build gem native extension. >> >> /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macruby >> extconf.rb >> checking for main() in -lstdc++... yes >> checking for main() in -lre2... yes >> creating Makefile >> >> make >> /usr/bin/g++ -I. >> -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/universal-darwin10.0 >> -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward >> -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 >> -I. -I/usr/local/include -fno-common -arch x86_64 -fexceptions -fno-common >> -pipe -O3 -g -Wall -Wall -Wextra -funroll-loops -arch x86_64 -arch x86_64 -o >> re2.o -c re2.cc >> re2.cc: In function ‘void re2_matchdata_mark(re2_matchdata*)’: >> re2.cc:45: error: ‘rb_gc_mark’ was not declared in this scope >> re2.cc: In function ‘VALUE re2_Replace(VALUE, VALUE, VALUE, VALUE)’: >> re2.cc:933: error: invalid conversion from ‘const void*’ to ‘void*’ >> re2.cc:933: error: initializing argument 1 of ‘void* memcpy(void*, const >> void*, size_t)’ >> re2.cc: In function ‘VALUE re2_GlobalReplace(VALUE, VALUE, VALUE, VALUE)’: >> re2.cc:983: error: invalid conversion from ‘const void*’ to ‘void*’ >> re2.cc:983: error: initializing argument 1 of ‘void* memcpy(void*, const >> void*, size_t)’ >> make: *** [re2.o] Error 1 >> >> >> On Thu, Aug 18, 2011 at 12:22 PM, Matt Aimonetti > > wrote: >> >>> Have you tried re2? MacRuby supports a great number of C extensions. >>> >>> - Matt >>> >>> Sent from my iPhone >>> >>> On Aug 18, 2011, at 8:14, Jeremy Smith wrote: >>> >>> > I now I can't use re2 because it is a C based gem, but is there any way >>> to support named capture groups in MacRuby? It is a pretty necessary >>> component of my project, and not having it is forcing me to look for >>> solutions like running my gem as a service, or compiling it using Rubinius. >>> I'd rather there was a workaround! :) >>> > >>> > Thanks, >>> > Jeremy >>> > ___ >>> > MacRuby-devel mailing list >>> > [email protected] >>> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> ___ >>> MacRuby-devel mailing list >>> [email protected] >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] How do I install bundler without disrupting my MRI bundler
If I try to install bundler using "sudo macgem install bundler", it wants to over-write my existing bundler that is located at usr/bin/bundle. This is obviously a problem because it breaks bundler for all of my MRI projects. So I installed rvm, thinking that it would keep the gems separate from each other, but when I switch to macruby with rvm, "gem install bundler" doesn't install it with the macgems, and so bundler isn't accessible by macrake. Any ideas? ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] How do I install bundler without disrupting my MRI bundler
Thank you vm, that is a big help. On Mon, Aug 22, 2011 at 6:04 AM, Eloy Duran wrote: > You can install the gem with `sudo macgem install bundler > --format-executable`, which will create the bin wrapper like > `/usr/bin/macbundler`. > > On 21 aug. 2011, at 16:42, Jeremy Smith wrote: > > > If I try to install bundler using "sudo macgem install bundler", it wants > to over-write my existing bundler that is located at usr/bin/bundle. This > is obviously a problem because it breaks bundler for all of my MRI projects. > > > > So I installed rvm, thinking that it would keep the gems separate from > each other, but when I switch to macruby with rvm, "gem install bundler" > doesn't install it with the macgems, and so bundler isn't accessible by > macrake. > > > > Any ideas? > > > > > > ___ > > MacRuby-devel mailing list > > [email protected] > > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Seeing errors in macrake
Is there a reason that macrake always exits so quietly on an error? macrake -v doesn't seem to have any effect on this, or has showed me meaningless info. At this point I have to load objects into macirb to see where the error is occurring. ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Seeing errors in macrake
I am running macrake in a RMI environment. On Thu, Aug 25, 2011 at 1:49 PM, Dave Baldwin wrote: > Just use rake instead. I don't think macrake gives you anything rake > doesn't do and rake has a much faster startup time. > > Dave. > > On 25 Aug 2011, at 17:12, Jeremy Smith wrote: > > > Is there a reason that macrake always exits so quietly on an error? > macrake -v doesn't seem to have any effect on this, or has showed me > meaningless info. At this point I have to load objects into macirb to see > where the error is occurring. > > > > ___ > > MacRuby-devel mailing list > > [email protected] > > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] AWS-S3 gem doesn't work with MacRuby
This works when I try it in MRI. But this is what happens in Macruby. Is there a workaround? $ macirb -f irb(main):003:0> require 'aws/s3' => true irb(main):006:0> AWS::S3::Base.establish_connection!( irb(main):007:0> :access_key_id => ACCESS_KEY, irb(main):008:0> :secret_access_key => SECRET_ACCESS_KEY irb(main):009:0> ) => #" s3.amazonaws.com", :port=>80, :access_key_id=>"", :secret_access_key=>""} @access_key_id="" @secret_access_key="" @http=#> irb(main):010:0> AWS::S3::Service.buckets NameError: `@policy:' is not allowed as an instance variable name /Users/jeremysmith/.rvm/gems/macruby-0.10/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:142:in `expirable_memoize:' /Users/jeremysmith/.rvm/gems/macruby-0.10/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:176:in `policy:' ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] XCode 4 error
There's also the whole issue of MacRuby not working with new versions of Xcode? I thought 4.1 was one of those that the framework wouldn't load in to. On Sun, Sep 11, 2011 at 9:59 AM, Perry E. Metzger wrote: > On Sun, 11 Sep 2011 09:41:53 -0400 Timothy Hart > wrote: > > Hi folks, > > > > I must be missing something really simple. I'm running Lion, Xcode > > 4.1, and the latest MacRuby. When I open a project and try to build > > it, it gives an Embed issue: "Shell Script Invocation Error. > > Command /bin/sh failed with exit code 1." > > > > It isn't like I don't have sh on my system. Thoughts? > > That probably means that /bin/sh exited with an error, not that it is > missing. > > -- > Perry E. [email protected] > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
