ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <havdmeer@ziggo.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: Re: ConTeXT install failing [solved]
Date: Wed, 13 Mar 2019 10:34:57 +0100	[thread overview]
Message-ID: <E16656EA-0B8F-41A3-AD2C-6963DFD732FF@ziggo.nl> (raw)
In-Reply-To: <EF6E8DFD-8A74-41B9-AE4A-C44BDBFE9F2F@ziggo.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1667 bytes --]

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 = (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
> 


[-- Attachment #1.2: Type: text/html, Size: 5313 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2019-03-13  9:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 21:53 ConTeXT install failing Hans van der Meer
2019-03-13  9:34 ` Hans van der Meer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E16656EA-0B8F-41A3-AD2C-6963DFD732FF@ziggo.nl \
    --to=havdmeer@ziggo.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).