[Pharo-project] Fuel serialzing not truncating files
Hi Martin, Mariano, I wanted to check the permissions on squeaksource for fuel but squeaksource is about to die. So I drop you a note here (because I don't know a better place). In FLSerializer>>serialize:toFileNamed: you should use StandardFileStream forceNewFileNamed: aFilename ... instead of StandardFileStream fileNamed: aFilename ... Yours does not truncate the file. If your model is shrinking then the file stays of same size with garbage trailing. I didn't test if this introduces read problems but I think truncating is the way to go. Norbert
Hi Norbert, Thank you, it was wrong. We will include your fix will in next version. After releasing Fuel 1.7, we have moved from squeaksource to http://ss3.gemstone.com/ss/Fuel.html, so the fix is there. We always appreciate the feedback, thanks! MartÃn On Mon, Dec 19, 2011 at 3:47 PM, Norbert Hartl <norbert@hartl.name> wrote:
Hi Martin, Mariano,
I wanted to check the permissions on squeaksource for fuel but squeaksource is about to die. So I drop you a note here (because I don't know a better place). In FLSerializer>>serialize:toFileNamed:
you should use
StandardFileStream forceNewFileNamed: aFilename ...
instead of
StandardFileStream fileNamed: aFilename ...
Yours does not truncate the file. If your model is shrinking then the file stays of same size with garbage trailing. I didn't test if this introduces read problems but I think truncating is the way to go.
Norbert
participants (2)
-
Martin Dias -
Norbert Hartl