From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80249 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: Any ConTeXt-Lua changes Date: Mon, 14 Jan 2013 14:48:48 +0000 Message-ID: <1E5A50C784A8AD44B420EF5A1E9B2806C81FF0ED@e14mbx20n.Enterprise.emory.net> References: <1E5A50C784A8AD44B420EF5A1E9B2806C81FEF00@e14mbx20n.Enterprise.emory.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358174953 2382 80.91.229.3 (14 Jan 2013 14:49:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 14:49:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 14 15:49:29 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TulLq-00023z-EO for gctc-ntg-context-518@m.gmane.org; Mon, 14 Jan 2013 15:49:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1A7F101EA; Mon, 14 Jan 2013 15:49:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id g8VT25wtXFmJ; Mon, 14 Jan 2013 15:49:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A678D101E5; Mon, 14 Jan 2013 15:49:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF405101E5 for ; Mon, 14 Jan 2013 15:49:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lqSpRBNMsko4 for ; Mon, 14 Jan 2013 15:48:56 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BE16E101E2 for ; Mon, 14 Jan 2013 15:48:56 +0100 (CET) Original-Received: from ndb-mr1.cc.emory.edu (ndb-mr1.cc.emory.edu [170.140.52.40]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0EEmsAv015287 for ; Mon, 14 Jan 2013 15:48:55 +0100 Original-Received: from e14edge1n.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ndb-mr1.cc.emory.edu (8.13.8/8.13.8) with ESMTP id r0EEmnmk022948 for ; Mon, 14 Jan 2013 09:48:49 -0500 Original-Received: from E14CH3W.Enterprise.emory.net (10.240.10.115) by e14edge1n.Emory.Edu (170.140.52.18) with Microsoft SMTP Server (TLS) id 14.2.318.1; Mon, 14 Jan 2013 09:48:48 -0500 Original-Received: from E14MBX20N.Enterprise.emory.net ([fe80::e9ea:8c9d:f94e:7cd3]) by E14CH3W.Enterprise.emory.net ([::1]) with mapi id 14.03.0091.001; Mon, 14 Jan 2013 09:48:48 -0500 Thread-Topic: [NTG-context] Any ConTeXt-Lua changes Thread-Index: AQHN8mCtqsOiY5YlwEOfmI+8XFmS6JhJM+KAgAAHsAA= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] Content-ID: <2F0CCB5FAF2A634A89BDEFB25AD0E0F6@Enterprise.emory.net> X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: r0EEmnmk022948 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.001, required 8, autolearn=disabled, RP_MATCHES_RCVD -0.00) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.52.40; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03ILOMT8Q - 052dbd05f693 - 20130114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80249 Archived-At: The error is basically that a variable is 'nil'. I figure it's my job to t= rack 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 st= rings handled. A typical use would be \defineschedule[test][sched=3D{M--Th 8.05a--9:20,1:45--2:30}] The 'sched' is parsed to {day, interval =3D {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 ni= l 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 er= ror =85 I thought something must have changed, since nothing has changed in the syl= labus file or the module file, since a couple of months ago. If nothing oc= curs to anyone, I'll just have to trace it down. Thanks in any case, wheth= er you can think of something or not. On Jan 14, 2013, at 9:21 AM, Wolfgang Schuster wrote: > > 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 wor= ked last fall. Certainly in August, 2012 and I think at least as late Octo= ber. 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 sen= ds an ID (#1) and a parameters (#2) to Lua >> >> \def\defineschedule{\dodoubleempty\dodefineschedule} >> \def\dodefineschedule[#1][#2]{\ctxlua{userdata.schedule.new("#1","#2")}} > > What=92s the error message, there is no way to tell what=92s wrong with o= nly 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-co= ntext > 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). ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________