<div dir="ltr"><div style>Hi,</div><div style><br></div>Trying to use the readData method on array of files into variables seems to be failing. Following is an example reproducing the failure:<div><br></div><div><div>$ cat test2.swift</div>
<div>type file;</div><div><br></div><div>app (file _out) genrand(){</div><div>    rand stdout=@_out;</div><div>}</div><div><br></div><div>file out[]<simple_mapper; location="outdir", prefix="o", suffix=".out" > ;</div>
<div>int val[];</div><div><br></div><div>foreach i in [0:9]{</div><div>    out[i]=genrand();</div><div>    val[i]=readData(out[i]);</div><div>}</div><div><br></div><div style>App rand is mapped to a simple random number generator:</div>
<div style><br></div><div style><div>$ cat rand.sh</div><div>#!/bin/bash</div><div><br></div><div>echo $RANDOM</div><div><br></div><div><br></div><div style>The error message I get on running this is:</div><div style><br>
</div><div style><div>Could not start execution</div><div><span class="" style="white-space:pre">       </span>Failed to convert .swiftx to .kml for test2.swift</div><div><span class="" style="white-space:pre">  </span>no such attribute: partialClose in template context [callInternal]</div>
<div><br></div><div style>I tested readData on scalars which is working ok. Also, if I remove the readData line, the script behaves ok.</div><div><br></div><div style>Thanks,</div></div></div>-- <br><font face="'courier new', monospace">Ketan</font><br>
<br>
</div></div>