ri question

C

Charles Mills

How do you redefine your search in the following instance?
$ ri File#path
More than one method matched your request. You can refine
your search by asking for information on one of:

File#path, FileUtils#mkpath, File#path
$ ??
$ ruby -v
ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]
#########
File#path is not the only time this happens, for example String#unpack
leads to the same situation.
I am using ri in bash with the following alias:
# ri alias
alias ri='ri -T'
##
I installed ruby from source using $./configure --enable-install-doc;
make; sudo make install
The only other ruby package I have installed is racc.

-Charlie
 
J

James Britt

Charles said:
How do you redefine your search in the following instance?
$ ri File#path
More than one method matched your request. You can refine
your search by asking for information on one of:

File#path, FileUtils#mkpath, File#path

I've seen this sort of duplication on one of my Windows boxes where I've
a history of installing/unintalling/reinstalling Ruby via the 1-click.

Look and to see if you have duplicate ri data sets in share/ri/1.8/site/
and share/ri/1.8/system/

Note that some data files may have the same name, but if they do they
should have different parent directories.

You should have, for example,
share/ri/1.8/site/File/path-i.yaml

if File/path-i.yaml shows up someplace else as well, then ri gets confused.

James
 
C

Charles Mills

I've seen this sort of duplication on one of my Windows boxes where
I've a history of installing/unintalling/reinstalling Ruby via the
1-click.

Look and to see if you have duplicate ri data sets in
share/ri/1.8/site/ and share/ri/1.8/system/

Note that some data files may have the same name, but if they do they
should have different parent directories.

You should have, for example,
share/ri/1.8/site/File/path-i.yaml

if File/path-i.yaml shows up someplace else as well, then ri gets
confused.
Thanks! That worked.
Looks like I had some old files in ~/.rdoc
-Charlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top