[MacRuby-devel] Xcode templates not installed
Hi, I updated my Xcode version to the latest I could find, and the good news is that my MacRuby projects continue to build and run. However, there are no Ruby template to be found. I figured that reinstalling MacRuby would fix that. So I downloaded the latest nightly build and installed it. Still no Ruby template to be found. I checked the MacRuby installer list of files, and indeed, it copies templates to /Developer/Library/Xcode/Templates/... However this doesn't work any more with the latest versions of Xcode. In order to better accommodate the MAS, Xcode is now a fully stand alone application, whose bundle contains a Developer directory that replaces /Developer. So it looks like the MacRuby installer doesn't install the templates in the right locations for the latest versions of Xcode. I then copied over all the MacRuby templates that are listed in the installer file list to their corresponding locations in the Xcode bundle. It doesn't work: Still no Ruby template to be found. So I suppose something else must be done to install templates for Xcode to see them. What did I miss? Of course, another explanation might be that MacRuby templates are now incompatible with the latest Xcode. I hope that's not the case. Thanks for any idea. Jean-Denis PS: the Xcode version I am mentioning might still be under NDA, so I stayed intentionally vague about it. Feel free to slap me on the wrist. However, I'm still interested in all the steps required to install new templates to the latest version of Xcode that is not under NDA. ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] MacRuby, Control Tower and Sinatra.
Morning all, I'm having a go at setting up a macRuby app that utilizes Control Tower and Sinatra. I've no problem installing the gems for either, but the current versions of each seem to be mutually exclusive, as they require specific versions of Rack that do not match. I poked around and couldn't identify any reasons why a new version of Rack wouldn't work, so I forked/edited/built/installed ControlTower 1.0.me and gave it a go. Control tower by itself seems to be doing Great. However, if I attempt to load sinatra for the never-been-done-before hello world example, I get this: /Users/kpoorman/Library/Developer/Xcode/DerivedData/ControlTowerTest-gpdchdkfcdvfgdczhlapcihrrkpc/Build/Products/Debug/ControlTowerTest.app/Contents/Resources/rb_main.rb:20:in `block': wrong number of arguments (1 for 0) (ArgumentError) from /Users/kpoorman/Library/Developer/Xcode/DerivedData/ControlTowerTest-gpdchdkfcdvfgdczhlapcihrrkpc/Build/Products/Debug/ControlTowerTest.app/Contents/Resources/rb_main.rb:17:in `' Fast forward 30 minutes, and I've narrowed it down to a block of perfectly working MRI-ruby: return super(*args, &block) if respond_to? method_name Specifically, if I start loading Sinatra components in macirb, it works great until you hit a Set or Enable method call, which in turn invokes the Delegator mixing … etc down to line 1601 of sinatra::base (version 1.4.0) which is above. So, I suppose I should use your time wisely and ask a couple of direct questions -- 1: what, if anything, am I doing wrong? 2: Is this version of sinatra incompatible with Control Tower? 2a: what version of sinatra *is* compatible ? 3: is this a Macruby bug? 3a: I like to think of myself as a fairly advanced ruby developer, with excellent knowledge of meta-programming and the sinatra framework, what I don't understand, is what's wrong with that code ? Thank you for your time! -Kevin ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] MacRuby Xcode templates DO load
Contrary to what I stated in my earlier message, MacRuby templates did show up within the latest Xcode as soon as I had copied them in their locations (which the MacRuby installer doesn't do correctly). I also checked that I could alternatively copy them to ~/Library/Developer/Xcode/Templates/ I apologize for the confusion. Jean-Denis ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby, Control Tower and Sinatra.
Hi I can repeat the issue. It is working good with Sinatra 1.0.0 -> https://gist.github.com/1600852 Kevin Poorman 於 2012年1月12日 下午9:17 寫道: > Morning all, > > I'm having a go at setting up a macRuby app that utilizes Control Tower and > Sinatra. > I've no problem installing the gems for either, but the current versions of > each seem to be mutually exclusive, as they require specific versions of Rack > that do not match. > > I poked around and couldn't identify any reasons why a new version of Rack > wouldn't work, so I forked/edited/built/installed ControlTower 1.0.me and > gave it a go. Control tower by itself seems to be doing Great. However, if I > attempt to load sinatra for the never-been-done-before hello world example, I > get this: > > /Users/kpoorman/Library/Developer/Xcode/DerivedData/ControlTowerTest-gpdchdkfcdvfgdczhlapcihrrkpc/Build/Products/Debug/ControlTowerTest.app/Contents/Resources/rb_main.rb:20:in > `block': wrong number of arguments (1 for 0) (ArgumentError) > from > /Users/kpoorman/Library/Developer/Xcode/DerivedData/ControlTowerTest-gpdchdkfcdvfgdczhlapcihrrkpc/Build/Products/Debug/ControlTowerTest.app/Contents/Resources/rb_main.rb:17:in > `' > > Fast forward 30 minutes, and I've narrowed it down to a block of perfectly > working MRI-ruby: > > return super(*args, &block) if respond_to? method_name > > Specifically, if I start loading Sinatra components in macirb, it works great > until you hit a Set or Enable method call, which in turn invokes the > Delegator mixing … etc down to line 1601 of sinatra::base (version 1.4.0) > which is above. > > So, I suppose I should use your time wisely and ask a couple of direct > questions -- > > 1: what, if anything, am I doing wrong? > 2: Is this version of sinatra incompatible with Control Tower? > 2a: what version of sinatra *is* compatible ? > 3: is this a Macruby bug? > 3a: I like to think of myself as a fairly advanced ruby developer, with > excellent knowledge of meta-programming and the sinatra framework, what I > don't understand, is what's wrong with that code ? > > Thank you for your time! > > -Kevin > ___ > 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
