-
Notifications
You must be signed in to change notification settings - Fork 23
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
Invalid JSON produced in reffy-reports #219
Comments
It's suspicious that the file is 634 bytes both before and after the change, and that the first 16 lines after the corruption are valid JSON. It looks a bit like only the first part of the file was modified. It doesn't look like that's the default behavior of https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback however... |
I'm a bit lost here. As far as I can tell, the |
Ah, it's not |
Sorry, I pasted the wrong name! |
What happens is the following:
I'll make sure such clashes can no longer happen. |
Yay, thanks for the detailed explanation and fix, @tidoust! |
w3c/webref@44cfbb4 broke ed/css/css-conditional.json in reffy-reports, making it no longer valid JSON.
This was the first update made using reffy commit 5414c43 and the recent changes then mighty have clues:
https://github.com/tidoust/reffy/commits/5414c43af99852c5b9dd228f01d7bb5a8730863e
#179 seems like the most plausible cause to me.
@tidoust
The text was updated successfully, but these errors were encountered: