繁体   English   中英

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

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM