Closed georgd closed 3 years ago
@fbennett could you please have a look at this? I’m trying to create a proper style-module for DE but nothing’s working there and I want to exclude an issue with the abbreviations first.
Sorry for missing this. Will take a look right away.
On Tue, Jan 26, 2021, 22:29 Georg Mayr-Duffner notifications@github.com wrote:
@fbennett https://github.com/fbennett could you please have a look at this? I’m trying to create a proper style-module for DE but nothing’s working there and I want to exclude an issue with the abbreviations first.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Juris-M/legal-resource-registry/issues/37#issuecomment-767540848, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASMSWNL7SKNUPMWUB63UTS327RVANCNFSM4WDEUX4A .
I merged the PR and it works here. I also tried pulling the master branch from your fork, and that works as well. From the code of the script, it looks like it's failing on ./juris-maps/versions.json
in your data directory. The script reads and parses that file, updates it, then serializes it back to disk. The script should handle a parse failure by rebuilding the file, but it currently doesn't. Check the file, if it's not good JSON, that's our issue, and I'll fix the script to handle it properly.
I've pushed some changes to the script that should catch any parsing errors, both in juris-maps/versions.json
and in map files that are not overwritten by the call to the script. The error messages should provide some meaningful guidance.
The revision should help, but the logic isn't very elegant for global updates, where it repeatedly parses all files when updating each jurisdiction. I'll look at cleaning that up, but the current master should work for you.
I've pushed another (and final, pending feedback) revision to rationalize updates. With the latest commits, it validates all map files, regenerating versions.json
if necessary, then updates only the files that will change.
Great, thank you! the error is gone now.
Something’s going wrong with my current version of juris-de-desc.json (see PR).
I can‘t find anything invalid – neither non-ASCII-chars in keys, nor illegal whitespace.