在TextMate中,我无法使用Rails tmbundle创建局部视图

/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 `' 

我安装了RoR软件包: https : //github.com/drnic/ruby-on-rails-tmbundle.git

使用rvm。

你在使用Ruby 1.9吗? Textmate中的osx-plist.bundle不适用于Ruby 1.9。 要修复它,您可以按照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 "$_" 

如果你使用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而发生的错误。