Hi Anyone recognise this exception, and know what causes it to happen occasionally? Thanks Ashley Scenario: new story appears on feed # features/descriptions/ story_notification.feature:12 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/cucumber/ broadcaster.rb:15:in `write'': Bad file descriptor (Errno::EBADF) from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:in `puts'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:in `__send__'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:in `method_missing'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:13:in `each'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:13:in `method_missing'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/formatters/pretty_formatter.rb:107:in `step_failed'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:in `__send__'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:in `method_missing'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:13:in `each'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:13:in `method_missing'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:122:in `visit_step'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:106:in `visit_regular_step'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/scenario.rb:15:in `accept'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/scenario.rb:11:in `each'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/scenario.rb:11:in `accept'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:87:in `execute_scenario'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:73:in `visit_scenario'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:67:in `visit_regular_scenario'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/feature.rb:57:in `accept'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/feature.rb:53:in `each'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/feature.rb:53:in `accept'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:50:in `visit_feature'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/features.rb:17:in `accept'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/features.rb:17:in `each'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/tree/features.rb:17:in `accept'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/executor.rb:41:in `visit_features'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/cli.rb:167:in `execute!'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/cli.rb:11:in `execute'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6 rake aborted! -- http://www.patchspace.co.uk/ http://aviewfromafar.net/
On 3 Dec 2008, at 15:55, Ashley Moran wrote:> Scenario: new story appears on > feed # features/descriptions/ > story_notification.feature:12 > /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ > cucumber/broadcaster.rb:15:in `write'': Bad file descriptor > (Errno::EBADF) > from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6 > rake aborted!I captured it with --trace too, it''s started happening more often... from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6 rake aborted! Command failed with status (1): [/opt/local/bin/ruby -I "/opt/local/ lib/rub...] /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:971:in `sh'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `call'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `sh'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `sh'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1007:in `ruby'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `ruby'' /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/lib/cucumber/rake/ task.rb:34:in `define_task'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'' /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 /opt/local/bin/rake:19:in `load'' /opt/local/bin/rake:19 -- http://www.patchspace.co.uk/ http://aviewfromafar.net/
Ashley Moran wrote:> On 3 Dec 2008, at 15:55, Ashley Moran wrote: >> Scenario: new story appears on >> feed # >> features/descriptions/story_notification.feature:12 >> /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/cucumber/broadcaster.rb:15:in >> `write'': Bad file descriptor (Errno::EBADF) >> from >> /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6 >> rake aborted! > > > I captured it with --trace too, it''s started happening more often... > > from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/cucumber:6 > rake aborted! > Command failed with status (1): [/opt/local/bin/ruby -I > "/opt/local/lib/rub...] > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:971:in `sh'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `call'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `sh'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `sh'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1007:in `ruby'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `ruby'' > /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/lib/cucumber/rake/task.rb:34:in > `define_task'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in > `invoke_with_call_chain'' > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in > `invoke_with_call_chain'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in > `invoke_task'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in > `top_level'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in > `top_level'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in > `standard_exception_handling'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in > `top_level'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in > `standard_exception_handling'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'' > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 > /opt/local/bin/rake:19:in `load'' > /opt/local/bin/rake:19 > > >Can you share the arguments in the relevant Cucumber rake task? Thanks, -- Joseph Wilk http://blog.josephwilk.net
On 3 Dec 2008, at 16:19, Joseph Wilk wrote:> Can you share the arguments in the relevant Cucumber rake task?That would be this: Cucumber::Rake::Task.new do |t| t.cucumber_opts = "--format pretty" t.step_pattern = "features/steps/**/*.rb" end -- http://www.patchspace.co.uk/ http://aviewfromafar.net/