Closed trvrb closed 7 years ago
it never happened for me... maybe some mac json lib is buggy
Interesting that this hasn't been a problem for you. I thought that indent = 1
might have been a solution, however, I'm getting the same occasional behavior. I'll continue to investigate.
do you get any error msg? one possible explanation could be a max_recursion problem. this can be set in sys
It fails silently. I'll check out max_recursion.
This bug happened to me too.
Thanks for letting us know @YuliaZhou.
@YuliaZhou we haven't encountered this problem in a long time and our best guess is that it is caused by the json lib (and in fact it always worked for me on linux).
Hasn't been a problem for a while. Closing.
JSON export in
process.py
, methodexport_to_auspice
/write_json
, still occasionally fails. Seemingly randomly, it will only export ~half the JSON file.I'm not sure that this line is actually doing its job:
However, I think but I'm not certain that this bug goes away when setting
indent = 1
or whatever instead ofNone
. If this is indeed the case, a simple fix, while maintaining minified JSONs would be to export to auspice withindent = 1
, but then have Jekyll minify the JSONs when compiling. There are plug-ins, likejekyll-press
that do basically this already.