Curiosity: repointing the .sources

Bert Freudenberg bert at impara.de
Thu Jul 21 13:17:35 UTC 2005


Am 21.07.2005 um 07:20 schrieb Ross Boylan:

> This question is just a small curiosity.  I worked around the problem
> with symbolic links.
>
> I started a new image in a new directory and got a complaint about
> being unable to find the .sources.  After some digging I found the
> global variable SourceFiles, a StandardSourceFileArray.  I reset its
> first element to
> MultiByteFileStream readOnlyFileNamed: '/usr/share/squeak/ 
> SqueakV3.sources'.
>
> Though this worked temporarily, every time I saved the image I got the
> same message about sources not being found, and subsequently
> discovered a new instance of StandardSourceFileArray had been created
> (with nils where the files should have been).
>
> I looked through the code and even tried putting some halts in the
> initialize methods for StandardSourceFileArray.  The latter hung up
> the image.
>
> Can anyone explain what's going on?

See the #sourcesName method. You could hardcode any path in there.

The problem is that the Unix VM answers the image directory for  
vmPath, instead of the actual path to the VM. Ian had a reason for  
this, but I can't remember what it was, and if it is still valid.

- Bert -




More information about the Squeak-dev mailing list