Closed seandenigris closed 2 years ago
Those docs are outdated for version 4. You should use #at:putAdditionalObject:
. See FLFullHeaderSerializationTest>>testJustMaterializeHeader
and #testAdditionalObjects
for reference. From the top of my head I don't see why the image should hang but maybe there's a recursion issue there.
This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.
Not stale.
I’ll try again in 5.0.1
This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.
The following works in P9 and GT 0.8.1395 with Fuel 5.0.1:
filePath := (FileLocator imageDirectory / 'obj.fuel') fullName.
FLSerializer new
at: #spFormatVersion
putAdditionalObject: '1.0.3';
object: 3;
filePath: filePath;
serialize.
materialization := FLMaterializer new
filePath: filePath;
materialize.
Thanks @seandenigris.
Following the docs, I did:
but,
FLSerializer
DNU#header
. I noticed thatFLSerializer
implements#at:putAdditionalObject:
, so I tried that, but my image hung.