[Cuis-dev] handling message "There is a newer version that currently loaded"
Mariano Montone
marianomontone at gmail.com
Thu Oct 31 11:44:11 PDT 2024
El 31/10/24 a las 13:21, Mark Volkmann via Cuis-dev escribió:
> On Mon, Oct 28, 2024 at 7:53 PM Juan Vuletich <juan at cuis.st> wrote:
>
> Hi Mark,
>
> On 10/28/2024 7:54 PM, Mark Volkmann via Cuis-dev wrote:
>> When installing updates made in the Cuis-Smalltalk-Dev
>> repository, it sometimes outputs messages in the Transcript that
>> say "Package: SomeName. There is a newer version than the
>> currently loaded."
>>
>> It seems that I need to open an "Installed Packages" window,
>> delete the package, and then reinstall it with "Feature require:
>> SomeName". Is it correct that I must delete the package before I
>> can install an updated version?
>
> No, just reinstall it. That's all.
>
>
> This doesn't match the behavior I am seeing. For example, after
> selecting "Changes ... Install New Updates", I got a message in the
> Transcript that said "Package ODBC. There is a newer version than
> currently loaded". So I evaluated "Feature require: 'ODBC'" in a
> workspace and it seems nothing happened. Then I deleted the package
> from an "Installed Packages" window and reevaluated the "Feature
> require:". That gave me the updates.
Feature require does not do a package install if the some version of the
package is already loaded. Feature require checks if the feature is
already present, if not, looks for a package and installs it, and
registers it as "feature". When evaluated a second time, the feature is
already present, so there's no package install to perform. If you want
to refresh a package you need to explicitly install it from its file. No
need to delete it first, just install the package again from its file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241031/da67f5ab/attachment-0001.htm>
More information about the Cuis-dev
mailing list