You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been struggling with this for a bit and I think it has something to do with OhMyREPL.
I define a function foo with a docstring that includes a doctest with a "script" example. Then I ask for the help?> foo and if OhMyREPL is loaded then the doctest does not appear!
Af first I load Julia without OhMyREPL. Everything looks OK. If then I load OhMyREPL and ask again of the docstring of foo the example is disappeared!
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _||_ __ _ | Type "?"for help, "]?"for Pkg help.
|||||||/_` | | | | |_| | | | (_| | | Version 1.8.5 (2023-01-08) _/ |\__'_|_|_|\__'_| ||__/ |julia> """ foo(x) A function called foo. Example =======```jldoctest
foo(2)
# output2``` """ foo(x) = xfoohelp?> foosearch: foo floor pointer_from_objref OverflowError RoundFromZero unsafe_copyto! functionloc foo(x) A function called foo. Example ≡≡≡≡≡≡≡≡≡ foo(2) # output 2julia> using OhMyREPLhelp?> foosearch: foo floor pointer_from_objref OverflowError RoundFromZero unsafe_copyto! functionloc foo(x) A function called foo. Example ≡≡≡≡≡≡≡≡≡julia>
The text was updated successfully, but these errors were encountered:
navidcy
changed the title
Script style doctests don't appear in the REPL help? > when OhMyREPL is loaded
Script style doctests don't appear in the REPL help?> when OhMyREPL is loaded
Mar 1, 2023
navidcy
changed the title
Script style doctests don't appear in the REPL help?> when OhMyREPL is loaded
Script-style doctests don't appear in the REPL's help?> when OhMyREPL is loaded
Mar 1, 2023
True. But without OhMyREPL it works both ways. So I was getting confused and puzzled why I wasn't seeing the docstring examples but others could see them.
I've been struggling with this for a bit and I think it has something to do with OhMyREPL.
I define a function
foo
with a docstring that includes a doctest with a "script" example. Then I ask for thehelp?> foo
and if OhMyREPL is loaded then the doctest does not appear!(Note that if I used a REPL example doctest then all is good!)
Here's a MWE.
Af first I load Julia without OhMyREPL. Everything looks OK. If then I load OhMyREPL and ask again of the docstring of
foo
the example is disappeared!The text was updated successfully, but these errors were encountered: