TextMate: Ruby On Rails bundle, partials

When using the Ruby On Rails Textmate Bundle I got an error when generating a partial using the shortcut shift-ctrl-h.

Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist‘: An object in the argument tree could not be converted (ArgumentError)
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core‘
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string‘

It seems to me to be a problem of ruby 1.9.x. When using ruby 1.8.7 everything’s okay. This got be confirmed by a post by Allan Odgaard himself.

So google was my friend and brought up a solution:

# Updating osx-plist for Ruby 1.9 compatibility
$> git clone git://github.com/kballard/osx-plist.git
$> cd osx-plist/ext/plist
$> ruby extconf.rb && make
$> cp plist.bundle /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/

This breaks the function when using ruby 1.8.7 but with 1.9.2 everything’s okay.

Update: Unfortunately this breaks other functions like ctrl-h for rdoc 🙁

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *