From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103624 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXT install failing [solved] Date: Wed, 13 Mar 2019 10:34:57 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: multipart/mixed; boundary="===============3612745580090350416==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223933"; mail-complaints-to="usenet@blaine.gmane.org" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 13 10:35:38 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h40IU-000w79-4i for gctc-ntg-context-518@m.gmane.org; Wed, 13 Mar 2019 10:35:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 891A0FBFA4; Wed, 13 Mar 2019 10:35:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ELEt9iZapb1J; Wed, 13 Mar 2019 10:35:00 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 56DFAFBF9B; Wed, 13 Mar 2019 10:35:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4C42BFBF97 for ; Wed, 13 Mar 2019 10:34:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IrJe--eMZjdX for ; Wed, 13 Mar 2019 10:34:58 +0100 (CET) Original-Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id AAED9FBF75 for ; Wed, 13 Mar 2019 10:34:58 +0100 (CET) Original-Received: from [212.54.42.132] (helo=smtp8.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1h40Hq-0000GJ-Dh; Wed, 13 Mar 2019 10:34:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=ziggo.nl; s=201809corplgsmtpnl; h=To:Subject:Date:Mime-Version:Message-Id:From; bh=ihns68VT0HL9u+eYopyR2aPLSG3yI0xE1t21gbNoJYk=; b=fZhQz0toLlzzikE5POYNTXbzST ZSYpfiTkRkZInC/aZNZovTkXlG74DiMvn6KPIc2dWSzu3bIHY7rcdL85pRecNp042Cz5D3yecQgol NfdEnlr4iRneZhHNHuUUXu5k+CxuYTRZ29hSG01YUCYeYdA+wb+NPoNNXRsXrqnBLinLpPQ4Rr3QB U55xMSCkyW/AF/IHJIBqLirb1GHDIqvryuZQLdzU6zEjj5X2Ec1Iw/6NNCVtJownlpLCaQJBZlQbA wkfEF/AHL+rV35LBYZEEEsOU4LNXhczc51wpi+JyDYHT2KTC7lL3LTsKlqAmmnCiGOxODTDrCxHtu ogFX44Aw==; Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.19]) by smtp8.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1h40Hq-0003Sc-BB; Wed, 13 Mar 2019 10:34:58 +0100 In-Reply-To: X-Mailer: Apple Mail (2.3445.102.3) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=aesfYigt c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=NTGMnVQrEZIA:10 a=Nbcv_iDKQIuBXcTMP54A:9 a=CjuIK1q_8ugA:10 a=S6d-vmZj3Inn-by2C9gA:9 a=37Ui1K8fsWYQGAot:21 a=_W_S_7VecoQA:10 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:103624 Archived-At: --===============3612745580090350416== Content-Type: multipart/alternative; boundary="Apple-Mail=_08B3C218-49BB-4C7C-B7E2-4433C6902AB0" --Apple-Mail=_08B3C218-49BB-4C7C-B7E2-4433C6902AB0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii My fault. A spurious older version of luatex too early in the search = path. Became disastrous only after the luatex version in the betas = changed at some point in time. However in search of the problem I stumbled on a few statements invoking = a Lua error that can be avoided by safer coding, thus sparing = non-programmers a problem. The error message is: /tex/texmf-context/scripts/context/lua/mtx-context.lua:1819: attempt to = index a nil value (field 'filenames') originates from: elseif environment.filenames[1] or getargument("nofile") then scripts.context.timed(scripts.context.autoctx) I suggest to change this to (change highlighted) elseif environment.filenames and environment.filenames[1] or = getargument("nofile") then scripts.context.timed(scripts.context.autoctx) The same applies to lines 1208, 1795, 1802 In line 1188 I recommend interchanging the operands for a more natural = order; here the check is already done. local list =3D (name and { name }) or (environment.filenames and = environment.filenames[1]) or defaultformats dr. Hans van der Meer > On 11 Mar 2019, at 22:53, Hans van der Meer wrote: >=20 > I cannot get ConTeXt working on my other machine though I mimicked = everything there from the working one. > Installed the contextbeta with the script than try to run but this = fails. See the output from what has been done and what results. Also = attached the .bashrc setup sofar as regarding TeX. These are the same on = both machines. > I am stymied of what happened here or what could be amiss. > Any pointers to the solution will be very much appreciated. >=20 > dr. Hans van der Meer >=20 --Apple-Mail=_08B3C218-49BB-4C7C-B7E2-4433C6902AB0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii My fault. A spurious older version of luatex too early in = the search path. Became disastrous only after the luatex version in the = betas changed at some point in time.
However in search of the problem I stumbled = on a few statements invoking a Lua error that can be avoided by safer = coding, thus sparing non-programmers a problem.

The error message = is:
/tex/texmf-context/scripts/context/lua/mtx-context.lua:1819: = attempt to index a nil value (field 'filenames')

originates from:
elseif = environment.filenames[1] or getargument("nofile") then
    = scripts.context.timed(scripts.context.autoctx)

I suggest to change this to (change = highlighted)
elseif environment.filenames and = environment.filenames[1] or getargument("nofile") then
    = scripts.context.timed(scripts.context.autoctx)

The same applies to = lines 1208, 1795, 1802

In line 1188 I recommend interchanging the operands for a = more natural order; here the check is already = done.
    local list =3D (name and { name }) or = (environment.filenames and environment.filenames[1]) or defaultformats

dr. Hans van der Meer

On 11 Mar 2019, at 22:53, Hans van der Meer = <havdmeer@ziggo.nl> wrote:

I cannot get ConTeXt = working on my other machine though I mimicked everything there from the = working one.
Installed the contextbeta with the script = than try to run but this fails. See the output from what has been done = and what results. Also attached the .bashrc setup sofar as regarding = TeX. These are the same on both machines.
I am = stymied of what happened here or what could be amiss.
Any pointers to the solution will be very much = appreciated.

dr. = Hans van der Meer


= --Apple-Mail=_08B3C218-49BB-4C7C-B7E2-4433C6902AB0-- --===============3612745580090350416== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3612745580090350416==--