Open earthboundkid opened 2 years ago
Another:
So, I have experienced this myself, which is why I put the label on it. But now, trying to force the error, I'm not able to reproduce it.
One question, in your problem repo; do you commit .hugo_build.lock
to Git or is it in .gitignore
?
It is in .gitignore.
Another panic:
In the other tab, here's what I did:
[ adhoc@goldbook: ~/src/spl/poor-richard ]
$ git stash
Saved working directory and index state WIP on cj/elections: 6d6d5712 Topics: Add aliases to Español page
(Fri, Sep 16 09:15:02 AM) (cj/elections↑41↓13|…)
[ adhoc@goldbook: ~/src/spl/poor-richard ]
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
(Fri, Sep 16 09:15:06 AM) (master|…)
[ adhoc@goldbook: ~/src/spl/poor-richard ]
$ git pull
From github.com:spotlightpa/poor-richard
- [deleted] (none) -> origin/cj/flip-flop
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 26 (delta 16), reused 22 (delta 16), pack-reused 0
Unpacking objects: 100% (26/26), 9.48 KiB | 231.00 KiB/s, done.
44681b5a..1e5b8ef8 master -> origin/master
Updating 44681b5a..1e5b8ef8
Fast-forward
config/_default/params.json | 6 +++---
content/newsletters/talkofthetown/2022-09-15-1000.md | 20 ++++++++++++++++++++
data/editorsPicks.json | 7 +++----
layouts/_default/list.html | 4 ++--
layouts/partials/component/promo-header.html | 5 +----
5 files changed, 29 insertions(+), 13 deletions(-)
create mode 100644 content/newsletters/talkofthetown/2022-09-15-1000.md
I think it is more likely to be triggered if you do one mass operation and then another, like stash, checkout, pull vs. just checkout.
Here's a different crash, I think caused by moving a file around:
Change detected, rebuilding site.
2022-09-16 20:07:42.050 -0400
Source changed "/Users/adhoc/src/spl/poor-richard/content/elections.md": CREATE
ERROR 2022/09/16 20:07:47 Rebuild failed: "/Users/adhoc/src/spl/poor-richard/content/news/2022-02-21-SPLCANNABIS21.md:123:1": failed to render shortcode "featured/keypoints": failed to process shortcode: "/Users/adhoc/src/spl/poor-richard/layouts/shortcodes/featured/keypoints.html:35:16": execute of template failed at <markdownify>: error calling markdownify: runtime error: invalid memory address or nil pointer dereference
Total in 5158 ms
Rebuilt in 28692 ms
panic: send on closed channel
goroutine 18440 [running]:
github.com/gohugoio/hugo/deps.(*globalErrHandler).SendError(...)
github.com/gohugoio/hugo/deps/deps.go:121
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc00febdb00, {0x0, {0x0, 0x0}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
github.com/gohugoio/hugo/hugolib/hugo_sites_build.go:151 +0x686
github.com/gohugoio/hugo/commands.(*commandeer).buildSites(...)
github.com/gohugoio/hugo/commands/hugo.go:737
github.com/gohugoio/hugo/commands.(*commandeer).fullRebuild.func1()
github.com/gohugoio/hugo/commands/hugo.go:826 +0x325
created by github.com/gohugoio/hugo/commands.(*commandeer).fullRebuild
github.com/gohugoio/hugo/commands/hugo.go:794 +0x116
⏎
# status: 2 #
Essentially every time I check out a different branch in git or run prettier over my files, Hugo crashes. Here's the most recent crash:
And another:
What version of Hugo are you using (
hugo version
)?hugo v0.102.3+extended darwin/amd64 BuildDate=unknown
Does this issue reproduce with the latest release?
Yes.