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

"uninitialized constant YARD" when yard gem not in Gemfile #56

Closed
haxney opened this issue Jan 20, 2014 · 1 comment
Closed

"uninitialized constant YARD" when yard gem not in Gemfile #56

haxney opened this issue Jan 20, 2014 · 1 comment

Comments

@haxney
Copy link

haxney commented Jan 20, 2014

I had a Gemfile with gem 'yard-cucumber' in it, which pulls in the yard dependency, but when I ran rake yard, I would get the error:

rake aborted!
uninitialized constant YARD
/home/haxney/.rvm/gems/ruby-2.0.0-p247@railskating/gems/yard-cucumber-2.3.2/lib/yard/code_objects/cucumber/base.rb:1:in `<top (required)>'
/home/haxney/.rvm/gems/ruby-2.0.0-p247@railskating/gems/yard-cucumber-2.3.2/lib/yard-cucumber.rb:8:in `<top (required)>'
/home/haxney/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'

I found that either adding a require 'yard' to the top of yard-cucumber-2.3.2/lib/yard/code_objects/cucumber/base.rb:1 or adding gem 'yard' to my Gemfile solved the problem, but yard-cucumber should be able to function even without the user having to list gem 'yard' in their Gemfile.

@burtlo
Copy link
Owner

burtlo commented Jan 21, 2014

Thanks for the finding that. I'll try to address that in the loading process. At the moment it likely does not ensure that yard is required.

@burtlo burtlo closed this as completed in 177e5ad Feb 25, 2018
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