Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Error in Hugo 0.59.0 #6450

Closed
marmanold opened this issue Oct 23, 2019 · 5 comments · Fixed by #6452
Closed

Runtime Error in Hugo 0.59.0 #6450

marmanold opened this issue Oct 23, 2019 · 5 comments · Fixed by #6452

Comments

@marmanold
Copy link

Hugo Version: Hugo Static Site Generator v0.59.0/extended darwin/amd64 BuildDate: unknown
OS: macOS Mojave 10.14.6

Issue:

Starting with this version I receive three errors when I generate my site. Nothing has change in my repository since the previous version of Hugo, so this is a new regression.

My site builds as expected (so far as I can tell), but Hugo produces three runtime errors.

Hugo output from terminal below. Please let me know what other information you might need.

Building sites … ERROR 2019/10/22 16:10:49 runtime error: index out of range [2] with length 2
ERROR 2019/10/22 16:10:49 runtime error: index out of range [2] with length 2
ERROR 2019/10/22 16:10:49 runtime error: index out of range [2] with length 2

                   |  EN   
+------------------+------+
  Pages            | 1159  
  Paginator pages  |   60  
  Non-page files   |    0  
  Static files     |   78  
  Processed images |    0  
  Aliases          |  591  
  Sitemaps         |    1  
  Cleaned          |    0  

Total in 626 ms
@bep bep added this to the v0.59.1 milestone Oct 23, 2019
@bep
Copy link
Member

bep commented Oct 23, 2019

Please let me know what other information you might need.

While I agree that this is a bug, I would most likely need access to your project or a Hugo site with this error. If this is a private GitHub project you may consider sharing it with me for a short while so I can run it.

@marmanold
Copy link
Author

I sent you an invite to the site's repository. Thank you so much for giving it a look!

@bep
Copy link
Member

bep commented Oct 23, 2019

@marmanold thanks, I got it. It's a bug introduced in Chroma, the highlighter we use.

@bep bep added the Upstream label Oct 23, 2019
bep added a commit to bep/hugo that referenced this issue Oct 23, 2019
Also improve relevant logging.

Fixes gohugoio#6450
bep added a commit to bep/hugo that referenced this issue Oct 23, 2019
Also improve relevant logging.

Fixes gohugoio#6450
bep added a commit to bep/hugo that referenced this issue Oct 24, 2019
Also improve relevant logging.

Fixes gohugoio#6450
@bep
Copy link
Member

bep commented Oct 24, 2019

It's now fixed upstream in Chroma (that was impressively fast!), and I will try to find time to do a patch release later today.

bep added a commit to bep/hugo that referenced this issue Oct 24, 2019
Also improve relevant logging.

Fixes gohugoio#6450
bep added a commit to bep/hugo that referenced this issue Oct 24, 2019
Also improve relevant logging.

Fixes gohugoio#6450
@bep bep closed this as completed in #6452 Oct 24, 2019
bep added a commit that referenced this issue Oct 24, 2019
Also improve relevant logging.

Fixes #6450
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants