Skip to content

Instantly share code, notes, and snippets.

@JanisErdmanis
Last active March 4, 2024 23:47
Show Gist options
  • Save JanisErdmanis/185d598dd65b94b011c1f850e48a664a to your computer and use it in GitHub Desktop.
Save JanisErdmanis/185d598dd65b94b011c1f850e48a664a to your computer and use it in GitHub Desktop.
Documenter test error when ran on forked repo
(Documenter) pkg> test
Testing Documenter
Status `/private/var/folders/rk/6ms0dd4j1ks6sr9x6jm8_42w0000gn/T/jl_DCaMD7/Project.toml`
[a4c015fc] ANSIColoredPrinters v0.0.1
[1520ce14] AbstractTrees v0.4.5
[944b1d66] CodecZlib v0.7.4
[43dc2714] DocInventories v0.4.0
[ffbed154] DocStringExtensions v0.9.3
[e30172f5] Documenter v1.3.0 `~/BtSync/PeaceFounder/SandBox/Documenter.jl`
[d7ba0133] Git v1.3.1
[b5f81e59] IOCapture v0.2.4
[682c06a0] JSON v0.21.4
[d0879d2d] MarkdownAST v0.1.2
[aea7be01] PrecompileTools v1.2.0
[2792f1a3] RegistryInstances v0.1.0
[2a0f44e3] Base64
[ade2ca70] Dates
[f43a241f] Downloads v1.6.0
[b77e0a4c] InteractiveUtils
[76f85450] LibGit2
[56ddb016] Logging
[d6f4376e] Markdown
[44cfe95a] Pkg v1.10.0
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA v0.7.0
[fa267f1f] TOML v1.0.3
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
Status `/private/var/folders/rk/6ms0dd4j1ks6sr9x6jm8_42w0000gn/T/jl_DCaMD7/Manifest.toml`
[a4c015fc] ANSIColoredPrinters v0.0.1
[1520ce14] AbstractTrees v0.4.5
[944b1d66] CodecZlib v0.7.4
[43dc2714] DocInventories v0.4.0
[ffbed154] DocStringExtensions v0.9.3
[e30172f5] Documenter v1.3.0 `~/BtSync/PeaceFounder/SandBox/Documenter.jl`
[d7ba0133] Git v1.3.1
[b5f81e59] IOCapture v0.2.4
[692b3bcd] JLLWrappers v1.5.0
[682c06a0] JSON v0.21.4
[0e77f7df] LazilyInitializedFields v1.2.2
[d0879d2d] MarkdownAST v0.1.2
[69de0a69] Parsers v2.8.1
[aea7be01] PrecompileTools v1.2.0
[21216c6a] Preferences v1.4.3
[2792f1a3] RegistryInstances v0.1.0
[3bb67fe8] TranscodingStreams v0.10.4
[2e619515] Expat_jll v2.5.0+0
[f8c6e375] Git_jll v2.44.0+1
[94ce4f54] Libiconv_jll v1.17.0+0
[458c3c95] OpenSSL_jll v3.0.13+0
[0dad84c5] ArgTools v1.1.1
[56f22d72] Artifacts
[2a0f44e3] Base64
[ade2ca70] Dates
[f43a241f] Downloads v1.6.0
[7b1f6079] FileWatching
[b77e0a4c] InteractiveUtils
[b27032c2] LibCURL v0.6.4
[76f85450] LibGit2
[8f399da3] Libdl
[56ddb016] Logging
[d6f4376e] Markdown
[a63ad114] Mmap
[ca575930] NetworkOptions v1.2.0
[44cfe95a] Pkg v1.10.0
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA v0.7.0
[9e88b42a] Serialization
[6462fe0b] Sockets
[fa267f1f] TOML v1.0.3
[a4e569a6] Tar v1.10.0
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
[deac9b47] LibCURL_jll v8.4.0+0
[e37daf67] LibGit2_jll v1.6.4+0
[29816b5a] LibSSH2_jll v1.11.0+1
[c8ffd9c3] MbedTLS_jll v2.28.2+1
[14a3606d] MozillaCACerts_jll v2023.1.10
[efcefdf7] PCRE2_jll v10.42.0+1
[83775a58] Zlib_jll v1.2.13+1
[8e850ede] nghttp2_jll v1.52.0+1
[3f19e933] p7zip_jll v17.4.0+2
Precompiling project...
1 dependency successfully precompiled in 12 seconds. 24 already precompiled.
Testing Running tests...
[ Info: Building example/make.jl
[ Info: Building mock package docs: HTMLWriter / deployment build
┌ Error: @quietly: an error was thrown, 0 bytes of output captured
│ ArgumentError at /Users/jerdmanis/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:263 in expression:
│ withassets(image_assets...) do
│ #= /Users/jerdmanis/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:264 =#
│ makedocs(; debug = true, root = examples_root, build = "builds/$(build_directory)", doctestfilters = [r"Ptr{0x[0-9]+}"], sitename = "Documenter example", pages = htmlbuild_pages, expandfirst = expandfirst, doctest = false, format = Documenter.HTML(; assets = ["assets/favicon.ico", "assets/custom.css", asset("https://example.com/resource.js"), asset("http://example.com/fonts?param=foo", class = :css), asset("https://fonts.googleapis.com/css?family=Nanum+Brush+Script&display=swap", class = :css)], prettyurls = true, canonical = "https://example.com/stable", mathengine = mathengine, highlights = ["erlang", "erlang-repl"], footer = "This footer has been customized.", inventory_version = "$(Documenter.DOCUMENTER_VERSION)+test", htmlkwargs...), warnonly = warnonly, kwargs...)
│ end
│ exception = (true, Union{Ptr{Nothing}, Base.InterpreterIP}[Ptr{Nothing} @0x000000012ae92eef, Ptr{Nothing} @0x000000012ae9821b, Ptr{Nothing} @0x000000012aea016f, Ptr{Nothing} @0x000000012aea80d7, Ptr{Nothing} @0x000000012aea8127, Ptr{Nothing} @0x000000010544dafb, Ptr{Nothing} @0x000000012ae388db, Ptr{Nothing} @0x000000012ae48ccf, Ptr{Nothing} @0x000000012ae50557, Ptr{Nothing} @0x000000012ae507f3 … Ptr{Nothing} @0x000000010547f2b3, Ptr{Nothing} @0x000000010547f07b, Ptr{Nothing} @0x000000010547ff63, Ptr{Nothing} @0x000000011b667623, Ptr{Nothing} @0x000000011bbacbf7, Ptr{Nothing} @0x000000011c34d58b, Ptr{Nothing} @0x000000011b41ddab, Ptr{Nothing} @0x000000010544dafb, Ptr{Nothing} @0x00000001054ab27f, Ptr{Nothing} @0x00000001054ab173])
└ @ Main.TestUtilities ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/TestUtilities.jl:66
Documenter: Error During Test at /Users/jerdmanis/BtSync/PeaceFounder/SandBox/Documenter.jl/test/runtests.jl:15
Got exception outside of a @test
LoadError: @quietly hit an exception (ArgumentError):
ArgumentError: Unable to automatically determine remote for main repo.
> `repo` is not set, and the Git repository has invalid origin.
Configure `repo` and/or `remotes` appropriately, or set `remotes = nothing` to disable remote source
links altogether (e.g. if not working in a Git repository).
path: /Users/jerdmanis/BtSync/PeaceFounder/SandBox/Documenter.jl
Stacktrace:
[1] interpret_repo_and_remotes(; root::String, repo::String, remotes::Dict{Any, Any})
@ Documenter ~/BtSync/PeaceFounder/SandBox/Documenter.jl/src/documents.jl:640
[2] interpret_repo_and_remotes
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/src/documents.jl:499 [inlined]
[3] Documenter.Document(; root::String, source::String, build::String, workdir::Symbol, format::Documenter.HTMLWriter.HTML, clean::Bool, doctest::Bool, linkcheck::Bool, linkcheck_ignore::Vector{Any}, linkcheck_timeout::Int64, checkdocs::Symbol, doctestfilters::Vector{Regex}, warnonly::Bool, modules::Vector{Module}, pages::Vector{Any}, pagesonly::Bool, expandfirst::Vector{String}, plugins::Vector{Documenter.Plugin}, repo::String, remotes::Dict{Any, Any}, sitename::String, authors::String, version::String, highlightsig::Bool, draft::Bool, others::@Kwargs{})
@ Documenter ~/BtSync/PeaceFounder/SandBox/Documenter.jl/src/documents.jl:429
[4] makedocs(; debug::Bool, format::Documenter.HTMLWriter.HTML, kwargs::@Kwargs{root::String, build::String, doctestfilters::Vector{Regex}, sitename::String, pages::Vector{Any}, expandfirst::Vector{String}, doctest::Bool, warnonly::Bool})
@ Documenter ~/BtSync/PeaceFounder/SandBox/Documenter.jl/src/makedocs.jl:242
[5] (::var"#18#20"{@NamedTuple{edit_link::Symbol}, Bool, @Kwargs{}, String, MathJax2})()
@ Main ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:264
[6] withassets(::var"#18#20"{@NamedTuple{edit_link::Symbol}, Bool, @Kwargs{}, String, MathJax2}, ::String, ::Vararg{String})
@ Main ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:192
[7] #17
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/TestUtilities.jl:101 [inlined]
[8] (::IOCapture.var"#4#7"{DataType, var"#17#19"{@NamedTuple{edit_link::Symbol}, Tuple{String, String, String}, Bool, @Kwargs{}, String, MathJax2}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, Base.TTY, Base.TTY})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[9] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[10] with_logger
@ ./logging.jl:627 [inlined]
[11] capture(f::var"#17#19"{@NamedTuple{edit_link::Symbol}, Tuple{String, String, String}, Bool, @Kwargs{}, String, MathJax2}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[12] _quietly(f::Function, expr::Expr, source::LineNumberNode)
@ Main.TestUtilities ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/TestUtilities.jl:47
[13] macro expansion
@ Main ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/TestUtilities.jl:100 [inlined]
[14] #html_doc#16
@ Main ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:263 [inlined]
[15] top-level scope
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:298
[16] include(fname::String)
@ Base.MainInclude ./client.jl:489
[17] macro expansion
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/runtests.jl:18 [inlined]
[18] macro expansion
@ ~/.julia/juliaup/julia-1.10.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
[19] top-level scope
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/runtests.jl:17
[20] include(fname::String)
@ Base.MainInclude ./client.jl:489
[21] top-level scope
@ none:6
[22] eval
@ Core ./boot.jl:385 [inlined]
[23] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:291
[24] _start()
@ Base ./client.jl:552
Stacktrace:
[1] _quietly(f::Function, expr::Expr, source::LineNumberNode)
@ Main.TestUtilities ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/TestUtilities.jl:77
[2] macro expansion
@ Main ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/TestUtilities.jl:100 [inlined]
[3] #html_doc#16
@ Main ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:263 [inlined]
[4] top-level scope
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:298
[5] include(fname::String)
@ Base.MainInclude ./client.jl:489
[6] macro expansion
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/runtests.jl:18 [inlined]
[7] macro expansion
@ ~/.julia/juliaup/julia-1.10.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
[8] top-level scope
@ ~/BtSync/PeaceFounder/SandBox/Documenter.jl/test/runtests.jl:17
[9] include(fname::String)
@ Base.MainInclude ./client.jl:489
[10] top-level scope
@ none:6
[11] eval
@ Core ./boot.jl:385 [inlined]
[12] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:291
[13] _start()
@ Base ./client.jl:552
in expression starting at /Users/jerdmanis/BtSync/PeaceFounder/SandBox/Documenter.jl/test/examples/make.jl:296
Test Summary: | Error Total Time
Documenter | 1 1 2.3s
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/jerdmanis/BtSync/PeaceFounder/SandBox/Documenter.jl/test/runtests.jl:15
ERROR: Package Documenter errored during testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment