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

yardoc rake task fails with NameError: uninitialized constant YARD::CLI #179

Closed
bastelfreak opened this issue Oct 29, 2020 · 0 comments
Closed
Assignees
Labels

Comments

@bastelfreak
Copy link

Hi,
I cloned the repository and installed all gems with:

bundle install --path .vendor/ --jobs=$(nrpoc)

afterwards I started the rake task and it failed:

$ bundle exec rake yardoc
rake aborted!
NameError: uninitialized constant YARD::CLI
/home/bastelfreak/publicsuffix-ruby/.vendor/ruby/2.7.0/gems/yard-0.9.25/lib/yard/rake/yardoc_task.rb:72:in `block in define'
/home/bastelfreak/publicsuffix-ruby/.vendor/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/home/bastelfreak/.gem/ruby/2.7.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
/home/bastelfreak/.gem/ruby/2.7.0/bin/bundle:23:in `load'
/home/bastelfreak/.gem/ruby/2.7.0/bin/bundle:23:in `<main>'
Tasks: TOP => yardoc
(See full trace by running task with --trace)

my installed gems:

$ bundle list
Gems included by the bundle:
  * ansi (1.5.0)
  * ast (2.4.1)
  * builder (3.2.4)
  * codecov (0.2.12)
  * docile (1.3.2)
  * json (2.3.1)
  * memory_profiler (0.9.14)
  * minitest (5.14.2)
  * minitest-reporters (1.4.2)
  * mocha (1.11.2)
  * parallel (1.19.2)
  * parser (2.7.2.0)
  * public_suffix (4.0.6)
  * rainbow (3.0.0)
  * rake (13.0.1)
  * regexp_parser (1.8.2)
  * rexml (3.2.4)
  * rubocop (0.93.1)
  * rubocop-ast (1.1.0)
  * ruby-progressbar (1.10.1)
  * simplecov (0.19.1)
  * simplecov-html (0.12.3)
  * unicode-display_width (1.7.0)
  * yard (0.9.25)
Use `bundle info` to print more detailed information about a gem

let me know if you need more information

@weppos weppos self-assigned this Apr 12, 2022
@weppos weppos added the bug label Apr 12, 2022
@weppos weppos closed this as completed in b741b4f Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants