[Pharo-project] A thought about 'Cannot locate .sources file' message
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.
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 <siguctua@gmail.com>:
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.
On 20 December 2010 02:09, Hernán Morales Durand <hernan.morales@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.
Cheers,
Hernán
2010/12/19 Igor Stasenko <siguctua@gmail.com>:
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.
2010/12/20 Igor Stasenko <siguctua@gmail.com>
On 20 December 2010 02:09, Hernán Morales Durand <hernan.morales@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
participants (3)
-
Alexander LazareviÄ -
Hernán Morales Durand -
Igor Stasenko