-
Notifications
You must be signed in to change notification settings - Fork 481
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
Doctest failures on julia 0.6 related to world age counter #398
Comments
If it's specific to diff --git a/src/DocChecks.jl b/src/DocChecks.jl
index 7d229d6..5cb9674 100644
--- a/src/DocChecks.jl
+++ b/src/DocChecks.jl
@@ -271,7 +271,7 @@ end
function result_to_string(buf, value)
dis = text_display(buf)
- value === nothing || display(dis, value)
+ value === nothing || eval(Expr(:call, display, dis, value))
sanitise(buf)
end perhaps. Does that help at all? |
Yes, that seems to solve both my test case and my problem-in-the-wild. Thank you! |
MichaelHatherly
added a commit
to MichaelHatherly/Documenter.jl
that referenced
this issue
Jan 1, 2017
MichaelHatherly
added a commit
to MichaelHatherly/Documenter.jl
that referenced
this issue
Jan 1, 2017
Fixes JuliaDocs#398. (cherry picked from commit 0ff1213)
Merged
Fix will be part of 0.8.9 to be tagged shortly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm encountering a doctest failure on Julia 0.6.0-dev (built yesterday) which is related to the newly-implemented world age counter (JuliaLang/julia#17057). I've made a minimal example in a mockup package that I'll call DocumenterTest. Here's the code:
At the REPL you may try using the macro, which defines a method for
show
and makes an object:Now suppose we open a new Julia session. If we try to run Documenter with the following markdown file, the doctest will error (pretend I used three backticks, I'm not sure how to get the formatting right here):
The output from the doctest is the following error instead of "abcd":
The text was updated successfully, but these errors were encountered: