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

--no-document rdoc,ri causes error #1147

Closed
swills opened this issue Jan 21, 2015 · 1 comment
Closed

--no-document rdoc,ri causes error #1147

swills opened this issue Jan 21, 2015 · 1 comment

Comments

@swills
Copy link

swills commented Jan 21, 2015

Using the --no-document rdoc,ri flag causes error:

root@11amd64-default:/wrkdirs/usr/ports/www/rubygem-rails/work/rails-3.2.19 # /usr/local/bin/gem21 install rails-3.2.19.gem -l --no-update-sources --install-dir /wrkdirs/usr/ports/www/rubygem-rails/work/stage/usr/local/lib/ruby/gems/2.1 --ignore-dependencies --bindir=/wrkdirs/usr/ports/www/rubygem-rails/work/stage/usr/local/bin --no-document rdoc,ri
install
Successfully installed rails-3.2.19
ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String
root@11amd64-default:/wrkdirs/usr/ports/www/rubygem-rails/work/rails-3.2.19 # /usr/local/bin/gem21 install rails-3.2.19.gem -l --no-update-sources --install-dir /wrkdirs/usr/ports/www/rubygem-rails/work/stage/usr/local/lib/ruby/gems/2.1 --ignore-dependencies --bindir=/wrkdirs/usr/ports/www/rubygem-rails/work/stage/usr/local/bin
install
Successfully installed rails-3.2.19
Parsing documentation for rails-3.2.19
Done installing documentation for rails after 0 seconds
1 gem installed
root@11amd64-default:/wrkdirs/usr/ports/www/rubygem-rails/work/rails-3.2.19 #

This also doesn't happen if you use --no-rdoc --no-ri.

@duckinator
Copy link
Member

Hi! So, this issue's a year old, but I'll explain what's up in case you or anyone else runs into a similar problem in the future and finds this issue:

It looks like either you were using the --no-document flag improperly, or its usage has changed in the past year.

The way --document and --no-document work, you want to specify either --no-document or --document [TYPES]. --no-document doesn't accept a list of types.

I'm not sure what it was doing before to yield that error, but now it treats gem install x --no-document rdoc,ri the same as gem install x rdoc,ri --no-document and raises an error about being unable to install the rdoc,ri gem.

I'm closing this issue, since it can be resolved by simply removing rdoc,ri from the command line arguments. Sorry it took so long for you to get a response!

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

4 participants