I was a bit surprised by the output of gst-load -v OnlineTester
when I tried loading my current package: Loading package Sockets Loading package Sport Loading package Iconv Loading package Magritte Loading package Iliad-Core Loading package Iliad-More-Widgets Loading package Iliad-More-Magritte Loading package Swazoo Loading package Iliad-More-Examples Loading package Iliad-More Loading package Iliad-Swazoo Loading package Iliad Loading package OnlineTester All but the last package are sitting in ~/.st, but even after RTFM I did not find where it says that gst-load gobbles all of them up. I had expected to only load the contents of the last, OnlineTester.star Bug or Feature? s. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Stefan Schmiedl wrote:
> I was a bit surprised by the output of gst-load -v OnlineTester > when I tried loading my current package: > > Loading package Sockets > Loading package Sport > Loading package Iconv > Loading package Magritte > Loading package Iliad-Core > Loading package Iliad-More-Widgets > Loading package Iliad-More-Magritte > Loading package Swazoo > Loading package Iliad-More-Examples > Loading package Iliad-More > Loading package Iliad-Swazoo > Loading package Iliad > Loading package OnlineTester > > All but the last package are sitting in ~/.st, but even after > RTFM I did not find where it says that gst-load gobbles all > of them up. I had expected to only load the contents of the > last, OnlineTester.star gst-load loads all dependencies of your packages (the <prereq> tags' contents). I don't remember them all, but definitely Sport depends on Sockets, Swazoo depends on Sport, Iliad-Swazoo depends on Swazoo, Iliad-More-Magritte depends on Magritte, and your own package depends on Iliad and so on. Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
On Fri, 26 Jun 2009 07:45:48 +0200
Paolo Bonzini <[hidden email]> wrote: > Stefan Schmiedl wrote: > > I was a bit surprised by the output of gst-load -v OnlineTester > > when I tried loading my current package: > > > > Loading package Sockets > > Loading package Sport > > Loading package Iconv > > Loading package Magritte > > Loading package Iliad-Core > > Loading package Iliad-More-Widgets > > Loading package Iliad-More-Magritte > > Loading package Swazoo > > Loading package Iliad-More-Examples > > Loading package Iliad-More > > Loading package Iliad-Swazoo > > Loading package Iliad > > Loading package OnlineTester > > > > All but the last package are sitting in ~/.st, but even after > > RTFM I did not find where it says that gst-load gobbles all > > of them up. I had expected to only load the contents of the > > last, OnlineTester.star > > gst-load loads all dependencies of your packages (the <prereq> tags' > contents). I don't remember them all, but definitely Sport depends > on Sockets, Swazoo depends on Sport, Iliad-Swazoo depends on Swazoo, > Iliad-More-Magritte depends on Magritte, and your own package depends > on Iliad and so on. > Rest assured I forgot to mention the contents of the package.xml file: <package> <name>OnlineTester</name> <namespace>OnlineTester</namespace> <filein>models/OTFrage.st</filein> <filein>models/OTInfo.st</filein> <filein>models/OTAufgabe.st</filein> <filein>models/OTTest.st</filein> <file>models/OTFrage.st</file> <file>models/OTInfo.st</file> <file>models/OTAufgabe.st</file> <file>models/OTTest.st</file> <file>doc/einTest.st</file> </package> _No_ prereqs at all, still the ~/.st/*.star got loaded. s. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
In reply to this post by Paolo Bonzini-3
On Fri, 26 Jun 2009 07:45:48 +0200
Paolo Bonzini <[hidden email]> wrote: > gst-load loads all dependencies of your packages (the <prereq> tags' > contents). I don't remember them all, but definitely Sport depends > on Sockets, Swazoo depends on Sport, Iliad-Swazoo depends on Swazoo, > Iliad-More-Magritte depends on Magritte, and your own package depends > on Iliad and so on. ARRRGGHHH... I found the cause of my trouble ... a residue of testing my package loader script sat, undoubtedly grinning broadly all the time, in ~/.st/OnlineTester.star. So no matter what I had in the current directory, the "old" package was loaded first. Is the package lookup sequence "global, user, image dir" open for discussion? Is there an easy way to change it? I guess I'm the kind of guy who likes to have "." in front of PATH ... s. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
> I found the cause of my trouble ... a residue of testing my package > loader script sat, undoubtedly grinning broadly all the time, in > ~/.st/OnlineTester.star. So no matter what I had in the current directory, > the "old" package was loaded first. > > Is the package lookup sequence "global, user, image dir" open for discussion? > > Is there an easy way to change it? > > I guess I'm the kind of guy who likes to have "." in front of PATH ... Is your image local or global? It may be that the global directory is the same as the image directory. Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
On Fri, 26 Jun 2009 12:33:52 +0200
Paolo Bonzini <[hidden email]> wrote: > > > I found the cause of my trouble ... a residue of testing my package > > loader script sat, undoubtedly grinning broadly all the time, in > > ~/.st/OnlineTester.star. So no matter what I had in the current > > directory, the "old" package was loaded first. > > > > Is the package lookup sequence "global, user, image dir" open for > > discussion? > > > > Is there an easy way to change it? > > > > I guess I'm the kind of guy who likes to have "." in front of > > PATH ... > > Is your image local or global? It may be that the global directory > is the same as the image directory. At that point I am using $ gst-load -viI ot.im OnlineTester and I honestly don't know if that is running system or local :-) Do I hear you saying that if gst-load were running the system image, then OnlineTester.star would not be found in ".", hence the one at ~/.st was used? s. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
> $ gst-load -viI ot.im OnlineTester
> > and I honestly don't know if that is running system or local :-) > > Do I hear you saying that if gst-load were running the system image, > then OnlineTester.star would not be found in ".", hence the one at > ~/.st was used? I think so (but without double checking in the code...). Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Free forum by Nabble | Edit this page |