[Scilab-users] ATOMS packages manager: missing packages in categories => FIXED!
Samuel Gougeon
sgougeon at free.fr
Tue May 30 08:05:37 CEST 2017
I did something before posting that removed a step of the how-to . Here
it is restored:
Le 29/05/2017 à 23:19, Samuel Gougeon a écrit :
> *The how-to apply the patch is the following*:
>
> * --> oldd = pwd(); // save your current directory
> * --> cd SCI/modules/atoms/macros/atoms_internals
> --> edit("atomsDESCRIPTIONcat.sci", 114)
> * In the /categor//ies_flat/ section, replace
>
> for i=1:size(category_names,"*")
> if~isfield(categories_flat_out,category_names(i))then
> categories_flat_out(category_names(i))=categories_flat_in_2(category_names(i));
> end
> end
> with
>
> for i=1:size(category_names,"*")
> if~isfield(categories_flat_out,category_names(i))then
> categories_flat_out(category_names(i))=categories_flat_in_2(category_names(i));
> else
> // If the category is already registered, we concatenate the master
> // and the new incoming lists of packages registered in it:
> tmp_out=categories_flat_out(category_names(i))("packages");
> tmp_in_2=categories_flat_in_2(category_names(i))("packages");
> categories_flat_out(category_names(i))("packages")=[tmp_out;tmp_in_2];
> end
> end
> Then :
>
> * save the modification. In the console:
> --> predef clear // unprotect the library name
> --> genlib atomsinternalslib // recompile the library
> --> cd(oldd) // go back to your working dir
> --> atomsSystemUpdate // refresh your atoms list
> --> atomsGui() // launch the manager, and enjoy, for ever :)
>
> The issue was that as soon as a first package was installed from a
> category, it canceled the listing of all other packages proposed in
> its categories. So, the bug appeared or not for a category depending
> on packages already installed.
>
> Hope this can save hours to other ATOMS users and authors
>
> Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170530/bdf90aea/attachment.htm>
More information about the users
mailing list