From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88528 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Enrique_Jim=C3=A9nez_Gallego?= Newsgroups: gmane.comp.tex.context Subject: MKIV bibliography: attempt to index local 'used' (a nil value) Date: Fri, 22 Aug 2014 10:19:37 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408695644 6674 80.91.229.3 (22 Aug 2014 08:20:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2014 08:20:44 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 22 10:20:40 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKk4f-0008T5-Ap for gctc-ntg-context-518@m.gmane.org; Fri, 22 Aug 2014 10:19:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7B8D1021E for ; Fri, 22 Aug 2014 10:19:52 +0200 (CEST) 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 oKSHRFqBmavv for ; Fri, 22 Aug 2014 10:19:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 53BCA10220 for ; Fri, 22 Aug 2014 10:19:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B6BA101E3 for ; Fri, 22 Aug 2014 10:19:42 +0200 (CEST) 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 wSWOiBGYYWky for ; Fri, 22 Aug 2014 10:19:39 +0200 (CEST) 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 84C15101E1 for ; Fri, 22 Aug 2014 10:19:39 +0200 (CEST) Original-Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7M8Jbrf006385 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 22 Aug 2014 10:19:37 +0200 Original-Received: by mail-wi0-f181.google.com with SMTP id bs8so9553237wib.14 for ; Fri, 22 Aug 2014 01:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=m5GjwTlqJqdaFhbLfFr7xdxXQoY2ZONbBTLHZWqLC7k=; b=E3F+sHHmjDnPO1IS335iH6BIXdIlTGAhjqUs2wlevg0o5KDuROp1UqlZ55McB19mq/ aevb7iVHdb0SNhR19xyEBu+FDv81x0noc5dEIiWdRLE9xn6sMAJn/kuwiSf7aiAAy1C2 N5tDjz8sMcO3XxDG9AxOcNqNMSpeti0OrRZCQGSxRVgxVYVz5FqNbpitn/1QMjcTAZ7B C68vTyor7tgjlwPfcGVwRuNhwSsyaPTL7/DpTch+9cMYqW3UPiEc0jnxs0eP1ZrBO5eH ZuiS1NtrySvs/0aC1sul9V4JtFl3HX2OOurgpSAH2LpZr9qjg3jmGtsScYHc8pSFviSG /6Ig== X-Received: by 10.180.39.34 with SMTP id m2mr27178013wik.80.1408695577447; Fri, 22 Aug 2014 01:19:37 -0700 (PDT) Original-Received: by 10.194.249.38 with HTTP; Fri, 22 Aug 2014 01:19:37 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03MFIjBTE - f9901db25877 - 20140822 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:88528 Archived-At: Hi, I get the following error with the latest beta (Arch Linux, Lua 5.2.3): ConTeXt ver: 2014.08.21 09:56 MKIV beta fmt: 2014.8.22 int: english/english .../context/tex/texmf-context/tex/context/base/publ-ini.lua:650: attempt to index local 'used' (a nil value) stack traceback: .../context/tex/texmf-context/tex/context/base/publ-ini.lua:650: in function 'enhance' .../context/tex/texmf-context/tex/context/base/publ-dat.lua:151: in function '__index' .../context/tex/texmf-context/tex/context/base/publ-ini.lua:1349: in function 'btxpreparelistentries' [\directlua]:1: in main chunk 1 \usebtxdataset [example][mkiv-publications.bib] 2 \definebtxrendering[example][dataset=example] 3 \starttext 4 \chapter{One} 5 some text.\cite[example::demo-001] 6 >> \placebtxrendering[example][criterium=all] 7 \stoptext 8 9 Minimal example: \usebtxdataset [example][mkiv-publications.bib] \definebtxrendering[example][dataset=example] \starttext \chapter{One} some text.\cite[example::demo-001] \placebtxrendering[example][criterium=all] \stoptext The following patch seems to fix the problem: *** publ-ini.lua.old 2014-08-21 13:53:31.267777602 +0200 --- publ-ini.lua 2014-08-21 13:47:52.967781191 +0200 *************** *** 647,652 **** --- 647,655 ---- local short = formatters["%t%02i"](t,mod(year,100)) local s = shorts[short] -- we could also sort on reference i.e. entries.text + if not used then + used = { } + end local u = used[tag] if u then u = u[1].entries.text -- hm ___________________________________________________________________________________ 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 ___________________________________________________________________________________