带有 docker-compose 的 RubyMine Remote SDK 可以正确找到并设置,但会终止 rspec
我已经按照 IntellJ 说明使用我的 SDK 设置了 docker-compose,它找到了 gem 并为其建立了索引。显示列表,日志表明它正在安装。 但是,当我去运行规范时,出现以下错误。
/usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems.rb:265:in `find_spec_for_exe': can't find gem rspec-core (>= 0.a) with executable rspec (Gem::GemNotFoundException)
from /usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `activate_bin_path'
from /usr/local/rvm/gems/ruby-2.6.5/bin/rspec:25:in `<main>'
我知道 gems 安装在 docker 镜像中,但我觉得它要么没有在正确的目录中运行bundle exec。
docker-compose 还将从 CLI 运行测试。
我感觉有什么设置不正确。
我已更改构建配置以在正确的目录中运行(它是嵌套在父目录中的标准 Rails 应用程序)
I have set up docker-compose with my SDK, as per the IntellJ Instructions, and it found and indexed the gems. Shows the list, and log states that it is installing.
However when I go to run the specs, I get the following error.
/usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems.rb:265:in `find_spec_for_exe': can't find gem rspec-core (>= 0.a) with executable rspec (Gem::GemNotFoundException)
from /usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `activate_bin_path'
from /usr/local/rvm/gems/ruby-2.6.5/bin/rspec:25:in `<main>'
I know that the gems are installed in the docker image, but I feel like either it's not running bundle exec in the proper directory.
The docker-compose will also run the tests from the CLI.
I feel like there is some setting that isn't correct.
I have changed the build configuration to run in the proper directory ( it's a standard rails app nested in a parent directory )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论