-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Panic on zero-padded taxonomy weights #4628
Comments
Can you post your site source? |
And please tell us the Hugo version you are using, and from where you obtain it, and on which OS you are running, etc. Many thanks! |
I'm using the official version, downloaded from github,
on an Ubuntu 16.04 LTS. The content (~1250 pages) is attached, as well as my config.toml Thank you very much in advance |
Thank you @clorenz. I was able to reproduce the panic on my Debian sid (amd64) running hugo 0.39-1 compiled on Debian. |
Is this a problem:
I don't know when Go assigns values as I see some absurdly high taxonomy weights there.. but they are not as high as |
@clorenz It would be wayy easier to reproduce your issue if you simply archived everything needed to build the site.. Only content and config is not enough, you need layouts or theme to build too.
|
OK, so my theory is correct.. there's a problem with one of the values of
|
Not at my PC now.. but I just realized.. do any of those weight values have a dot or a comma or an exponent sign like e or E? |
Got bit by this again.. some genius in the Go lang team thought that it's a good idea to consider string representations of numbers starting with 0 as octals! So the temporary user-facing fix is:
You will end up with these 16 modified files. Though it's not clear why strings considered as octal representations are seen as And the fix on Hugo side would be catch this exception and point to the file/line containing the offending uncastable int-string. |
After changing the Thank you very much for the great support! |
@bep @moorereason Does the suggestion made here make sense in this case.. to use |
@kaushalmodi, I would fix the two places I linked to above with |
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. |
I have no clue, what might be the reason for this panic. My site currently has got 1545 .md files, maybe it has surpassed an internal limit? Any idea, how to get rid of it?
Thank you very much in advance
Christoph
The text was updated successfully, but these errors were encountered: