[JW Lua] Problem with temporary file creation
Robert Patterson
robert at robertgpatterson.com
Mon Jul 22 22:25:14 CEST 2024
This error message comes out of the Lua source module loslib.c and is
indeed the result of calling os.tmpname. On Win this is a call to the
standard C function tmpnam. On Mac (I believe) it is a call to the POSIX
function mkstemp. (It's a little hard to tell from reading the code.)
I don't know why there is a difference in behavior between JW and RGP Lua.
It's possible that JW is simply not reporting the error.
On Mon, Jul 22, 2024 at 6:22 AM Jan Angermüller <jan at angermueller.com>
wrote:
> Robert,
>
> a user has reported that he gets the following error message with Perfect
> Layout/macOS in RGP Lua, but not in JW Lua:
> “Script Result: ERROR: unable to generate a unique filename.”
>
> I am not 100% sure as I can't reproduce it, but I assume it comes from
> this command:
> local tmpfile=os.tmpname()
>
> Do you have any idea what could cause this?
>
> I only have the following additional info:
> - Mac Pro 6.1 with OS 12.7.5, 10 years old
> - 30 GB still free on the hard drive
>
> I haven't heard of this problem before.
> But I know that "unique filename..." is an error message associated with
> tmpname().
>
> Jan
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20240722/b1614591/attachment.htm>
More information about the JWLua
mailing list