diff --git a/src/DocTests.jl b/src/DocTests.jl index f2bdd9291c..cd33647fbd 100644 --- a/src/DocTests.jl +++ b/src/DocTests.jl @@ -240,10 +240,12 @@ mutable struct Result end function eval_repl(block, sandbox, meta::Dict, doc::Documenter.Document, page) + src_lines = Documenter.find_block_in_file(block.code, meta[:CurrentFile]) for (input, output) in repl_splitter(block.code) result = Result(block, input, output, meta[:CurrentFile]) for (ex, str) in Documenter.parseblock(input, doc, page; keywords = false, raise=false) # Input containing a semi-colon gets suppressed in the final output. + @debug "Evaluating REPL line from doctest at $(Documenter.locrepr(result.file, src_lines))" unparsed_string = str parsed_expression = ex result.hide = REPL.ends_with_semicolon(str) # Use the REPL softscope for REPL jldoctests, # see https://github.com/JuliaLang/julia/pull/33864