atomsInstall and atomsRemove do not update the Toolboxes menu (in STD mode)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
In Scilab Desktop mode, installing or removing a module does not update the Toolboxes menu.
Consequences are:
* After atomsInstall, the installed module is NOT loaded (*) AND does NOT appear in the menu.
Then, it can't be loaded interactively. This is quite unexpected, and should be fixed.
Warning: by default, the installation is always done in autoloading mode, what excludes
the newly installed module from the menu (that presently lists only non-autoloading modules).
So the rule to built the toolboxes list must be changed: not loaded modules must be listed
(as also after atomsInstall), instead of non-autoloading ones.
* After atomsRemove, the Toolboxes menu is not updated either. This can lead to tentatives
to load some removed module, yielding an error.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
atomsInstall engdict
// See the Toolboxes menu: engdict does not appear => ISSUE
atomsAutoloadDel engdict
// Restart Scilab
// engdict is listed in the Toolboxes menu
// Do not load engdict.
atomsRemove engdict // This actually removes the module, since it is not currently used. No reason to postpone the removal to next starting session
// See the menu: engdict is still listed. Try to load it with the menu => error: ISSUE
// Then try the same sequence with a user installation (instead of allusers):
atomsInstall engdict user
// etc