Hi Stef,
I appreciate your sense of responsibility to solving
this problem in the face of repeated difficulties.
I have had a hard time helping because by the time I
see the image the changeset showing the load script
has disappeared.
What you did below looks like it should work. I have
tried two simpler version of it.
And that has confirmed the problem.
>From a fresh version of 7058 I wrote out the
Scriptloader>>updateFrom7058 method with the
postscript
and read it back in. (That left the problem intact.)
ChangeSet current was still moribund.
Then I tried the same thing with just the
(ChangeSet newChanges: (ChangeSet
> assuredChangeSetNamed: 'Unnamed')) .
in the postscript.
Same problem.
And of course it works fine either way from a doit
outside of the cs.
So you are dealing with one of the trickier bugs its
ever been my pleasure to come across. ChangeSet must
be doing something special to not allow the updating
of current from within a changeset postscript. I will
look into it some more.
Again my appreciation for your willingness to work on
this.
--- stéphane ducasse <
[hidden email]> wrote:
> I created a cs to load a new script to execute the
> script of jerome
> and it does not work
>
> now if I execute the expression in a transcript it
> works.
>
>
> There is really a problem
>
> updateFrom7058
> "self new updateFrom7058"
>
>
> (ChangeSet newChanges: (ChangeSet
> assuredChangeSetNamed: 'Unnamed')) .
>
>
> "Postscript:
> Leave the line above, and replace the rest of this
> comment by a
> useful one.
> Executable statements should follow this comment,
> and should
> be separated by periods, with no exclamation points
> (!).
> Be sure to put any further comments in
> double-quotes, like this one."
>
> |repository|
> repository := MCHttpRepository
> location:
> '
http://source.squeakfoundation.org/39a'> user: ''
> password: ''.
> (repository
> loadVersionFromFileNamed:'ScriptLoader-sd.310.mcz')
> load.
> ScriptLoader new updateFrom7058.
>
> A simple one but there is something really wrong
> there.
> Stef
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com