You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(With Julia 1.5.4 and Documenter v0.26.3 on macOS 10.14.16)
I am running doctests in package where they were disabled for some times (due to issues), with the goal of making them pass again and enabling them again in CI.
Unfortunately, they run into an error, presumably a syntax error in one of the doctests. But I have no idea how to locate them from here.
Any ideas how to do that? Perhaps the doctest function could be modified to catch the exception and throw a different, nicer error indicating the location of the offending doctest?
...
[ Info: Doctest: running doctests.
ERROR: LoadError: LoadError: Base.Meta.ParseError("unexpected \",\"")
Stacktrace:
[1] parse(::String, ::Int64; greedy::Bool, raise::Bool, depwarn::Bool) at ./meta.jl:184
[2] parse(::String; raise::Bool, depwarn::Bool) at ./meta.jl:215
[3] parse at ./meta.jl:215 [inlined]
[4] doctest(::Documenter.DocTests.DocTestContext, ::Documenter.Utilities.Markdown2.CodeBlock) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/DocTests.jl:142
[5] (::Documenter.DocTests.var"#1#2"{Documenter.DocTests.DocTestContext})(::Documenter.Utilities.Markdown2.CodeBlock) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/DocTests.jl:112
[6] walk(::Documenter.DocTests.var"#1#2"{Documenter.DocTests.DocTestContext}, ::Documenter.Utilities.Markdown2.CodeBlock) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Utilities/Markdown2.jl:297
[7] walk(::Function, ::Array{Documenter.Utilities.Markdown2.MarkdownBlockNode,1}) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Utilities/Markdown2.jl:306
[8] walk(::Documenter.DocTests.var"#1#2"{Documenter.DocTests.DocTestContext}, ::Documenter.Utilities.Markdown2.MD) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Utilities/Markdown2.jl:299
[9] doctest at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/DocTests.jl:109 [inlined]
[10] doctest(::Base.Docs.DocStr, ::Module, ::Document) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/DocTests.jl:89
[11] doctest(::Documenter.Documents.DocumentBlueprint, ::Document) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/DocTests.jl:57
[12] runner(::Type{Documenter.Builder.Doctest}, ::Document) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Builder.jl:214
[13] dispatch(::Type{Documenter.Builder.DocumentPipeline}, ::Document) at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Utilities/Selectors.jl:170
[14] #2 at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Documenter.jl:249 [inlined]
[15] cd(::Documenter.var"#2#3"{Document}, ::String) at ./file.jl:104
[16] #makedocs#1 at /Users/mhorn/.julia/packages/Documenter/bFHi4/src/Documenter.jl:248 [inlined]
...
The text was updated successfully, but these errors were encountered:
(With Julia 1.5.4 and Documenter v0.26.3 on macOS 10.14.16)
I am running doctests in package where they were disabled for some times (due to issues), with the goal of making them pass again and enabling them again in CI.
Unfortunately, they run into an error, presumably a syntax error in one of the doctests. But I have no idea how to locate them from here.
Any ideas how to do that? Perhaps the doctest function could be modified to catch the exception and throw a different, nicer error indicating the location of the offending doctest?
The text was updated successfully, but these errors were encountered: