Hi Peter, I noticed that the drops module recently stopping running with the error: /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: bad argument #3 to 'format' (number has no integer representation) stack traceback: [C]: in function 'string.format' /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: in upvalue 'get_IM_paths' /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1380: in field 'shadow' [ctxlua]:1: in main chunk This is due to the change in Lua5.3 with respect to floating point numbers. The simplest solution is to change '%d' to '%.0f' at appropriate places. Thanks, Aditya
Hi Aditya, thanks for the hint. I run into the same problem some time ago (also uploaded a new version). Sadly no final fix, because I had a naming problem (number part) with luajit some days later. The current (local) version works so far, but is a bit hackish (no time for a clean solution). I'll look into it on the weekend. Peter Am 10.12.2018 um 18:47 schrieb Aditya Mahajan:
Hi Peter,
I noticed that the drops module recently stopping running with the error:
/home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: bad argument #3 to 'format' (number has no integer representation) stack traceback: [C]: in function 'string.format' /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: in upvalue 'get_IM_paths' /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1380: in field 'shadow' [ctxlua]:1: in main chunk
This is due to the change in Lua5.3 with respect to floating point numbers. The simplest solution is to change '%d' to '%.0f' at appropriate places.
Thanks, Aditya ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Aditya Mahajan
-
Peter Rolf