Issue #12072 has been reported by Stefan Schulte.

----------------------------------------
Bug #12072: puppet doc does not work with new rdoc version
https://projects.puppetlabs.com/issues/12072

Author: Stefan Schulte
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


I'm not able to run the specs anymore.
<pre>
# rake spec
[...]
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 
cannot load such file -- rdoc/tokenstream (LoadError)
[...] failed

Tasks: TOP => spec
(See full trace by running task with --trace)
</pre>

As it turns out puppet doc does also not work in rdoc mode (same error message)
<pre>
# puppet doc --mode rdoc
/home/stefan/git/facter/lib/facter/util/config.rb:7: Use RbConfig instead of 
obsolete and deprecated Config.
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 
iconv will be deprecated in the future, use String#encode instead.
RDoc::RDocError is deprecated and will be removed in RDoc 4
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 
cannot load such file -- rdoc/tokenstream (LoadError)
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in 
`require'
        from /home/stefan/git/puppet/lib/puppet/util/rdoc/parser.rb:9:in `<top 
(required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in 
`require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in 
`require'
        from /home/stefan/git/puppet/lib/puppet/util/rdoc.rb:16:in `rdoc'
        from /home/stefan/git/puppet/lib/puppet/application/doc.rb:182:in `rdoc'
        from /home/stefan/git/puppet/lib/puppet/application/doc.rb:161:in 
`run_command'
        from /home/stefan/git/puppet/lib/puppet/application.rb:309:in `block (2 
levels) in run'
        from /home/stefan/git/puppet/lib/puppet/application.rb:413:in `hook'
        from /home/stefan/git/puppet/lib/puppet/application.rb:309:in `block in 
run'
        from /home/stefan/git/puppet/lib/puppet/application.rb:404:in 
`exit_on_fail'
        from /home/stefan/git/puppet/lib/puppet/application.rb:309:in `run'
        from /home/stefan/git/puppet/lib/puppet/util/command_line.rb:69:in 
`execute'
        from /home/stefan/git/puppet/bin/puppet:4:in `<main>'
</pre>

* ruby 1.9.3p0
* rdoc 3.12

seems to be that `tokenstream` has been renamed to `token_stream`

https://github.com/rdoc/rdoc/commit/3605d42


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to