Due to a problem with my package mocha-ui, I encountered a problem with CSON.writeFile.
I have two watchers on a file from two different atom instances, on change, a cson file is written, potential with different content. Quite often, the resulting file is a combination of both, which is of course invalid cson ;)
One of the files is larger, if this gets written first, then a fragment of the larger file is tailing the smaller file which is written a little bit later.
Maybe rather a problem of fs-plus or fs ?