[Scilab-users] ATOMS packages manager: missing packages in categories => FIXED!

Clément David Clement.David at esi-group.com
Tue May 30 11:09:02 CEST 2017


Thanks Samuel for the in-depth understanding of how ATOMS works and the patch. I merged it after a
small edit on the test.

--
Clément

Le mardi 30 mai 2017 à 08:05 +0200, Samuel Gougeon a écrit :
> 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 categories_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
>  
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


More information about the users mailing list