<div dir="auto">Thanks Ken. I had seen that message but (wrongly, I guess) assumed something would already be in place to deal with such situations. The good news is that this implies that the package loader works asynchronously...?...</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue., Mar. 21, 2023, 3:02 p.m. , <<a href="mailto:ken.dickey@whidbey.com">ken.dickey@whidbey.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2023-03-19 16:19, Alexandre Rousseau via Cuis-dev wrote:<br>
<br>
> My startup configuration script (thanks Hilaire) includes these lines:<br>
> <br>
>> Feature require: #'Theme-Themes'.<br>
>> ClassicTheme beCurrent.<br>
> <br>
> Command line launching of Squeak and image + script reports this error:<br>
> <br>
>> 2023-03-19T19:10:00.886 process:40 709851 UndefinedObject>>DoIt <br>
>> (ClassicTheme is Undeclared)<br>
>> 2023-03-19T19:10:00.886 process:40 709851 Package Theme-Themes <br>
>> successfully installed<br>
> <br>
> Clearly, the feature is not yet loaded when I attempt to send a message <br>
> to ClassicTheme.<br>
> <br>
> Feature doesn't seem to dispatch events when it is done "requiring" a <br>
> package, so I am wondering how you would address this.<br>
<br>
Alexandre,<br>
<br>
Not sure what your context is, but note that you can subclass <br>
CodePackage and define #postPackageInstall (and/or prePackageInstall) to <br>
do pre-install checks and post-install actions.<br>
<br>
Browse code for example usage in:<br>
  EnhancedText/Unicode/<a href="http://UniCodesTrueType.pck.st" rel="noreferrer noreferrer" target="_blank">UniCodesTrueType.pck.st</a><br>
<br>
HTH,<br>
-KenD<br>
</blockquote></div>