<div dir="ltr">
<p>Hello Jean-Yves,</p><p></p><p>please let me forward
Samuel Gougeon's answer to your question. <br></p><p></p><p>Best Regards,</p><p>Philipp<br></p><p><br></p><p>Hello Jean-Yves,<br>
    </p>
    <p>
      </p><blockquote type="cite">
        <div style="padding-bottom:1em;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(106,106,106)"><span id="gmail-m_-8380455950680867366d1610978078000-638">Jan 18, 2021; 2:54pm</span><span>
            </span></span><span></span><span>jbaudais[Scilab-users]
            Update library and help</span></div>
        <div id="gmail-m_-8380455950680867366message4041262" style="overflow-x:auto;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span>Hello,</span><br>
          <br>
          <span>   When I modify the file myfunction.sci in my librairie
            "mylib", the</span><br>
          <span>update works as expected when I restard Scilab with the
            following lines</span><br>
          <span>in my .scilab file</span><br>
          <br>
          <span>genlib(SCIHOME+"/mylib/macros")</span><br>
          <span>load(SCIHOME+"/mylib/macros/lib")</span><br>
          <span>add_help_chapter("Librairie perso",SCIHOME+"mylib/jar")</span><br>
          <br>
          <span>I would like to do the update without Scilab exit and
            restart, so I do</span><br>
          <br>
          <span>--> del_help_chapter("Librairie perso")</span><br>
          <span>--> clear mylib myfunction</span><br>
          <span>--> genlib(SCIHOME+"/mylib/macros")</span><br>
          <span>--></span><br>
          <span>help_from_sci(SCIHOME+"/mylib/macros/myfunction.sci",SCIHOME+"/mylib/help/fr_FR");</span><br>
          <span>--> xmltojar(SCIHOME"/mylib/help/fr_FR","Librairie
            perso","fr_FR");</span><br>
          <span>--> load(SCIHOME+"/mylib/macros/lib")</span><br>
          <span>--> add_help_chapter("Librairie
            perso",SCIHOME+"mylib/jar")</span><br>
          <br>
          <span>Excepted genlib and xmltojar, not all the code lines
            work all the time</span><br>
          <span>(some time yes and some time no). </span></div>
      </blockquote>
    
    <p>Do you get any error message that tells that this line is KO
      while by default other ones are OK?<br>
      Please note that the compilation of the documentation can (quite
      often) yield some errors that are <a href="http://bugzilla.scilab.org/7255" target="_blank">NOT displayed in the
        Scilab console</a> (but, on Windows, in the so-called
      consolebox()).<br>
      After such "silent" errors, some involved files <a href="http://bugzilla.scilab.org/8430" target="_blank">can
        stay locked</a> (or simply not updated), and next instructions
      might look as failing.</p>
    <p><br>
      </p><blockquote type="cite">
        <div id="gmail-m_-8380455950680867366message4041262" style="overflow-x:auto;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span>I understand nothing because I not</span><br>
          <span>able to reproduce "deterministically" the success, or
            not! So I think my</span><span> code is wrong.</span><br>
        </div>
      </blockquote>
    
    <p>On Windows, displaying the consolebox("on") when compiling some
      documentation is the best and only way i know to see where are the
      problems and fix them in source files. Without this, we blindly
      work.<br>
    </p>
    I hope this helps.<br>
    Best regards<font color="#888888"><br>
    Samuel Gougeon<br>
    </font><br>
    <p>PS: Thanks to Philipp for forwarding this answer without breaking
      the thread.</p>
    <p>----------------------------------</p>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 18. Jan. 2021 um 14:55 Uhr schrieb Jean-Yves Baudais <<a href="mailto:Jean-Yves.Baudais@insa-rennes.fr">Jean-Yves.Baudais@insa-rennes.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
   When I modify the file myfunction.sci in my librairie "mylib", the <br>
update works as expected when I restard Scilab with the following lines <br>
in my .scilab file<br>
<br>
genlib(SCIHOME+"/mylib/macros")<br>
load(SCIHOME+"/mylib/macros/lib")<br>
add_help_chapter("Librairie perso",SCIHOME+"mylib/jar")<br>
<br>
I would like to do the update without Scilab exit and restart, so I do<br>
<br>
--> del_help_chapter("Librairie perso")<br>
--> clear mylib myfunction<br>
--> genlib(SCIHOME+"/mylib/macros")<br>
--> <br>
help_from_sci(SCIHOME+"/mylib/macros/myfunction.sci",SCIHOME+"/mylib/help/fr_FR");<br>
--> xmltojar(SCIHOME"/mylib/help/fr_FR","Librairie perso","fr_FR");<br>
--> load(SCIHOME+"/mylib/macros/lib")<br>
--> add_help_chapter("Librairie perso",SCIHOME+"mylib/jar")<br>
<br>
Excepted genlib and xmltojar, not all the code lines work all the time <br>
(some time yes and some time no). I understand nothing because I not <br>
able to reproduce "deterministically" the success, or not! So I think my <br>
code is wrong.<br>
<br>
What is the good code to update library and help after changing a file?<br>
<br>
-- <br>
Jean-Yves Baudais<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>