![](/img/trans.png)
[英]Has anyone started a port of the Textmate tmbundle for Rails 3?
[英]IN TextMate I can't create partials with 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 `<main>'
我安裝了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而發生的錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.