The error is basically that a variable is 'nil'. I figure it's my job to track down why -- the code is long and boring and sometimes complicated. I just thought if there's been some change in how parameters are passed or strings handled. A typical use would be
\defineschedule[test][sched={M--Th 8.05a--9:20,1:45--2:30}]
The 'sched' is parsed to {day, interval = {start, stop}} pairs and stored in a table. It seems the interval table is nil now, but it used to work. Here's the actual error:
! LuaTeX error [string "\directlua "]:529: attempt to index field '?' (a nil value)
stack traceback:
[string "\directlua "]:529: in function 'dotablerow'
[string "\directlua "]:658: in function 'tablefromschedule'
[string "\directlua "]:1: in main chunk.
system > tex > error on line 58 in file Syllabus112.tex: LuaTeX error …
I thought something must have changed, since nothing has changed in the syllabus file or the module file, since a couple of months ago. If nothing occurs to anyone, I'll just have to trace it down. Thanks in any case, whether you can think of something or not.
On Jan 14, 2013, at 9:21 AM, Wolfgang Schuster
Am 14.01.2013 um 15:08 schrieb "Rogers, Michael K"
: Hi,
I wrote Lua routines a while back that parse a string representation of a weekly schedule to create a table representation of the schedule. It worked last fall. Certainly in August, 2012 and I think at least as late October. I just tried it again, but it failed; and it failed on the same file it worked on before.
Before I roll up my sleeves and starting digging through the code, I was wondering if something had changed in the last two or three months that I should know about. No MWE for you, but here's the ConTeXt command that sends an ID (#1) and a parameters (#2) to Lua
\def\defineschedule{\dodoubleempty\dodefineschedule} \def\dodefineschedule[#1][#2]{\ctxlua{userdata.schedule.new("#1","#2")}}
What’s the error message, there is no way to tell what’s wrong with only these two code lines.
Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments).