<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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 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>
<p>I try to screen through what's news in Scilab 6 and bugzilla, and
the similar but not exact issue found is :
<a 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>
<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>
<p>Thanks.</p>
<p>Regards,<br>
Chin Luh</p>
<p><br>
</p>
<p>To reproduce the case, following lines works for Scilab 5.5.2 but
not Scilab 6<br>
</p>
<p>////</p>
<p>lib_path = TMPDIR + "/test1";<br>
mkdir(lib_path);<br>
file_path = lib_path + "/test1.sci";<br>
fd = mopen(file_path, 'wt');<br>
mputl(["function y = test1(x)"<br>
"y = x+1;"<br>
"endfunction"<br>
""<br>
"function y = testa(x)"<br>
"y = x+2;"<br>
"endfunction"], fd);<br>
mclose(fd);<br>
<br>
genlib('libfoo', lib_path);<br>
<br>
lib(lib_path);<br>
<br>
test1(1)<br>
<br>
testa(1)</p>
<p>///<br>
</p>
</body>
</html>