Indented volume list

John Albert Fehr jfehr at sprintmail.com
Sun Apr 5 22:24:19 UTC 1998


Greetings,

Reinier van Loon wrote:

> Folks,
>
> shame on me. Don't use the changes in the previous message. It will make
> sure you can't save anything anymore after a save (because the changes file
> gets opened using oldFileNamed:). The new version is included below. If you
> did file in the change set and you did a save here is how you can recover
> within the image:
>
> 1. change false back into true in the method StandardFileStream
> class>>oldFileNamed:
> 2. after the accept you will get a debugger message (Error attempt to write
> to a read-only file)
>     (but the byte codes are there!)
> 3. close the error screen
> 4. evaluate the following in a workspace: SourceFiles do: [ :each | each
> close; open ].
> 5. this will lead to an error
> 6. close the error screen
> 7. everything should be fine now.
>
> Sorry for the inconvenience.
>
> Reinier.

[new code version deleted]

i got caught by the #oldFileNamed: bug.  there was one additional step,
let's call it 3a.  open an inspector on SourceFiles and make sure that the
rwmode for each of the StandardFileStreams (.changes and .image) is set
to true.  then, evaluate step 4 and proceed.  if i didn't make that change
to the respective rwmodes, i continued to get the file error.

i am not clear on why the close/open step didn't seem to reset these
Booleans -- i just made the patch to save the image and i plan to
investigate the "whys" later.

thanks for the indenting feature, Reinier,  -John

************************************************************************
John Albert Fehr
Ranch to Market, Inc.
PO Box 162404
Austin, Texas  78716-2404
(512) 472-6726
jfehr at sprintmail.com
************************************************************************





More information about the Squeak-dev mailing list