<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Le 16/02/2017 à 06:04, Tan Chin Luh a écrit :<br>
    </div>
    <blockquote
      cite="mid:facfd151-75a3-e846-6112-c154f7f70711@tritytech.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <p>Hi, <br>
      </p>
      <p>I am trying to troubleshoot the issue on the guibuilder in
        Scilab 6 windows platform as reported by :</p>
      <p><a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://atoms.scilab.org/toolboxes/guibuilder/3.1#comment2713">https://atoms.scilab.org/toolboxes/guibuilder/3.1#comment2713</a></p>
      <pre class="atoms_news_client_content" style="font-size: 11.115px; padding: 4px; color: rgb(91, 89, 80); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">-----------</pre>
      <pre class="atoms_news_client_content" style="font-size: 11.115px; padding: 4px; color: rgb(91, 89, 80); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">I used guibuilder in 5.5.2 and was able to create a gui, open an existing gui.  I just 
installed it for 6.0 and the guibuilder launches, but am unable to create anything, i 
get the error "Undefined variable: draw_uicontrol5" for anything that I click on
to 
create. Or even to open an existing GUI.
-----------
</pre>
      <p>I tried to reproduce the error in a simpler manner:  <br>
      </p>
      <p>1. Write a simple sci file with 2 functions in it.</p>
      <p>function y = test1(x)<br>
            y = x+1;<br>
        endfunction<br>
        <br>
        function y = testa(x)<br>
            y = x+2;<br>
        endfunction</p>
      <p>2. Put the file in a folder and use genlib to generate the lib</p>
      <p>3. Load the library and call "test1(1)" and "testa(1)"</p>
      <p>In Scilab 5.5.2, both functions are callable, but in Scilab 6,
        only test1 is, and calling testa will either return error
        "undefined variable" or just crashed the Scilab. <br>
      </p>
      <p>Is this meant to behave this way under "new parser and new
        core"? <br>
      </p>
    </blockquote>
    <br>
    AFAIK : yes.<br>
    Now, only the first function defined in the file (or the one whose
    name matches the file name? To be tested) is public. All other ones
    are private (their domain is unclear: (likely) only the main
    function? or the whole library it belongs to? To be tested and
    documented). <br>
    One of the (nice) consequences is that, now none of the private
    functions appears in the whos list of defined functions. They were
    formerly rather spamming the list.<br>
    <br>
    <blockquote
      cite="mid:facfd151-75a3-e846-6112-c154f7f70711@tritytech.com"
      type="cite">
      <p> </p>
      <p>I try to screen through what's news in Scilab 6 and bugzilla,
        and the similar but not exact issue found is : <a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://bugzilla.scilab.org/show_bug.cgi?id=14525">http://bugzilla.scilab.org/show_bug.cgi?id=14525</a></p>
    </blockquote>
    <br>
    You are right, i don't think it is already correctly documented.
    There were some discussions on users@ about this change since
    mid-2015, but since Scilab 5.5.2, the genlib() help page was
    improved for Scilab 5, without being updated for Scilab 6.<br>
    <br>
    <blockquote
      cite="mid:facfd151-75a3-e846-6112-c154f7f70711@tritytech.com"
      type="cite">
      <p>I try to avoid breaking out all the functions to separate files
        as it will be tones of files in the folder then. <br>
      </p>
    </blockquote>
    <br>
    I am afraid that, if each of your functions is -- say -- a callback,
    it must be public, and then now it requires to be defined in a
    separate .sci file.<br>
    <br>
    Regards<br>
    Samuel<br>
    <br>
  </body>
</html>