[squeak-dev] A thought about 'Cannot locate .sources file' message

Alexander Lazarević laza at blobworks.com
Mon Dec 20 04:16:41 UTC 2010


2010/12/20 Igor Stasenko <siguctua at gmail.com>

> On 20 December 2010 02:09, Hernán Morales Durand
> <hernan.morales at gmail.com> wrote:
> > Yes, or locate it in a directory and/or copy to the current one. By
> > the way, it could be configured a location for just having only one
> > sources file?
>
> +1 . it would be nice to be able to specify a system-wide location for
> .sources files,
> so any image could look for them at this place first than looking at
> current directory.
>

First the sources are searched at the vmPath, then at the imagePath and
finally at the defaultPath (which could be the same as the imagePath, see
[1]).
On Unix the vmPath will be no option for a central directory to hold the
sources files, because it's usually /usr/bin, unless you have installed your
vm locally in your home directory.
I think it would be nice to have a vm SystemAttribute to hold the sources
path. This could be defined during installation, overridden by .ini files,
command line switches, props or whatever and always default to vmPath if no
other info is available. But the reception for this change wasn't so good as
far as I remember, maybe mainly because the issue isn't so pressing while
running on Windows/MacOS (or that everything that defines the concept of
having a sources file should be completely on the image side).

Alex

[1] FileDirectory class openSources: fullSourcesName forImage: imageName
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101220/770c6bd4/attachment.htm


More information about the Squeak-dev mailing list