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

我从以下位置安装了 RoR 包:https ://github.com/drnic/ruby-on-rails-tmbundle.git

使用 rvm。

4

2 回答 2

9

您使用的是 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 "$_"
于 2011-08-11T16:12:47.930 回答
4

如果您使用 Textmate2 并遇到与上述相同的错误(与 plist 捆绑包相关),请使用上述答案中提到的相同修复,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 而发生的错误。

于 2012-02-03T10:56:34.863 回答