带有 docker-compose 的 RubyMine Remote SDK 可以正确找到并设置,但会终止 rspec

发布于 2025-01-10 19:10:30 字数 654 浏览 0 评论 0原文

我已经按照 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文