Markdown error in help mode

When I tried to check the function hypot via the help mode, I got the following Markdown error regardless of using Atom/Juno or REPL via Terminal. Also, this occurs on Mac, Windows, and Linux machines. How can we resolve this problem? Thanks!

help?> hypot
search: hypot CholeskyPivoted

  hypot(x, y)


  Compute the hypotenuse \sqrt{x^2+y^2} avoiding overflow and underflow.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

Error showing value of type Markdown.MD:
ERROR: UndefVarError: with_output_format not defined
Stacktrace:
 [1] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Markdown.Code, ::Int64) at /Users/xxx/.julia/packages/OhMyREPL/f919j/src/MarkdownHighlighter.jl:59
 [2] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Any,1}, ::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:14
 [3] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Markdown.MD, ::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:17
 [4] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Any,1}, ::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:14
 [5] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Markdown.MD, ::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:17
 [6] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Any,1}, ::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:11
 [7] term(::IOContext{REPL.Terminals.TTYTerminal}, ::Markdown.MD, ::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:17 (repeats 2 times)
 [8] show(::IOContext{REPL.Terminals.TTYTerminal}, ::MIME{Symbol("text/plain")}, ::Markdown.MD) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Markdown/src/render/terminal/render.jl:169
 [9] display(::REPL.REPLDisplay{REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Markdown.MD) at /Users/xxx/.julia/packages/OhMyREPL/f919j/src/output_prompt_overwrite.jl:6
 [10] display(::REPL.REPLDisplay, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:135
 [11] display(::Any) at ./multimedia.jl:287
 [12] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [13] invokelatest at ./essentials.jl:696 [inlined]
 [14] print_response(::IO, ::Any, ::Any, ::Bool, ::Bool, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:154
 [15] print_response(::REPL.AbstractREPL, ::Any, ::Any, ::Bool, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:139
 [16] (::getfield(REPL, Symbol("#do_respond#40")){Bool,typeof(REPL.helpmode),REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:708
 [17] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [18] invokelatest at ./essentials.jl:696 [inlined]
 [19] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/LineEdit.jl:2261
 [20] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:1029
 [21] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:191
 [22] (::getfield(Base, Symbol("##719#721")){Bool,Bool,Bool,Bool})(::Module) at ./logging.jl:311
 [23] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [24] invokelatest at ./essentials.jl:696 [inlined]
 [25] macro expansion at ./logging.jl:308 [inlined]
 [26] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:330
 [27] exec_options(::Base.JLOptions) at ./client.jl:242
 [28] _start() at ./client.jl:421

You might need to provide more details about your Julia version, since this is what I get for both my source-build and a binary download on linux (v. 1.0.01 and 1.0, respectively):

help?> hypot
search: hypot

  hypot(x, y)

  Compute the hypotenuse \sqrt{x^2+y^2} avoiding overflow and underflow.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

  julia> a = 10^10;
  
  julia> hypot(a, a)
  1.4142135623730951e10
  
  julia> √(a^2 + a^2) # a^2 overflows
  ERROR: DomainError with -2.914184810805068e18:
  sqrt will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
  Stacktrace:
  [...]

  ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────  
                                                                                                                                                                                                                                             
  hypot(x...)                                                                                                                                                                                                                                
                                                                                                                                                                                                                                             
  Compute the hypotenuse \sqrt{\sum x_i^2} avoiding overflow and underflow.                                                                                                                                                                  
                                                                                                                                                                                                                                             
julia> 

@tim.holy; thank you very much for your reply. I’m using Julia v1.0.1 downloaded from the official Julia site for my three platforms (Mac, Windows, Linux). I didn’t build it from the source.

As the stacktrace suggest this is an issue with OhMyREPL.

1 Like

Thanks a lot! I just posted the issue at the OhMyREPL GitHub site.

Should be fixed on master.

Note https://github.com/KristofferC/OhMyREPL.jl#warning :slight_smile:

1 Like