Skip to content

.File.Anything without backing file throws error instead of warning #12068

@darix

Description

@darix

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.123.0+extended linux/amd64 BuildDate=unknown VendorInfo=https://build.opensuse.org/package/show/home:darix:apps/hugo

Build description here: https://build.opensuse.org/package/view_file/home:darix:apps/hugo/hugo.spec?expand=1

Does this issue reproduce with the latest release?

https://github.com/darktable-org/dtdocs.git

./tools/build-all.sh

build-dtorg[3838]: ERROR render of "taxonomy" failed: "/home/hugo/dtdocs-master/themes/hugo-darktable-docs-pdf-theme/layouts/_default/baseof.html:10:4"
: execute of template failed: template: _default/list.html:10:4: executing "_default/list.html" at <partial "toc.html" .>: error calling partial: "/home/hugo/dtdocs-master/themes/hugo-darkta
ble-docs-pdf-theme/layouts/partials/toc.html:6:4": execute of template failed: template: partials/toc.html:6:4: executing "partials/toc.html" at <partial "toc_gen.html" .>: error calling par
tial: "/home/hugo/dtdocs-master/themes/hugo-darktable-docs-pdf-theme/layouts/partials/toc_gen.html:7:38": execute of template failed: template: partials/toc_gen.html:7:38: executing "partial
s/toc_gen.html" at <.File.UniqueID>: error calling UniqueID: runtime error: invalid memory address or nil pointer dereference
build-dtorg[3838]: ERROR render of "section" failed: "/home/hugo/dtdocs-master/themes/hugo-darktable-docs-pdf-theme/layouts/_default/baseof.html:10:4":
 execute of template failed: template: _default/list.html:10:4: executing "_default/list.html" at <partial "toc.html" .>: error calling partial: "/home/hugo/dtdocs-master/themes/hugo-darktab
le-docs-pdf-theme/layouts/partials/toc.html:6:4": execute of template failed: template: partials/toc.html:6:4: executing "partials/toc.html" at <partial "toc_gen.html" .>: error calling part
ial: "/home/hugo/dtdocs-master/themes/hugo-darktable-docs-pdf-theme/layouts/partials/toc_gen.html:7:38": execute of template failed: template: partials/toc_gen.html:7:38: executing "partials
/toc_gen.html" at <.File.UniqueID>: error calling UniqueID: runtime error: invalid memory address or nil pointer dereference
build-dtorg[3838]: ERROR render of "page" failed: "/home/hugo/dtdocs-master/themes/hugo-darktable-docs-pdf-theme/layouts/_default/baseof.html:10:4": ex
ecute of template failed: template: _default/single.html:10:4: executing "_default/single.html" at <partial "toc.html" .>: error calling partial: "/home/hugo/dtdocs-master/themes/hugo-darkta
ble-docs-pdf-theme/layouts/partials/toc.html:6:4": execute of template failed: template: partials/toc.html:6:4: executing "partials/toc.html" at <partial "toc_gen.html" .>: error calling par
tial: "/home/hugo/dtdocs-master/themes/hugo-darktable-docs-pdf-theme/layouts/partials/toc_gen.html:7:38": execute of template failed: template: partials/toc_gen.html:7:38: executing "partial
s/toc_gen.html" at <.File.UniqueID>: error calling UniqueID: runtime error: invalid memory address or nil pointer dereference
build-dtorg[3838]: INFO  build:  step render pages 935 content 786 duration 2.533136365s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions