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

Error: Cannot locate this method: xxxxxxx . Try 'gem-install pry-doc' to get access.. #33

Closed
alankis opened this issue May 2, 2016 · 3 comments

Comments

@alankis
Copy link

alankis commented May 2, 2016

I have installed pry and pry-doc, but I can't access any documentation. yard gem is also installed, and finally am I using rbenv as Ruby version manager. I can't load or access documentation from other project folders, but I can from location where pry gem is installed which is in my case:

'/home/alan/.rbenv/shims/

My setup is like this:

rbenv 1.0.0-19-g29b4da7
rbenv 1.0.0-19-g29b4da7

And output of 'gem list | grep pry' is bellow:

pry (0.10.3)
pry-doc (0.8.0)

'gem list | grep yard'
yard (0.8.7.6)

Thanks, Alan

@dgutov
Copy link
Contributor

dgutov commented May 8, 2016

I can't load or access documentation from other project folders

What have you tried exactly, and how do the results look?

? puts seems to work okay here even using Ruby 2.3.0, mostly because 0408105 is not in any released version of pry-doc.

@quixotically
Copy link

require 'pry-doc'
in the pry session worked for me.

More details:
I had this issue as well, after just having done a fresh gem install of pry and pry-doc.

Screenshot from 2021-04-14 16-58-14

Luckily from this reddit post I tried the solution I mentioned and it worked.

@andrehjr
Copy link
Member

Having an updated pry-doc and calling require 'pry-doc' should just work.

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