jruby / cucumber:捆绑安装不会安装任何宝石

时间:2016-10-01 22:47:22

标签: cucumber bundle jruby

我在Windows 10 x64上安装了JRuby 1.7.8(我尝试过x64和32位文件同样存在问题)和JRE 7.

我试图让我的黄瓜测试框架在不同的机器上运行。我下载了我当前的分支(在其他计算机上工作正常,包含所有设置:env.rb,Gemfile等),然后我成功安装了这两个宝石:

  • gem install bundler
  • gem install cucumber

我所拥有的Gemfile包含大量宝石,类似于:

source 'https://rubygems.org'
gem "httpclient"
gem "watir-webdriver"

但是当我执行时:

  • 捆绑安装

我只是得到这条线并且没有安装任何东西,它几乎立即完成。没有创建Gemfile.lock等。

D:\project>bundle install
io/console not supported; tty will not be manipulated

D:\project>

知道什么可能是错的,我可以尝试一下吗?

不完全确定问题是否与上面的行有关(我在其他工作的机器中从未见过)。如果它没有关联,并且您对这两个问题都有所了解,请告诉我,我也会看看......

我已经尝试了几个小时但仍然没有成功,添加了更多信息,万一有人可以发现一些事情。甚至'捆绑-v'不能在这台机器上工作吗?!

D:\project>gem list
io/console not supported; tty will not be manipulated

*** LOCAL GEMS ***

builder (3.2.2)
bundler (1.13.2)
cucumber (2.4.0)
cucumber-core (1.5.0)
cucumber-wire (0.0.1)
diff-lcs (1.2.5)
gherkin (4.0.0)
jruby-win32ole (0.8.5)
multi_json (1.12.1)
multi_test (0.1.2)
rake (10.1.0)

D:\project>bundle -v
io/console not supported; tty will not be manipulated

D:\project>

干杯!!

2 个答案:

答案 0 :(得分:0)

虽然我对jruby不是特别熟悉,但它似乎是bug,在JRuby 1.7.24中得到了解决。

我会验证其他正在使用的计算机是否还在该版本的jruby上(假设它们是windows box)。

答案 1 :(得分:0)

您安装了最新版本的bundler 1.13.2,我看到它会导致不同类型的问题,具体取决于jruby版本和其他一些宝石。 Bundler 1.10.6每次都适用于我的Jruby 1.7.x.

试试这些:

gem uninstall bundler

gem install bundler -v 1.10.6
相关问题