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 · 4 comments · Fixed by #6452
Labels
Milestone

Comments

@marmanold
Copy link

@marmanold marmanold commented Oct 23, 2019

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

This comment has been minimized.

Copy link
Member

@bep 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

This comment has been minimized.

Copy link
Author

@marmanold marmanold commented Oct 23, 2019

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

@bep bep added Bug and removed NeedsInvestigation labels Oct 23, 2019
@bep

This comment has been minimized.

Copy link
Member

@bep 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

This comment has been minimized.

Copy link
Member

@bep 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 in #6452 Oct 24, 2019
bep added a commit that referenced this issue Oct 24, 2019
Also improve relevant logging.

Fixes #6450
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.