Skip to content

Documenter version extraction in rundocumenter.jl fails for new manifest format #192

@mortenpi

Description

@mortenpi

This part

documenter_version = v"0.24.10"
try
manifest = joinpath(docsdir, "Manifest.toml")
if isfile(manifest)
pm = Pkg.TOML.parsefile(manifest)
global documenter_version = VersionNumber(first(pm["Documenter"])["version"])
else
@warn("No Mainfest.toml found at `$(manifest)`. Defaulting to $(documenter_version).")
end
catch err
@error(exception = err)
end

generally leads to a KeyError("Documenter") because the new Manifest.toml format wraps all the packages in [deps.PackageName]. So we should probably do pm["deps"]["Documenter"] to extract the package (but probably also check manifest_format?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions