我们有一个带有自定义 gem 的 git 存储库。 要安装它,Gemfile 有一行:
gem 'my-gem', :git => 'git@192.168.1.100:my-gem.git'
安装 gem 后,它不会显示在 RubyMine 的外部库中。
如何使 gem 显示在外部库中并自动完成 gem 中的代码?
最佳答案
我们也遇到了这个错误,所以它可能是 RubyMine 中的错误。一种解决方法是检查该 gem 存储库并告诉 bundler 使用它。请注意,远程存储库将不再使用。
bundle config local.my-gem /path/to/my-gem/
bundle install
然后通过将 my-gem 添加到 rubymine 中的现有窗口来打开 my-gem explained here .这为我们提供了前向导航和代码完成功能。
关于git - RubyMine 无法识别来自 git 存储库的 gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20782589/