-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
don't error on ModuleCompletion
s for module where @doc
isn't defined
#193
Conversation
Codecov Report
@@ Coverage Diff @@
## master #193 +/- ##
=======================================
Coverage 28.53% 28.53%
=======================================
Files 35 35
Lines 1514 1514
=======================================
Hits 432 432
Misses 1082 1082
Continue to review full report at Codecov.
|
Isn't this the "wrong" fix and we should be using something like |
Sorry for hasty merge. Is there any case that there are docs where If so, maybe changing this line to something like word = "$mod.$word"
Core.eval(Main, :(@doc($(Symbol(word))))) will help ? |
Ah yeah, we can attach docs to objs after they gets defined. I will make a PR to fix this |
No, not all modules are loaded in
Pretty sure that e.g. a |
Yeah, definitely. So might be calling |
so something like completionsummary(mod, c::REPLCompletions.ModuleCompletion) = begin
m, word = c.parent, c.mod
cangetdocs(m, word) || return ""
docs = if isdefined(m, Symbol("@doc"))
getdocs(m, word)
else
word = string(m) * "." * word
getdocs(mod, word)
end
description(docs)
end with the previous |
No description provided.