我正在拼命地尝试使用TextMate(通过drnic的Ruby on Rails.tmbundle
)在我突出显示一个术语时将我带到Rails源代码。据说我可以突出显示一个函数并输入control-f(^ f)但是当我这样做时,我只得到一个充满错误的黄色表(下面)。谁知道如何解决? 和/或更快捷地获取宝石来源的方法?
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.latest_load_paths called from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb.72.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:600.
from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:423:in `each'
from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:423:in `each'
from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:587:in `each'
from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:586:in `each'
from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:586:in `each'
from /Users/meltemi/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb/deprecate.rb:62:in `block (2 levels) in deprecate'
from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb:72:in `find_in_gems'
from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb:108:in `find_method'
from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb:115:in `find'
from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb:17:in `initialize'
from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb:147:in `new'
from /Users/meltemi/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/jump_to_method_definition.rb:147:in `<main>'
使用:
它曾用于系统Ruby(2.3.x)。但是当我按照these instructions将TextMate的 TM_RUBY shell变量设置为TextMate高级首选项中的/Users/meltemi/.rvm/bin/rvm-auto-ruby
时......事情就破了。
答案 0 :(得分:1)
我遇到了同样的问题并修复了它:您需要将TM_RUBY上的TextMate配置路径更新为兼容的RVM中的ruby路径。对我来说:
.../.rvm/rubies/ruby-1.9.3-p327/bin/ruby
作为Ruby for TextMate的兼容版本。你需要在RVM中将它设置为一个显式的Ruby包,否则你会让它获取RVM的默认值,这可能比TextMate的测试更进一步。
执行:
rvm list
查看已安装的内容,然后执行:
which ruby
看看自动红宝石正在捡起什么。然后选择一些明确的东西,而不是有效的东西。
答案 1 :(得分:0)