A thought about 'Cannot locate .sources file' message

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

A thought about 'Cannot locate .sources file' message

Igor Stasenko
Hi,

just a thought.. maybe it worth instead of just informing user, also
offer him to download sources file from web?


--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

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

hernanmd
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?
Cheers,

Hernán

2010/12/19 Igor Stasenko <[hidden email]>:

> Hi,
>
> just a thought.. maybe it worth instead of just informing user, also
> offer him to download sources file from web?
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>

Reply | Threaded
Open this post in threaded view
|

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

Igor Stasenko
On 20 December 2010 02:09, Hernán Morales Durand
<[hidden email]> 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.

> Cheers,
>
> Hernán
>
> 2010/12/19 Igor Stasenko <[hidden email]>:
>> Hi,
>>
>> just a thought.. maybe it worth instead of just informing user, also
>> offer him to download sources file from web?
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>>
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

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

laza
2010/12/20 Igor Stasenko <[hidden email]>
On 20 December 2010 02:09, Hernán Morales Durand
<[hidden email]> 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