-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 method signature in help system #12437
Comments
The docs for those are being captured, see the contents of |
Currently docs created at the bootstrap phase are still ignored. @MichaelHatherly I think you have a PR which finds methods with |
|
Closed by #11932. I believe all those
|
They're not being displayed correctly at the REPL though? I just built b15733f and tried @ScottPJones' examples above and didn't see any REPL help output. |
Only one of the The first two examples:
Lines 167 to 169 in b15733f
Lines 177 to 184 in b15733f
No docs have been added inline for either of those. That's why nothing is showing up in the REPL for them. The following one does have docs:
Lines 220 to 229 in b15733f
and the help mode is finding it now:
Line 205 in b15733f
The closest match would be the docs for the Lines 13225 to 13263 in b15733f
Related to that: help for
@one-more-minute either we need a more intelligent way of displaying the that many docstrings, or we shouldn't be displaying docs for every |
Ah, thanks, I didn't try enough of them then. How hard would it be to bring back the fallback behavior of printing the Another related regression that may be worth a separate issue is showing fields and supertype for help on types that don't have specific constructor docs. |
Something along the lines of diff --git a/base/docs/Docs.jl b/base/docs/Docs.jl
index ad89c72..dfb2867 100644
--- a/base/docs/Docs.jl
+++ b/base/docs/Docs.jl
@@ -528,7 +528,8 @@ macro repl(ex)
if $(isfield(ex) ? :(isa($(esc(ex.args[1])), DataType)) : false)
$(isfield(ex) ? :(fielddoc($(esc(ex.args[1])), $(ex.args[2]))) : nothing)
else
- @doc $(esc(ex))
+ result = @doc $(esc(ex))
+ result == nothing ? (@which($(esc(ex)))) : result
end
end
end would work with in most (?) cases I think.
Yeah, that should definitely be fixed. |
I think it would be good to print the which info always for a method. |
Works now due to #12835 help?> convert(UTF32String, Char['a','b','c'])
.. convert(T, x)
Convert ``x`` to a value of type ``T``.
If ``T`` is an ``Integer`` type, an :exc:`InexactError` will be raised if
``x`` is not representable by ``T``, for example if ``x`` is not
integer-valued, or is outside the range supported by ``T``.
.. doctest::
julia> convert(Int, 3.0)
3
julia> convert(Int, 3.5)
ERROR: InexactError()
in convert at int.jl:205
If ``T`` is a :obj:`AbstractFloat` or :obj:`Rational` type, then it will return
the closest value to ``x`` representable by ``T``.
.. doctest::
julia> x = 1/3
0.3333333333333333
julia> convert(Float32, x)
0.33333334f0
julia> convert(Rational{Int32}, x)
1//3
julia> convert(Rational{Int64}, x)
6004799503160661//18014398509481984 there are definitely remaining bugs in the current implementation and some regressions in behavior, best to file those separately with clear test cases. |
I believe this is related to #11943 sadly enough.
After building shortly after it was merged, method signatures are no longer displayed from the help system.
From my quick test:
Old:
The text was updated successfully, but these errors were encountered: