-
Notifications
You must be signed in to change notification settings - Fork 27
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
"Scanning and caching *.c files..." for show-doc Kernel.is_a? #16
Comments
...and then it crashes during parsing:
Unfortunately, I still haven't managed to produce a self-contained example. |
Why is your YARD so old? |
Why shouldn't it be? YARD 0.8.6.2 was released at June 27, and I got the machine I'm currently using (and set up the environment there) about ~20 days before that. |
Well, the newer YARD may fix one of the problems. It's just my uneducated guess. |
Good point. That does nothing to address the root problem, though. |
Actually, I'm effectively calling
ActiveSupport is required, because otherwise the method's |
And another example, without ActiveSupport now:
|
I have a similar experience about philippe@philippe-desktop:~/foo$ pry
[1] pry(main)> Pry::VERSION
=> "0.9.12.6"
[2] pry(main)> PryDoc::VERSION
=> "0.4.6"
[3] pry(main)> ? File#exists?
Error: Couldn't locate a definition for File#exists?!
I just noticed my |
The doc for |
|
You're right, sorry. To add something useful, then: in
|
I think @banister can see the future. He fixes issues before they are even posted! |
Ok, I did more checks: philippe@philippe-desktop:~$ pry
[1] pry(main)> Pry::VERSION
=> "0.9.12.6"
[2] pry(main)> PryDoc::VERSION
=> "0.4.6"
[3] pry(main) » ri File.exists?
File.exists?
(from ruby site)
------------------------------------------------------------------------------
exists?(p1)
------------------------------------------------------------------------------
[4] pry(main) » ? File.exists?
Error: Cannot locate this method: exists?. (source_location returns nil)
[5] pry(main) » ? File
From: /home/philippe/.rvm/gems/ruby-2.1.0@gemset/gems/yard-0.8.7.3/lib/yard/core_ext/file.rb @ line 3:
Class name: File
Number of lines: 1
[6] pry(main) » ? String
From: object.c (C Method):
Owner: Kernel
Visibility: private
Signature: String(arg1)
Number of lines: 6
Converts arg to a String by calling its
to_s method.
String(self) #=> "main"
String(self.class #=> "Object"
String(123456) #=> "123456"
[7] pry(main)> ? GC
Error: Couldn't locate a definition for GC!
[8] pry(main)> ri GC
GC
(from ruby site)
------------------------------------------------------------------------------
The GC module provides an interface to Ruby's mark and sweep garbage
collection mechanism.
Some of the underlying methods are also available via the ObjectSpace module.
You may obtain information about the operation of the GC through GC::Profiler.
------------------------------------------------------------------------------
Constants:
INTERNAL_CONSTANTS:
[not documented]
OPTS:
[not documented]
Class methods:
count
disable
enable
(... snip) And almost same behavior with 0.5.1. Basically, seems it cannot find In the |
@Silex, the latest Pry Doc version is |
It cannot find the String class because it is a method. We should probably default it to class. Actually, as far as I remember, there's a way to get the String class. I forgot how to do that, though. Also, could you please not mangle the original issue? Open a new one, if you want to report this. |
@kyrylo: I said I tested with Also it more or less found the String class, it didn't find [EDIT] how should I go about debugging why |
|
@kyrylo: you are unclear. Can you elaborate? |
@dgutov, you're right! I thought it was already implemented. @Silex, the issue you are writing in is about "Scanning and caching *.c files...". So, your problem has nothing to do with it and that's why I'm suggesting you to file a new issue. Although discussing |
Ok, I'll create a new issue. I believed it was the same underlying problem. |
it mostly dies and whines at me and makes typing more than 3 characters at a time a blocking shitshow emacs: the partner that treats me like shit but i can't help but love.
I've modified the warning line a little, and it looks like this:
The output:
Needless to say, it takes a while (>20 seconds on the first invocation), which is particularly annoying in my use case: providing automatic calltips for Ruby code in Emacs.
The text was updated successfully, but these errors were encountered: