Toolboxes menu: not-autoloaded ATOMS modules are not properly loaded when clicked. Patch attached
@sgougeon)
Reported by Samuel GOUGEON (toolboxes.sci (4.03 KB, text/x-csrc)
SCI\modules\core\macros\toolboxes.sci patched
BUG DESCRIPTION:
----------------
When we click in the Toolboxes menu on an ATOMS module not autoloaded, it is loaded by executing its loader.sce, instead of by atomsLoad(module). Hence, it is well loaded but is not correctly registered in the ATOMS table.
By the way, in the menu, ATOMS modules and other contrib modules are not distinguished from each others.
ERROR LOG:
----------
Wrong behavior. Potential mis-working.
HOW TO REPRODUCE THE BUG:
-------------------------
atomsRemove MatrixMarket
atomsInstall MatrixMarket user
atomsAutoloadDel MatrixMarket user
exit(0)
// restart a session
atomsIsInstalled("MatrixMarket", "user) // returns %T
atomsIsLoaded("MatrixMarket", "user") // returns %F
// in the Toolboxes menu: click on "Matrix Market"
atomsIsLoaded("MatrixMarket", "user") // still returns %F ! Should be %T
OTHER INFORMATION:
------------------
Patched attached:
- exec("...loader") replaced with atomsLoad(..)
- Menu: ATOMS modules entries prefixed with "(A)" as for (A)TOMS. Other contribs are just aligned with leading spaces
- Tried to add tooltips on entries, displaying modules summaries => removed ! uimenus do not accept the TooltipString attribute. A pity.