gpt4 book ai didi

ruby-on-rails - TextMate 不适用于当前的 Ruby/Rails?

转载 作者:行者123 更新时间:2023-12-04 22:07:15 25 4
gpt4 key购买 nike

我正在拼命地尝试让 TextMate(通过 drnic 的 Ruby on Rails.tmbundle )在我突出显示一个术语时将我带到 Rails 源。假设我可以突出显示一个函数并键入 control-f (^f),但是当我这样做时,我只会得到一张充满错误的黄色表格(如下)。有谁知道如何解决?和/或快速获得 gem 来源的更好方法?

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

使用:
  • 文本伴侣 : 1.5.10
  • rails : 3x (试过 3.0.7, 3.1.rc1, 3.1.rc3)
  • RVM : 1.6.20
  • Ruby on Rails.tmbundle : 头

  • 它曾经与系统 Ruby (2.3.x) 一起工作。但是当我设置 TextMate 的 TM_RUBY 外壳变量: /Users/meltemi/.rvm/bin/rvm-auto-ruby根据 these instructions 在 TextMate 高级首选项中……东西坏了。

    最佳答案

    我遇到了同样的问题并修复了它:您需要将 TM_RUBY 处的 TextMate 配置路径更新为 RVM 中兼容的 ruby​​ 路径。为了我:
    .../.rvm/rubies/ruby-1.9.3-p327/bin/ruby
    例如,作为 TextMate 的 Ruby 兼容版本。您需要将其设置为 RVM 中的显式 Ruby 包,否则您将让它获取 RVM 的默认值,这可能比 TextMate 测试的更远。

    做:
    rvm list
    查看您已安装的内容,然后执行以下操作:
    which ruby
    看看自动 ruby 正在拾取什么。然后选择明确的东西而不是有效的东西。

    关于ruby-on-rails - TextMate 不适用于当前的 Ruby/Rails?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6310118/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com