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
When building a site with multiple date_formats, Nikola sometimes crashes and others it messes up the formats #2332
Comments
Hello, Traceback here. Here is the output generated with the previous script. |
That repo is missing a conf.py, so I tried with the defult one, except setting
And it worked. So wither it's something in your config I don't know about, or it's windows specific. |
It does have a conf.py, see https://github.com/sukiletxe/sukiletxe.github.io/blob/src/conf.py . Actually, I suspect the issue may be due to archives rather than dates, because of my previous comment. I'll test later and report back. I'll also try to test on Linux. |
I've just tried on a Linux machine (specifically Ubuntu Mate), and there Seeing my previous logs, it doesn't surprise me that in Linux there were El 04/06/2016 a las 2:59, Roberto Alsina escribió:
|
If you could provide steps to reproduce this, and what I should look for in the output, much appreciated. |
After cloning the repository and checking out the If you are using Linux (probably any *Nix operating system), you won't get any errors, but the dates will sometimes be messed up (i. e. the On the other hand, if you are using Windows, in addition to this problem, a traceback will eventually show up like the one posted above. The reason for that is that somehow an Unix-like locale is passed to This also happens with archives, if monthly or full archives are selected. Again, only on Windows. |
@sukiletxe I have no idea what "the dates will sometimes be messed up". If you could create a small sample showing the failures, and describe what the failure is, it's much easier for me. |
My site has currently three date formats:
Which would render, for example:
But this is rendered instead in one of the builds in the Spanish subsite: sábado, 2016(e)ko marzok 19 01:16 And in another one: sábado, marzo 19 2016 01:16 These results were all gathered using Windows. It would seem that only the default language is affected, but this showed up in Linux, in the English subsite: Saturday, 2016(e)ko Marchk 19 01:16 Maybe this is not important, but in every build, the tags were rendered, although they weren't changed. @ralsina, is there anything else I can do to try to isolate the problem? |
Ok, I'll take a look today, maybe. On Sun, Jun 12, 2016 at 7:05 AM Sukil Etxenike notifications@github.com
|
@sukiletxe there is a problem in your example config. "default_lang" is not a valid language. If you really have "default_lang" there I suspect that could cause many if not all the symptoms you see. |
Me bad. I didn't notice. Thank you very much. Seems that the El 23/06/2016 a las 2:51, Roberto Alsina escribió:
|
Ok, so this is now Windows-only |
That's right. |
Since I don't have a windows machine available, I am not able to work on this. De-assigning me and removing from next milestone. |
Turns out the `calendar` module still breaks with set/get/set.
My site source: https://github.com/sukiletxe/sukiletxe.github.io/tree/src
Some more data to track down the issue:
Note: Is it necessary to use calendar.different_locale? This may be causing the issue...
The text was updated successfully, but these errors were encountered: