When an edit to a message file (eg messages/en.json) is reverted via git, the SDK outputs an Unexpected end of JSON input error over project.errors.subscribe(). Subsequent edits to that file don't trigger any updates.
My theory is that the git restore quickly removes & re-adds the file causing the SDK to read an empty JSON file & fs.watch to loose track of updates.
Context
When an edit to a message file (eg
messages/en.json
) is reverted via git, the SDK outputs anUnexpected end of JSON input
error overproject.errors.subscribe()
. Subsequent edits to that file don't trigger any updates.My theory is that the git restore quickly removes & re-adds the file causing the SDK to read an empty JSON file &
fs.watch
to loose track of updates.Proposal
Fix that