Documenter.jl: depwarns in doctests

Created on 20 Mar 2018  路  2Comments  路  Source: JuliaDocs/Documenter.jl

Documenter does not capture depwarns in the doctest output. I think we should do that, since deprecated documentation is the same as broken documentation.

One way to find these for now is to run julia with --depwarn=error becuase we catch errors.

Bug

Most helpful comment

It works correctly on julia 0.6 so I think it has to do with the new logging system in Base; we are not redirecting the stream for the logging. Things like this also fails
````
"""
foo(x)

julia> @info "Hello"
[ Info: Hello

"""
````

All 2 comments

Where to the depwarns go to though? Doesn't Documenter capture all the stdout/err when eval()ing the doctests?

It works correctly on julia 0.6 so I think it has to do with the new logging system in Base; we are not redirecting the stream for the logging. Things like this also fails
````
"""
foo(x)

julia> @info "Hello"
[ Info: Hello

"""
````

Was this page helpful?
0 / 5 - 0 ratings

Related issues

halirutan picture halirutan  路  4Comments

Datseris picture Datseris  路  4Comments

thofma picture thofma  路  5Comments

juliohm picture juliohm  路  6Comments

denizyuret picture denizyuret  路  6Comments