[Pharo-project] Can't load OSProcess in last Pharo Core 1.3
Hi all, I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize. It seems that ImageSegment is not in the StartUpList anymore. Is that normal? Adrien.
I just saw that update 13205 removed ImageSegment from the StartUpList. Replacing Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. by Smalltalk addToStartUpList: ThisOSProcess before: UUIDGenerator. in ThisOSProcess>>initialize would be ok I think (and would have the same result). Adrien. From: abarreau.dev@live.fr To: pharo-project@lists.gforge.inria.fr Date: Fri, 20 May 2011 17:07:04 +0200 Subject: [Pharo-project] Can't load OSProcess in last Pharo Core 1.3 Hi all, I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize. It seems that ImageSegment is not in the StartUpList anymore. Is that normal? Adrien.
Yes that is a workaround but not a final fix, because it depends on a specific class in the system. In squeak, IIRC, it was a discussion about changing ordering of startup items using numbers instead of names of classes in the image, something similiar to the Linux startup infrastructure. But for now it is ok to change it as you said. Cheers El vie, 20-05-2011 a las 17:29 +0200, Adrien BARREAU escribió:
I just saw that update 13205 removed ImageSegment from the StartUpList.
Replacing Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. by Smalltalk addToStartUpList: ThisOSProcess before: UUIDGenerator. in ThisOSProcess>>initialize would be ok I think (and would have the same result).
Adrien.
______________________________________________________________________ From: abarreau.dev@live.fr To: pharo-project@lists.gforge.inria.fr Date: Fri, 20 May 2011 17:07:04 +0200 Subject: [Pharo-project] Can't load OSProcess in last Pharo Core 1.3
Hi all,
I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize.
It seems that ImageSegment is not in the StartUpList anymore. Is that normal?
Adrien.
-- Miguel Cobá http://twitter.com/MiguelCobaMtz http://miguel.leugim.com.mx
On Fri, May 20, 2011 at 5:07 PM, Adrien BARREAU <abarreau.dev@live.fr>wrote:
Hi all,
I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment.
I think that is incorrect. Why would OSProcess requires to be before ImageSegment? OSProcess should be before what it really needs. And if it doesn't need anything then just use #addToStartupList:
in ThisOSProcess class>>initialize.
It seems that ImageSegment is not in the StartUpList anymore. Is that normal?
Adrien.
-- Mariano http://marianopeck.wordpress.com
Adrien people do not realize that you are not maintaining OSProcess :) So we should check and publish a new version of OSProcess with a difference startUpDependency. On May 20, 2011, at 5:07 PM, Adrien BARREAU wrote:
Hi all,
I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize.
It seems that ImageSegment is not in the StartUpList anymore. Is that normal?
Adrien.
I don't remember why I put that dependency on the startup list for OSProcess, but I'll take a look at it this weekend and see if there is a better way. Probably it was just to ensure that file related things were initialized prior to starting OSProcess initialization. Dave On Fri, May 20, 2011 at 08:26:59PM +0200, St?phane Ducasse wrote:
Adrien
people do not realize that you are not maintaining OSProcess :) So we should check and publish a new version of OSProcess with a difference startUpDependency.
On May 20, 2011, at 5:07 PM, Adrien BARREAU wrote:
Hi all,
I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize.
It seems that ImageSegment is not in the StartUpList anymore. Is that normal?
Adrien.
thanks david Stef s On May 20, 2011, at 9:18 PM, David T. Lewis wrote:
I don't remember why I put that dependency on the startup list for OSProcess, but I'll take a look at it this weekend and see if there is a better way. Probably it was just to ensure that file related things were initialized prior to starting OSProcess initialization.
Dave
On Fri, May 20, 2011 at 08:26:59PM +0200, St?phane Ducasse wrote:
Adrien
people do not realize that you are not maintaining OSProcess :) So we should check and publish a new version of OSProcess with a difference startUpDependency.
On May 20, 2011, at 5:07 PM, Adrien BARREAU wrote:
Hi all,
I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize.
It seems that ImageSegment is not in the StartUpList anymore. Is that normal?
Adrien.
This is fixed in both OSProcess and CommandShell on SqueakSource. I found an old comment in my code that says this: "Some images may have a bug in startup list processing. Add this class to a known place in the middle of the list to avoid getting bitten by the bug." So I knew that it was safe now to just use #addToStartUpList: instead of #addToStartUpList:after: This is the reason that people like me with bad memories need to write good comments ;-) Dave On Fri, May 20, 2011 at 03:18:53PM -0400, David T. Lewis wrote:
I don't remember why I put that dependency on the startup list for OSProcess, but I'll take a look at it this weekend and see if there is a better way. Probably it was just to ensure that file related things were initialized prior to starting OSProcess initialization.
Dave
On Fri, May 20, 2011 at 08:26:59PM +0200, St?phane Ducasse wrote:
Adrien
people do not realize that you are not maintaining OSProcess :) So we should check and publish a new version of OSProcess with a difference startUpDependency.
On May 20, 2011, at 5:07 PM, Adrien BARREAU wrote:
Hi all,
I just tried to load OSProcess in the last PharoCore 1.3 (I took it from hudson). It fails when it tries to add ThisOSProcess to the startup list with: Smalltalk addToStartUpList: ThisOSProcess after: ImageSegment. in ThisOSProcess class>>initialize.
It seems that ImageSegment is not in the StartUpList anymore. Is that normal?
Adrien.
participants (5)
-
Adrien BARREAU -
David T. Lewis -
Mariano Martinez Peck -
Miguel Cobá -
Stéphane Ducasse