gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.39k stars 7.49k forks source link

Shortcode panic with partial redefinition of HTML output format #4114

Closed bep closed 8 months ago

bep commented 6 years ago
panic: Shortcode "HAHAHUGOSHORTCODE-1HBHB" could not be found

goroutine 376 [running]:
github.com/gohugoio/hugo/hugolib.(*shortcodeHandler).contentShortcodesForOutputFormat(0xc4210adcc0, 0x1a06edf, 0x4, 0x1a081a7, 0x4, 0x1a07a63, 0x4, 0xc420377d0c, 0x3, 0x1a05325, ...)
    /Users/bep/go/src/github.com/gohugoio/hugo/hugolib/shortcode.go:395 +0x659
github.com/gohugoio/hugo/hugolib.(*shortcodeHandler).updateDelta(0xc4210adcc0, 0x1a06edf)
    /Users/bep/go/src/github.com/gohugoio/hugo/hugolib/shortcode.go:354 +0xb4
github.com/gohugoio/hugo/hugolib.(*Site).preparePagesForRender.func1(0xc420104f00, 0xc421397f40, 0xc421536300, 0xc421a0ba30)
    /Users/bep/go/src/github.com/gohugoio/hugo/hugolib/hugo_sites.go:517 +0x907
created by github.com/gohugoio/hugo/hugolib.(*Site).preparePagesForRender
    /Users/bep/go/src/github.com/gohugoio/hugo/hugolib/hugo_sites.go:508 +0xd3
bep commented 6 years ago

Seems the issue is this:

bep commented 6 years ago

The workaround for this is, if you redefine HTML or any internal output format, to make sure you have a outputs definition for every Kind.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.