Building YARD (yri) index for mustermann-1.0.0... [error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:

32 views
Skip to first unread message

Hanlyu Sarang

unread,
May 10, 2017, 9:36:11 PM5/10/17
to YARD
I ran gem update today, and apparently the sinatra gem added a gem called mustermann to the dependency list. This new gem installed (first time) and something caused an error while generating the Yard documentation. I am set up to automatically generate the yard documentation.

A few details before I include the build error:

I'm on Windows 7, 64 bit on a Toshiba Satellite. I am using Ruby version 2.3 (32-bit) from RubyInstaller. I am also using Gem version 2.5.2 with the 32-bit: DevKit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe 

ruby --version : ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32] 
gem --version : 2.5.2 

This is the text of the gem update and the build error:

# gem update
Updating installed gems
Updating did_you_mean
ERROR:  Error installing did_you_mean:
        did_you_mean requires Ruby version >= 2.4.0.
Updating minitest
Fetching: minitest-5.10.2.gem (100%)
Successfully installed minitest-5.10.2
Building YARD (yri) index for minitest-5.10.2...
Done installing documentation for minitest after 3 seconds
Done installing documentation for minitest after 0 seconds
Updating rack
Fetching: rack-2.0.2.gem (100%)
Successfully installed rack-2.0.2
Building YARD (yri) index for rack-2.0.2...
Done installing documentation for rack after 1 seconds
Done installing documentation for rack after 0 seconds
Updating rack-protection
Fetching: rack-protection-2.0.0.gem (100%)
Successfully installed rack-protection-2.0.0
Building YARD (yri) index for rack-protection-2.0.0...
Done installing documentation for rack-protection after 0 seconds
Done installing documentation for rack-protection after 0 seconds
Updating sinatra
Fetching: mustermann-1.0.0.gem (100%)
Successfully installed mustermann-1.0.0
Fetching: sinatra-2.0.0.gem (100%)
Successfully installed sinatra-2.0.0
Building YARD (yri) index for mustermann-1.0.0...
[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
  in `lib/mustermann/regular.rb`:22:

        22: def initialize(string, check_anchors: true, **options)

[error]: NoMethodError: undefined method `text' for #<YARD::Tags::RefTagList:0x11815f68>
[error]: Stack trace:
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:336:in `block (2 levels) in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each_with_index'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `block in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:326:in `block in call_after_parse_callbacks'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:325:in `each'

[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
  in `lib/mustermann/identity.rb`:21:

        21: def ===(string)

[error]: NoMethodError: undefined method `text' for #<YARD::Tags::RefTagList:0x10ee0160>
[error]: Stack trace:
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:336:in `block (2 levels) in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each_with_index'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `block in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:326:in `block in call_after_parse_callbacks'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:325:in `each'

[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
  in `lib/mustermann/identity.rb`:28:

        28: def peek_size(string)

[error]: NoMethodError: undefined method `text' for #<YARD::Tags::RefTagList:0x10eb3e38>
[error]: Stack trace:
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:336:in `block (2 levels) in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each_with_index'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `block in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:326:in `block in call_after_parse_callbacks'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:325:in `each'

[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
  in `lib/mustermann/regexp_based.rb`:17:

        17: def initialize(string, **options)

[error]: NoMethodError: undefined method `text' for #<YARD::Tags::RefTagList:0xfdf5780>
[error]: Stack trace:
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:336:in `block (2 levels) in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each_with_index'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `block in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:326:in `block in call_after_parse_callbacks'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:325:in `each'

[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
  in `lib/mustermann/regexp_based.rb`:27:

        27: def peek_size(string)

[error]: NoMethodError: undefined method `text' for #<YARD::Tags::RefTagList:0xfdb1950>
[error]: Stack trace:
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:336:in `block (2 levels) in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each_with_index'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `block in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:326:in `block in call_after_parse_callbacks'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:325:in `each'

[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
  in `lib/mustermann/regexp_based.rb`:35:

        35: def peek_match(string)

[error]: NoMethodError: undefined method `text' for #<YARD::Tags::RefTagList:0xfd92378>
[error]: Stack trace:
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:336:in `block (2 levels) in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `each_with_index'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:334:in `block in <class:DocstringParser>'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:326:in `block in call_after_parse_callbacks'
        c:/Ruby/lib/ruby/gems/2.3.0/gems/yard-0.9.9/lib/yard/docstring_parser.rb:325:in `each'

Building YARD (yri) index for sinatra-2.0.0...
Done installing documentation for mustermann, sinatra after 2 seconds
Done installing documentation for mustermann, sinatra after 0 seconds
Gems updated: did_you_mean minitest rack rack-protection mustermann sinatra


Reply all
Reply to author
Forward
0 new messages