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

Markdown print error in 1.12.0-DEV #357

Closed
huangyxi opened this issue Jul 3, 2024 · 0 comments · Fixed by #358
Closed

Markdown print error in 1.12.0-DEV #357

huangyxi opened this issue Jul 3, 2024 · 0 comments · Fixed by #358
Labels

Comments

@huangyxi
Copy link
Contributor

huangyxi commented Jul 3, 2024

Reproduction

  1. Run julia with version v1.12.0-DEV.
  2. Type ]? to display Pkg help, which is a markdown document.
$ julia +nightly
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.12.0-DEV.810 (2024-07-02)
 _/ |\__'_|_|_|\__'_|  |  Commit 11939977732 (0 days old master)
|__/                   |

(v1.12) pkg> ?
  Welcome to the Pkg REPL-mode. To return to the julia> prompt, either press backspace
  when the input line is empty or press Ctrl+C.

  Full documentation available at https://pkgdocs.julialang.org/

  Synopsis

ERROR: UndefVarError: `lines` not defined in `Markdown`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] term(io::Base.TTY, md::Markdown.Code, columns::Int64)
    @ OhMyREPL ~/.julia/packages/OhMyREPL/HzW5x/src/MarkdownHighlighter.jl:55
  [2] term(io::Base.TTY, content::Vector{Any}, cols::Int64)
    @ Markdown ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Markdown/src/render/terminal/render.jl:10
  [3] term (repeats 2 times)
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Markdown/src/render/terminal/render.jl:16 [inlined]
  [4] show
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Markdown/src/render/terminal/render.jl:226 [inlined]
  [5] do_help!(command::Pkg.REPLMode.Command, io::Base.TTY)
    @ Pkg.REPLMode ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Pkg/src/REPLMode/REPLMode.jl:421
  [6] #invokelatest#2
    @ ./essentials.jl:1045 [inlined]
  [7] invokelatest
    @ ./essentials.jl:1042 [inlined]
  [8] do_cmd(command::Pkg.REPLMode.Command, io::Base.TTY)
    @ Pkg.REPLMode ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Pkg/src/REPLMode/REPLMode.jl:400
  [9] do_cmds(commands::Vector{Pkg.REPLMode.Command}, io::Base.TTY)
    @ Pkg.REPLMode ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Pkg/src/REPLMode/REPLMode.jl:393
 [10] do_cmds(repl::REPL.LineEditREPL, commands::String)
    @ REPLExt ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Pkg/ext/REPLExt/REPLExt.jl:99
 [11] on_done(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool, repl::REPL.LineEditREPL)
    @ REPLExt ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Pkg/ext/REPLExt/REPLExt.jl:113
 [12] #invokelatest#2
    @ ./essentials.jl:1045 [inlined]
 [13] invokelatest
    @ ./essentials.jl:1042 [inlined]
 [14] (::REPLExt.var"#43#46"{REPL.LineEditREPL})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ REPLExt ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Pkg/ext/REPLExt/REPLExt.jl:135
 [15] #invokelatest#2
    @ ./essentials.jl:1045 [inlined]
 [16] invokelatest
    @ ./essentials.jl:1042 [inlined]
 [17] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2748
 [18] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/REPL.jl:1496
 [19] (::REPL.var"#75#81"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/REPL.jl:501

(v1.12) pkg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants