-
-
Couldn't load subscription status.
- Fork 5.7k
Fix docstring search by signatures revisited #54324
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
base: master
Are you sure you want to change the base?
Changes from all commits
fdaf7a7
5ec358a
9e0bb67
02651c0
53079ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,11 +13,11 @@ Base.unsafe_store! | |
| Base.unsafe_modify! | ||
| Base.unsafe_replace! | ||
| Base.unsafe_swap! | ||
| Base.unsafe_copyto!{T}(::Ptr{T}, ::Ptr{T}, ::Any) | ||
| Base.unsafe_copyto!(::Ptr{T}, ::Ptr{T}, ::Any) where T | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes seem reasonable/good/bugfixes, but I'm worried how breaking they might be to docsystem building across the ecosystem. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way to figure this out? From some JuliaCon talks for example I get the impression that it is possible to test many or all packages with a modified Julia version and see what happens. If the documentation of a package would require changes, then this would result in an error during precompilation or when building the docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is nanosoldier, but that only runs testsuites which often do not include building docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In Base, most changes occur in docstrings (as opposed to separate documentation files), and a missing change gives an error during precompilation. So with nanosoldier we might still get an idea of how big the problem really is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would also have thought that this issue should be detected by Nanosoldier. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am also concerned about breakage in the ecosystem, on the other hand, there is a also real bug here that keep coming up again and again, and surely we must be able to deal with it somehow? What are the possible failure modes here? I am a bit confused by the discussion here. Which of these can occur here:
Any other relevant failure modes I am forgetting here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This line confuses me: looking at this PR, it's the other way around: most changes here are in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It has been a while, but here's what I think I remember:
So indeed, I also don't understand @matthias314's statement about the changes in docstrings in Base. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to admit that don't understand that comment myself anymore! Regarding breakages: If I understand correctly, @projekter would also prefer to disallow type parameters that are not explicitly specified. I think it would be instructive to see how many packages would break if we did this. We could either take this temporarily out of this PR or by use my original PR and then run nanosoldier. |
||
| Base.unsafe_copyto!(::Array, ::Any, ::Array, ::Any, ::Any) | ||
| Base.copyto! | ||
| Base.pointer | ||
| Base.unsafe_wrap{T,N}(::Union{Type{Array},Type{Array{T}},Type{Array{T,N}}}, ::Ptr{T}, ::NTuple{N,Int}) | ||
| Base.unsafe_wrap(::Union{Type{Array},Type{Array{T}},Type{Array{T,N}}}, ::Ptr{T}, ::NTuple{N,Int}) where {T,N} | ||
| Base.pointer_from_objref | ||
| Base.unsafe_pointer_to_objref | ||
| Base.disable_sigint | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this, PR,
?NamedTuple{names,T},?NamedTuple{names}and ``?NamedTuple` all give the same output, which includes four docstrings,Is that intended?