typedlua icon indicating copy to clipboard operation
typedlua copied to clipboard

tlchecker.lua:2009: wrong number of arguments to 'insert'

Open daurnimator opened this issue 7 years ago • 4 comments

lua: /usr/share/lua/5.3/typedlua/tlchecker.lua:2009: wrong number of arguments to 'insert'
stack traceback:
	[C]: in function 'table.insert'
	/usr/share/lua/5.3/typedlua/tlchecker.lua:2009: in function 'typedlua.tlchecker.error_msgs'
	/usr/bin/tlc:140: in main chunk
	[C]: in ?

https://github.com/andremm/typedlua/blob/002f983936cfb08cbebe52ff0330e2d68b9ece9b/typedlua/tlchecker.lua#L2009

daurnimator avatar Aug 26 '18 13:08 daurnimator

Could you provide more context around the error (ideally, a source file that compiled with tlc triggers it).

mascarenhas avatar Aug 27 '18 14:08 mascarenhas

I dug into it a little more: the issue was caused by me providing a non-seekable file to tlc. When it tried to get the source line it fails as it can't re-read the file.

daurnimator avatar Aug 27 '18 15:08 daurnimator

Thanks! Can you pull from the branch referenced in this issue to check if it fixes your issue?

mascarenhas avatar Aug 27 '18 15:08 mascarenhas

Indeed your branch seems to fix things! I tested with the simple:

./tlc  -o /dev/stdout <(echo 'local hi:number = "foos"')

daurnimator avatar Nov 07 '18 12:11 daurnimator