2 Replies Last post: Aug 23, 2013 2:31 AM by K Golbang  
K Golbang Newbie 6 posts since
Jun 19, 2013
Currently Being Moderated

Jun 27, 2013 10:36 PM

Cucumber + Rubymine / Bug in tc_before_feature

hi,

 

I'm using Rubymine + Cucumber and when I start debugging all cucumber features I obtain a weird message like this. It seems that the cucumber method file_colon_line isn't compatible with tc_before_feature:

 

1. implementation of file_colon_line in

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/location.rb:22:in `file_colon_line'

 

    module HasLocation

      def file_colon_line

        location.to_s

      end

  ... // more code

 

2. implementation of tc_before_feature in

/home/user/bin/RubyMine-4.5.3/rb/testing/patch/bdd/teamcity/cucumber/common.rb:112:in `tc_before_feature'

       # each feature file contains only one feature
        # so let's use 1 line of feature file for navigation
        @current_feature_file_colon_line = feature.file_colon_line(1)

 

 

Resulting error: wrong number of arguments (1 for 0) (ArgumentError)

Is there a fix for it?
Thank you in advance.
golbie
-----------------
Whole output:

 

/home/user/.rvm/rubies/ruby-1.9.3-p429/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/user/RubymineProjects/prototyp1/script/cucumber /home/user/RubymineProjects/prototyp1/features --format Teamcity::Cucumber::Formatter --expand --color -r features

Testing started at 8:28 PM ...

        SECURITY WARNING: No secret option provided to Rack::Session::Cookie.

        This poses a security threat. It is strongly recommended that you

        provide a secret to prevent exploits that may be possible from crafted

        cookies. This will not be supported in future versions of Rack, and

        future versions will even invalidate your existing user cookies.


        Called from: /home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.


Rack::File headers parameter replaces cache_control after Rack 1.5.

wrong number of arguments (1 for 0) (ArgumentError)

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/location.rb:22:in `file_colon_line'

/home/user/bin/RubyMine-4.5.3/rb/testing/patch/bdd/teamcity/cucumber/common.rb:112:in `tc_before_feature'

/home/user/bin/RubyMine-4.5.3/rb/testing/patch/bdd/teamcity/cucumber/formatter_03103.rb:32:in `before_feature'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:181:in `block in send_to_all'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:179:in `each'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:179:in `send_to_all'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:169:in `broadcast'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:26:in `visit_feature'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/features.rb:28:in `block in accept'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/features.rb:17:in `each'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/features.rb:17:in `each'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/features.rb:27:in `accept'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:21:in `block in visit_features'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:170:in `broadcast'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/ast/tree_walker.rb:20:in `visit_features'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/runtime.rb:48:in `run!'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/lib/cucumber/cli/main.rb:47:in `execute!'

/home/user/.rvm/gems/ruby-1.9.3-p429@prototyp1/gems/cucumber-1.3.2/bin/cucumber:13:in `<top (required)>'

/home/user/RubymineProjects/prototyp1/script/cucumber:9:in `load'

/home/user/RubymineProjects/prototyp1/script/cucumber:9:in `<top (required)>'

-e:1:in `load'

-e:1:in `<main>'

Oleg Sukhodolsky JetBrains 871 posts since
Apr 4, 2012
Currently Being Moderated
Jun 27, 2013 10:44 PM in response to: K Golbang
Re: Cucumber + Rubymine / Bug in tc_before_feature

Hi,

 

this is http://youtrack.jetbrains.com/issue/RUBY-13457 and it was fixed in 5.4

 

Regards, Oleg.

More Like This

  • Retrieving data ...