Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get this error: 'undefined method `each' for nil:NilClass' when I start flavored_gherkin #1

Open
JohnBat26 opened this issue Nov 17, 2017 · 3 comments

Comments

@JohnBat26
Copy link

Hello.
Thanks for your pretty gem!
But I don't start it. I get error:

flavored_gherkin -t 'My Features' -f './features' -o './export_features'
(erb):3:in `block (4 levels) in build': undefined method `each' for nil:NilClass (NoMethodError)
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `eval'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `result'
        from (erb):14:in `block (4 levels) in build'
        from (erb):13:in `each'
        from (erb):13:in `block (3 levels) in build'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `eval'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `result'
        from (erb):20:in `block (3 levels) in build'
        from (erb):17:in `each'
        from (erb):17:in `each_with_index'
        from (erb):17:in `block (2 levels) in build'
        from (erb):15:in `each'
        from (erb):15:in `each_with_index'
        from (erb):15:in `block in build'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `eval'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `result'
        from (erb):41:in `block in build'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `eval'
        from /home/johnbat26/.rvm/rubies/ruby-2.3.4/lib/ruby/2.3.0/erb.rb:864:in `result'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/gems/flavored_gherkin-0.2/lib/flavored_gherkin/html_flavour.rb:16:in `block in build'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/gems/flavored_gherkin-0.2/lib/flavored_gherkin/html_flavour.rb:15:in `open'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/gems/flavored_gherkin-0.2/lib/flavored_gherkin/html_flavour.rb:15:in `build'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/gems/flavored_gherkin-0.2/lib/flavored_gherkin.rb:130:in `build'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/gems/flavored_gherkin-0.2/bin/flavored_gherkin:47:in `<top (required)>'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/bin/flavored_gherkin:23:in `load'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/bin/flavored_gherkin:23:in `<main>'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `eval'
        from /home/johnbat26/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `<main>'
@rajatthareja
Copy link
Owner

Could you please share one of your feature file, with which I can reproduce error.

@rajatthareja
Copy link
Owner

@JohnBat26 The above feature files just works fine.

features_ru

Please try to find the feature file for which gem is throwing the error, and share it with me.

Or you can send me your entire features folder at [email protected] if its fine with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants