Giter VIP home page Giter VIP logo

Comments (6)

gawbul avatar gawbul commented on June 30, 2024 2

Still having this issue with version 0.50.0:

$ gem install kitchen-ansible
Fetching kitchen-ansible-0.50.0.gem
Successfully installed kitchen-ansible-0.50.0
Parsing documentation for kitchen-ansible-0.50.0
Before reporting this, could you check that the file you're documenting
has proper syntax:

  /Users/stephenmoss/.rbenv/versions/2.6.3/bin/ruby -c lib/kitchen/provisioner/ansible/os/alpine.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

	(NoMethodError) undefined method `[]' for nil:NilClass

ERROR:  While executing gem ... (NoMethodError)
    undefined method `[]' for nil:NilClass

Running with ruby 2.6.3:

$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]

from kitchen-ansible.

maunzCache avatar maunzCache commented on June 30, 2024 2

I can confirm that for Ruby 2.6.5 the gem update rdoc will fix the issue

from kitchen-ansible.

petracvv avatar petracvv commented on June 30, 2024 1

This looks like a problem with how rdoc is parsing that file. I updated to the latest rdoc gem with gem update rdoc and the problem went away so whatever parsing error was there is now fixed.

from kitchen-ansible.

neillturner avatar neillturner commented on June 30, 2024

i will fix for ruby 2.6

from kitchen-ansible.

neillturner avatar neillturner commented on June 30, 2024

fixed in version 0.50.0

from kitchen-ansible.

rtphokie avatar rtphokie commented on June 30, 2024

I'm still having the problem with version 0.50.1

$ gem install kitchen-ansible
Successfully installed kitchen-ansible-0.50.1
Parsing documentation for kitchen-ansible-0.50.1
Before reporting this, could you check that the file you're documenting
has proper syntax:

  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -c lib/kitchen/provisioner/ansible/os/alpine.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

	(NoMethodError) undefined method `[]' for nil:NilClass

ERROR:  While executing gem ... (NoMethodError)
    undefined method `[]' for nil:NilClass

running with ruby 2.5.3

% ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

from kitchen-ansible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.