[MacRuby-devel] IRB update
Hi, As some of you may know, we have a new implementation of IRB since MacRuby 0.7. My hope was nobody would notice the changes, but this was obviously wishful thinking :) So from now on, whenever there are major changes, I’ll write an update about them. I’d be very grateful if people can try MacRuby trunk or the nightly installer package. Alternatively, you should be able to install the gem version (on MRI 1.9 as well), although I haven't tried this myself: https://rubygems.org/gems/dietrb Last night I’ve updated the included version to 0.6.0. This version adds the following features: * Auto-indentation, which is enabled by default. * Complete file paths in strings. This works for strings that have *not* been closed yet. Cheers, Eloy ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Creating a pdf : Cocoa to MacRuby translation
On Nov 4, 2010, at 7:19 PM, Julien Jassaud wrote: >>> This do produces a pdf but it is completely empty. Also, MacRuby complains >>> when called with the -w option : >>> >>> $ macruby -w cocoapdf.rb >>> unknown: warning: instance variable __octype__ not initialized That still seems like a bug, however. Have you filed a bug report on it? Thanks. - Jordan ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Compiled Ruby files
Hi Laurent: Thanks. The other problem I ran into trying to use blue folders was that XCODE would not compile .XIB files into .NIB files for subdirectories of the Resources folder. Could I change this behavior? MacRuby has become stable and fast but if I have a program error that loops, it will consume memory until the Finder crashes (requiring a reboot). Would it be possible to set a limit on the call stack depth to generate an error before the system crashes? Bob Rice On Nov 3, 2010, at 5:42 PM, Laurent Sansonetti wrote: > Hi Robert, > > At a glance, it will only compile .rb files in the Resources directory > itself, not subdirectories. > > def compile_files > Dir.glob(File.join(@app_bundle, 'Contents/Resources/*.rb')) > end > > I guess we could change it to > > Dir.glob(File.join(@app_bundle, 'Contents/Resources/**/*.rb')) > > without breaking anything, and without the need to add an option to the tool. > > Laurent > > On Nov 3, 2010, at 2:35 PM, Robert Rice wrote: > >> Hi Laurent: >> >> Does macruby_deploy have an option to compile .rb files in subdirectories of >> the Resources directory? For a large project some of us may want to better >> organize our source files. >> >> Thanks, >> Bob Rice >> >> >> On Nov 2, 2010, at 4:25 AM, Laurent Sansonetti wrote: >> >>> Hi Larry, >>> >>> Indeed, the Ruby standard library is not entirely compiled, so you will >>> find .rb files if the MacRuby framework is embedded into the application's >>> bundle. We don't compile the whole standard library for historical reasons, >>> as the AOT compiler wasn't stable enough to work on everything, but we may >>> finally turn the switch on in the upcoming release. >>> >>> However, your application's code should be compiled, and .rb files should >>> be removed from the .app bundle for you, by macruby_deploy. If you still do >>> find .rb files that belong to your project in the .app bundle, then there >>> is a bug somewhere. >>> >>> To confirm, yes it is okay to delete .rb files when there is a .rbo file in >>> the same directory. More generally, MacRuby's #require will always pick >>> .rbo files in priority over .rb files. >>> >>> Laurent >>> >>> On Nov 1, 2010, at 9:33 PM, Larry Wilson wrote: >>> I've been poking around in the directories of a MacRuby-based app (that has been compiled via macruby-deploy) in the usr/lib/ruby subdirectories. Why is there not an .rbo file for every .rb source file? Is it safe to delete the .rb files if there is a .rbo equivalent? -Larry ___ 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
Re: [MacRuby-devel] Creating a pdf : Cocoa to MacRuby translation
Normally this is not a bug. Most people lazy initialize instance variables, but you will get warned if you ask it to be more verbose. However, I have been unable to trigger it on MacRuby myself: % ruby19 -w -e '!...@foo' -e:1: warning: instance variable @foo not initialized % macruby -w -e '!...@foo' On 5 nov 2010, at 18:10, Jordan K. Hubbard wrote: > > On Nov 4, 2010, at 7:19 PM, Julien Jassaud wrote: > This do produces a pdf but it is completely empty. Also, MacRuby complains when called with the -w option : $ macruby -w cocoapdf.rb unknown: warning: instance variable __octype__ not initialized > > That still seems like a bug, however. Have you filed a bug report on it? > Thanks. > > - Jordan > > ___ > 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] installation help
Hi, I'm trying to install MacRuby for the first time and I have followed procedures in README.rdoc up until "rake" When entering rake, I encountered this error (output of second time running rake): ** Invoke default (first_time) ** Invoke all (first_time) ** Invoke macruby (first_time) ** Invoke macruby:build (first_time) ** Invoke macruby:dylib (first_time) ** Invoke rbconfig (first_time) ** Invoke miniruby (first_time) ** Invoke files (first_time) ** Invoke config_h (first_time) ** Execute config_h ** Invoke dtrace_h (first_time) ** Execute dtrace_h ** Invoke revision_h (first_time) ** Execute revision_h ** Invoke mark_gc (first_time) ** Execute mark_gc ** Execute files ** Execute miniruby ** Execute rbconfig ** Invoke files ** Execute macruby:dylib ** Invoke macruby:static (first_time) ** Invoke files ** Execute macruby:static ** Execute macruby:build ** Execute macruby ** Invoke stdlib:build (first_time) ** Invoke miniruby ** Invoke macruby:dylib ** Execute stdlib:build ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 --arch x86_64 -C "rbconfig.rb" -o "./rbconfig.rbo" Assertion failed: (Kind == NewKind && "FIXME: Unable to handle custom metadata mismatch!"), function ParseMetadata, file BitcodeReader.cpp, line 865. rake aborted! Command failed with status (): [./miniruby -I. -I./lib bin/rubyc --interna...] /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh' /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in `call' /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1094:in `sh' /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `block (3 levels) in parallel_execute' /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `each' /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `block (2 levels) in parallel_execute' Any help is appreciated, thank you. ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] installation help
Why not installing using the nightly build? http://www.macruby.org/files/nightlies/ This way you don't need to have LLVM setup, and no need to build anything. Of course if you are planning on contributing to the project, that's a different issue. - Matt On Fri, Nov 5, 2010 at 8:25 PM, Mikie Atsukawa wrote: > Hi, I'm trying to install MacRuby for the first time and I have followed > procedures in README.rdoc up until "rake" When entering rake, I encountered > this error (output of second time running rake): ** Invoke default > (first_time) ** Invoke all (first_time) ** Invoke macruby (first_time) ** > Invoke macruby:build (first_time) ** Invoke macruby:dylib (first_time) ** > Invoke rbconfig (first_time) ** Invoke miniruby (first_time) ** Invoke files > (first_time) ** Invoke config_h (first_time) ** Execute config_h ** Invoke > dtrace_h (first_time) ** Execute dtrace_h ** Invoke revision_h (first_time) > ** Execute revision_h ** Invoke mark_gc (first_time) ** Execute mark_gc ** > Execute files ** Execute miniruby ** Execute rbconfig ** Invoke files ** > Execute macruby:dylib ** Invoke macruby:static (first_time) ** Invoke files > ** Execute macruby:static ** Execute macruby:build ** Execute macruby ** > Invoke stdlib:build (first_time) ** Invoke miniruby ** Invoke macruby:dylib > ** Execute stdlib:build ./miniruby -I. -I./lib bin/rubyc --internal --arch > i386 --arch x86_64 -C "rbconfig.rb" -o "./rbconfig.rbo" Assertion failed: > (Kind == NewKind && "FIXME: Unable to handle custom metadata mismatch!"), > function ParseMetadata, file BitcodeReader.cpp, line 865. rake aborted! > Command failed with status (): [./miniruby -I. -I./lib bin/rubyc > --interna...] > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:995:in > `block in sh' > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in > `call' > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in > `sh' > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1094:in > `sh' /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `block > (3 levels) in parallel_execute' > /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `each' > /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `block (2 > levels) in parallel_execute' Any help is appreciated, thank you. > ___ > 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] installation help
Hi Mikie, An assertion in the bit reader, looks like it's crashing when deserializing the kernel bitcode. As you followed the README.rdoc procedure I assume you properly installed the right version of LLVM, so the problem might be around the kernel bitcode files generation (.objs/kernel-*.bc). Could you paste the result of `/Developer/usr/bin/llvm-gcc -v' and `sw_vers'? Also, do you run a 32-bit mac? Accessorily, a full build log might be useful. You can do `rake clean' to remove the generated objects. Thanks, Laurent On Nov 5, 2010, at 8:25 PM, Mikie Atsukawa wrote: > Hi, I'm trying to install MacRuby for the first time and I have followed > procedures in README.rdoc up until "rake" > > When entering rake, I encountered this error (output of second time running > rake): > ** Invoke default (first_time) > ** Invoke all (first_time) > ** Invoke macruby (first_time) > ** Invoke macruby:build (first_time) > ** Invoke macruby:dylib (first_time) > ** Invoke rbconfig (first_time) > ** Invoke miniruby (first_time) > ** Invoke files (first_time) > ** Invoke config_h (first_time) > ** Execute config_h > ** Invoke dtrace_h (first_time) > ** Execute dtrace_h > ** Invoke revision_h (first_time) > ** Execute revision_h > ** Invoke mark_gc (first_time) > ** Execute mark_gc > ** Execute files > ** Execute miniruby > ** Execute rbconfig > ** Invoke files > ** Execute macruby:dylib > ** Invoke macruby:static (first_time) > ** Invoke files > ** Execute macruby:static > ** Execute macruby:build > ** Execute macruby > ** Invoke stdlib:build (first_time) > ** Invoke miniruby > ** Invoke macruby:dylib > ** Execute stdlib:build > ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 --arch x86_64 -C > "rbconfig.rb" -o "./rbconfig.rbo" > Assertion failed: (Kind == NewKind && "FIXME: Unable to handle custom > metadata mismatch!"), function ParseMetadata, file BitcodeReader.cpp, line > 865. > rake aborted! > Command failed with status (): [./miniruby -I. -I./lib bin/rubyc --interna...] > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:995:in > `block in sh' > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in > `call' > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' > /Users/mikie/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1094:in `sh' > /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `block (3 > levels) in parallel_execute' > /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `each' > /Users/mikie/Downloads/MacRuby/rakelib/builder/builder.rb:21:in `block (2 > levels) in parallel_execute' > > Any help is appreciated, thank you. > ___ > 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
