[squeak-dev] Writing World to file fails because ReferenceStream>project is nil

David T. Lewis lewis at mail.msen.com
Mon Dec 27 21:37:48 UTC 2021


On Sun, Dec 26, 2021 at 05:24:08PM -0800, tim Rowledge wrote:
> Whilst looking to fix something else, I came across TheWorldMenu>>#saveWorldInFile. When trying it (World Menu->changes->save world as morph file) the code fails because HandMorph>>#objectForDataStream: sends 
> `refStrm project world hands` 
> and refStrm project is nil. I very faintly recall some work having been done to change World/Project stuff, so maybe that missed handling this method.
> 
> Also, when I tried with a debugger open there was as different issue relating to the selected context in the debugger not being in the ImageSegment, for whatever that is worth.
> 

It fails in the same way in Squeak 3.6.

HandMorph>>objectForDataStream: appears to have been used for
sharing worlds between images in some scenario in which the
world can have more than one hand. The method stamp says 2000.

Dave


More information about the Squeak-dev mailing list