我的黄瓜在“使用默认配置文件...”时冻结了
当我第一次运行cucumber
命令时,我的cucumber在“使用默认配置文件...”语句上冻结。我什至无法按 Ctrl - C 来退出,我必须完全关闭终端选项卡并重新启动 Mac OS X。我尝试删除 rerun.txt
但没有成功。这是非常断断续续的。任何帮助将不胜感激。
这就是它被卡住的地方:
cucumber --verbose
Using the default profile...
Code:
* features/support/env.rb
这是我的系统信息:
ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin9.8.0]
cucumber --version
0.8.5
About your application's environment
Ruby version 1.8.7 (i686-darwin9.8.0)
RubyGems version 1.6.2
Rails version 2.1.0
Active Record version 2.1.0
Action Pack version 2.1.0
Active Resource version 2.1.0
Action Mailer version 2.1.0
Active Support version 2.1.0
Edge Rails revision 83480b0ca0647bb60f08e03ce12e3cf5071b1f0d
Environment development
Database adapter postgresql
Database schema version 20110530174319
sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'
10.5.8 #Mac OS X version
My cucumber freezes on the statement "Using the default profile..." when I first run the cucumber
command. I can't even hit Ctrl - C to break out, I have to close the terminal tab completely and restart Mac OS X. I tried to remove rerun.txt
with no luck. It's very intermittent. Any help would be appreciated.
Here's where it gets stuck:
cucumber --verbose
Using the default profile...
Code:
* features/support/env.rb
This is my system info:
ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin9.8.0]
cucumber --version
0.8.5
About your application's environment
Ruby version 1.8.7 (i686-darwin9.8.0)
RubyGems version 1.6.2
Rails version 2.1.0
Active Record version 2.1.0
Action Pack version 2.1.0
Active Resource version 2.1.0
Action Mailer version 2.1.0
Active Support version 2.1.0
Edge Rails revision 83480b0ca0647bb60f08e03ce12e3cf5071b1f0d
Environment development
Database adapter postgresql
Database schema version 20110530174319
sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'
10.5.8 #Mac OS X version
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这里的问题是
rvm
。如果我使用错误的rvm
运行cucumber
,我相信这会导致冻结。当我立即使用rvm use ruby-1.8.7-p334
切换到正确的 Ruby 版本并运行cucumber
时,它可以工作。The problem here I believe is
rvm
. If I runcucumber
with the wrongrvm
, I believe this is causing the freeze. When I switch to proper Ruby version usingrvm use ruby-1.8.7-p334
immediately and runningcucumber
, it works.