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

fix UndefRefError for documentation system #44060

Merged
merged 2 commits into from
Feb 15, 2022
Merged

fix UndefRefError for documentation system #44060

merged 2 commits into from
Feb 15, 2022

Conversation

KristofferC
Copy link
Member

Fixes #44009 (#44009 (comment))

Haven't been able to make an MWE but confirmed with the examples in that issue.

@vtjnash
Copy link
Member

vtjnash commented Feb 7, 2022

some smaller examples:

julia> R=Base.Complex{<:Integer}
Complex{<:Integer}

help?> R
search: R Ref rm Real run rem REPL rpad repr reim real read rand Regex RawFD round retry reset read! range randn return rstrip rsplit rotr90

ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] getproperty
   @ ./Base.jl:33 [inlined]
 [2] summarize(io::IOBuffer, TT::Type, binding::Base.Docs.Binding)
   @ REPL /data/vtjnash/julia/usr/share/julia/stdlib/v1.8/REPL/src/docview.jl:286
 [3] summarize(binding::Base.Docs.Binding, sig::Type)
   @ REPL /data/vtjnash/julia/usr/share/julia/stdlib/v1.8/REPL/src/docview.jl:249
 [4] doc(binding::Base.Docs.Binding, sig::Type)
   @ REPL /data/vtjnash/julia/usr/share/julia/stdlib/v1.8/REPL/src/docview.jl:182
 [5] doc(binding::Base.Docs.Binding)
   @ REPL /data/vtjnash/julia/usr/share/julia/stdlib/v1.8/REPL/src/docview.jl:160
 [6] top-level scope
   @ /data/vtjnash/julia/usr/share/julia/stdlib/v1.8/REPL/src/docview.jl:474

julia> REPL.summarize(devnull, Base.Complex{<:Integer}, REPL.Docs.Binding(Main, :Complex))
# Summary
```
struct Complex{var"#s1"<:Integer}
```
# Fields
```
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] getproperty
   @ ./Base.jl:33 [inlined]
 [2] summarize(io::Base.TTY, TT::Type, binding::Base.Docs.Binding)
   @ REPL /data/vtjnash/julia/usr/share/julia/stdlib/v1.8/REPL/src/docview.jl:286
 [3] top-level scope
   @ REPL[5]:1

@KristofferC KristofferC mentioned this pull request Feb 15, 2022
40 tasks
@KristofferC KristofferC merged commit 4842007 into master Feb 15, 2022
@KristofferC KristofferC deleted the kc/fieldtypes branch February 15, 2022 17:46
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request Feb 17, 2022
* fix UndefRefError for documentation system

* add a test

Co-authored-by: Jameson Nash <[email protected]>
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
* fix UndefRefError for documentation system

* add a test

Co-authored-by: Jameson Nash <[email protected]>
KristofferC added a commit that referenced this pull request Feb 23, 2022
* fix UndefRefError for documentation system

* add a test

Co-authored-by: Jameson Nash <[email protected]>
(cherry picked from commit 4842007)
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
* fix UndefRefError for documentation system

* add a test

Co-authored-by: Jameson Nash <[email protected]>
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

Successfully merging this pull request may close these issues.

UndefRefError from doc
3 participants