/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'
from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `<main>'
我安装了来自https://github.com/drnic/ruby-on-rails-tmbundle.git
的RoR捆绑包使用rvm。
答案 0 :(得分:9)
您使用的是Ruby 1.9吗? Textmate中的osx-plist.bundle不适用于Ruby 1.9。要解决此问题,您可以更新as described by Loren Segal。我已稍微更改它们以构建您想要的任何位置并创建支持目录:
$ git clone git://github.com/kballard/osx-plist.git
$ cd osx-plist/ext/plist
$ ruby extconf.rb && make
$ mkdir -p "$HOME/Library/Application Support/TextMate/Support/lib/osx"
$ cp plist.bundle "$_"
答案 1 :(得分:4)
如果你使用Textmate2并遇到与上面相同的错误(与plist bundle相关),请使用上面答案中提到的相同修复,https://stackoverflow.com/a/7029278/206814只有目标目录不是
"$HOME/Library/Application Support/TextMate/Support/lib/osx"
但应该是
"$HOME/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx"
覆盖此目录中的plist.bundle,然后您应该停止查看因使用Ruby 1.9而发生的错误。