Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError)

Hi

I recently upgraded to IntellijIdea 14.1.4 using Ruby plugin 7.1.0.20150617 and I am having the issue below when I try to run BDD feature from IntelliJIdea. I can run the cucumber BDD tests fine from command line. I am running Ruby version: ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.3.0] on MacOx Yosemite. Any idea how to fix the issue?

Regards,

Ayache

Error:

/Users/akhettar/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/bin/cucumber /Users/akhettar/workspaces/inps/mhs-automation/features/critical.feature --format Teamcity::Cucumber::Formatter --expand --name "^Data insertion as a CRx user$" --color -r features Testing started at 05:00 ... WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1     WARNING > DEPRECATED: #default_wait_time= is deprecated, please use #default_max_wait_time= instead Running with TIME_OUT = 30 RUN_EVERYTHING = false TEST_ENV = http://liferay1.localhost.local:8080 BROWSER = firefox TEST_QUEUE_STOMP = activemq.localhost.local:61617 TEST_FABRIC = http://fabric1.localhost.local:9000 TEST_SOLR = http://solr.localhost.local:8983 wrong number of arguments (1 for 3) Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError) /Users/akhettar/Library/Application Support/IntelliJIdea14/ruby/rb/testing/patch/bdd/teamcity/cucumber/formatter_03103.rb:22:in `initialize' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:209:in `new' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:209:in `create_formatter' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:202:in `block in formatters' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/configuration.rb:176:in `block in formatter_factories' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/configuration.rb:171:in `map' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/configuration.rb:171:in `formatter_factories' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:201:in `formatters' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:183:in `report' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/runtime.rb:67:in `run!' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/lib/cucumber/cli/main.rb:32:in `execute!' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/gems/cucumber-2.1.0/bin/cucumber:8:in `<top (required)>' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/bin/cucumber:23:in `load' /Users/akhettar/.rvm/gems/ruby-1.9.3-p551/bin/cucumber:23:in `<top (required)>' -e:1:in `load' -e:1:in `<main>'


Gemfile

 
gem 'cucumber'
gem 'rspec'
gem 'capybara'
# The Selenium Grid RPM also needs updating to match the version
gem 'selenium-webdriver','2.47.1'
gem 'httparty'
gem 'faker'
gem 'poltergeist'
gem 'rspec-expectations'
gem 'waitutil'
gem 'json'
gem 'rsolr'
gem 'onstomp'
#gem 'onstomp', '~> 1.0.8'
gem 'nokogiri'
gem 'nokogiri-pretty'
#gem 'nokogiri','1.6.5'
gem 'equivalent-xml'
gem 'easy_diff', '~> 0.0.4'
8 comments
Comment actions Permalink

Hi,

At the moment we do not support the latest version of Cucumber. Work in progress.

https://youtrack.jetbrains.com/issue/RUBY-17157

0
Comment actions Permalink

Many thanks for your help, I will try to downgrade cucumber to a lower version.

0
Comment actions Permalink

I am now seeing this identical error (in 2021) and am wondering if it's the same problem? This post is the only hit in a Google search for exactly "Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError)" so it would be odd if it weren't.

As rolling back to `cucumber-rails 2.1.0` has resolved this error, I think this is the correct interpretation.

When can we expect a fix


wrong number of arguments (given 1, expected 2)
Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError)
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/formatter/io.rb:12:in `ensure_io'
~/INSTALLS/RubyMine-2020.1.2/plugins/ruby/rb/testing/patch/bdd/teamcity/cucumber/cucumber_4_formatter.rb:20:in `initialize'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/formatter/io.rb:30:in `new'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/formatter/io.rb:30:in `new'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/runtime.rb:206:in `create_formatter'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/runtime.rb:195:in `block in formatters'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/configuration.rb:209:in `block in formatter_factories'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/configuration.rb:207:in `map'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/configuration.rb:207:in `formatter_factories'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/runtime.rb:194:in `formatters'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/runtime.rb:174:in `report'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/runtime.rb:76:in `run!'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/lib/cucumber/cli/main.rb:29:in `execute!'
~/.rvm/gems/ruby-2.7.1/gems/cucumber-5.3.0/bin/cucumber:9:in `<top (required)>'
~/RubymineProjects/AliasMadness/script/cucumber:10:in `load'
~/RubymineProjects/AliasMadness/script/cucumber:10:in `<main>'

1
Comment actions Permalink

Same here, im facing the same problem

1
Comment actions Permalink

I'll boost it to a request, and put a link here, then.

 

0
Comment actions Permalink

Or not. I can't reproduce it in order to generate the relevant `Gemfile.lock`. Please link here with that post?

 

0
Comment actions Permalink

Derrell Durrett, would it be possible to provide a project sample for reproduce? As far as I understand the issue happens in the latest 2021.1 EAP as well?

0
Comment actions Permalink

Olga Kuvardina

I would love to, but I can't recreate it! Ive updated my project to Ruby 2.7.2, so possibly that's the reason.

Thanks,

Derrell

0

Please sign in to leave a comment.