<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I did something before posting that
removed a step of the how-to . <font color="#ff0000">Here it is
restored</font>:<br>
<br>
Le 29/05/2017 à 23:19, Samuel Gougeon a écrit :<br>
</div>
<blockquote cite="mid:46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<b>The how-to apply the patch is the following</b>:<br>
<ul>
<li><tt>--> oldd = pwd(); // save your current directory<br>
</tt></li>
<li><tt><font color="#ff0000">--> cd
SCI/modules/atoms/macros/atoms_internals</font><br>
</tt><tt>--> edit("atomsDESCRIPTIONcat.sci", 114)</tt></li>
<li>In the <i>categor</i><i>ies_flat</i> section, replace</li>
</ul>
<font size="-1"><tt><font size="-1"><tt>for
i=1:size(category_names,"</tt><tt>*</tt><tt>"</tt><tt>)</tt><br>
</font> </tt><tt>if</tt><tt> </tt><tt>~</tt><tt> </tt><tt>isfield</tt><tt>(</tt><tt>categories_flat_out</tt><tt>,</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>
</tt><tt>then</tt><br>
<tt> </tt><tt>categories_flat_out</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>
</tt><tt>=</tt><tt> </tt><tt>categories_flat_in_2</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>;</tt><br>
<tt> </tt><tt>end</tt><br>
end</font><br>
with<br>
<font size="-1"><tt><br>
for i=1:size(category_names,"</tt><tt>*</tt><tt>"</tt><tt>)</tt><br>
<tt> </tt><tt>if</tt><tt> </tt><tt>~</tt><tt> </tt><tt>isfield</tt><tt>(</tt><tt>categories_flat_out</tt><tt>,</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>
</tt><tt>then</tt><br>
<tt> </tt><tt>categories_flat_out</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>
</tt><tt>=</tt><tt> </tt><tt>categories_flat_in_2</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>;</tt><br>
<font color="#33cc00"><tt> </tt><tt>else</tt><br>
<tt> </tt><tt>// If the category is already
registered, we concatenate the master</tt><br>
<tt> </tt><tt>// and the new incoming lists of
packages registered in it:</tt><br>
<tt> </tt><tt>tmp_out</tt><tt> </tt><tt>=</tt><tt> </tt><tt>categories_flat_out</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>(</tt><tt>"</tt><tt>packages</tt><tt>"</tt><tt>)</tt><tt>;</tt><br>
<tt> </tt><tt>tmp_in_2</tt><tt> </tt><tt>=</tt><tt> </tt><tt>categories_flat_in_2</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>(</tt><tt>"</tt><tt>packages</tt><tt>"</tt><tt>)</tt><tt>;</tt><br>
<tt> </tt><tt>categories_flat_out</tt><tt>(</tt><tt>category_names</tt><tt>(</tt><tt>i</tt><tt>)</tt><tt>)</tt><tt>(</tt><tt>"</tt><tt>packages</tt><tt>"</tt><tt>)</tt><tt>
</tt><tt>=</tt><tt> </tt><tt>[</tt><tt>tmp_out</tt><tt> </tt><tt>;</tt><tt>
</tt><tt>tmp_in_2</tt><tt>]</tt><tt>;</tt><br>
</font><tt> </tt><tt>end</tt><br>
<tt>end<br>
</tt></font><tt> Then : <br>
</tt>
<ul>
<li><tt>save the modification. In the console:<br>
--> predef clear // unprotect the library name<br>
--> genlib atomsinternalslib // recompile the library<br>
--> cd(oldd) // go back to your working dir<br>
--> atomsSystemUpdate // refresh your atoms list<br>
--> atomsGui() // launch the manager, and enjoy,
for ever :)</tt></li>
</ul>
<p>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.</p>
Hope this can save hours to other ATOMS users and authors<br>
<br>
Samuel</blockquote>
<br>
</body>
</html>