Re: [NTG-context] ConTeXT install failing [solved]

2019-03-13 Thread Hans van der Meer
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  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
> 

___
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
___


[NTG-context] ConTeXT install failing

2019-03-11 Thread Hans van der Meer
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.

In blue the commands and where they were run, in orange the telltaling error 
message.

Installing and testrun output:

26 ~: cd /Users/hansm/TeX/context-49 
27 context-49: contextbeta
start download and install of contextbeta
first-setup.sh
sent 38 bytes  received 4845 bytes  3255.33 bytes/sec
total size is 4734  speedup is 0.97
mktexlsr: : not a directory, skipping.
warning: /Users/hansm/TeX/context-49/tex/texmf/web2c/texmf.cnf:49: (kpathsea) 
No cnf value on line: OSFONTDIR =.
mktexlsr: : not a directory, skipping.
warning: /Users/hansm/TeX/context-49/tex/texmf/web2c/texmf.cnf:49: (kpathsea) 
No cnf value on line: OSFONTDIR =.
tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf -> 
/Users/hansm/Desktop/Context Commands.pdf
Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
rm: mkiv_base: No such file or directory
mkiv_base -> tex/texmf-context/tex/context/base/mkiv
28 context-49: cd /Users/hansm/TeX/Test-xml-tex/xml-xtable 
29 xml-xtable: echo $CONTEXTBETA
context-49
30 xml-xtable: contextformat
resolvers   | trees | analyzing '/Users/hansm/TeX/context-49/tex'
resolvers   | trees | analyzing '/Users/hansm/TeX/texmf'
resolvers   | resolving | configuration files already identified
resolvers   | resolving | loading configuration file 
'selfautoparent:/texmf/web2c/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | locating list of 
'/Users/hansm/TeX/context-49/tex' (runtime) 
(tree:Users/hansm/TeX/context-49/tex)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'tree', argument 'tree:Users/hansm/TeX/context-49/tex'
resolvers   | trees | locator '/Users/hansm/TeX/context-49/tex' found
resolvers   | resolving | hash '/Users/hansm/TeX/context-49/tex' appended
resolvers   | resolving | locating list of '/Users/hansm/TeX/texmf' 
(runtime) (tree:Users/hansm/TeX/texmf)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'tree', argument 'tree:Users/hansm/TeX/texmf'
resolvers   | trees | locator '/Users/hansm/TeX/texmf' found
resolvers   | resolving | hash '/Users/hansm/TeX/texmf' appended
resolvers   | resolving |
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/Users/hansm/TeX/context-49/tex'
resolvers   | expansions | using cached scan of path 
'/Users/hansm/TeX/context-49/tex', branch '/Users/hansm/TeX/context-49/tex'
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/Users/hansm/TeX/texmf'
resolvers   | expansions | using cached scan of path 
'/Users/hansm/TeX/texmf', branch '/Users/hansm/TeX/texmf'
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/Users/hansm/TeX/context-49/tex'
resolvers   | expansions | using cached scan of path 
'/Users/hansm/TeX/context-49/tex', branch '/Users/hansm/TeX/context-49/tex'
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/Users/hansm/TeX/texmf'
resolvers   | expansions | using cached scan of path 
'/Users/hansm/TeX/texmf', branch '/Users/hansm/TeX/texmf'
resolvers   | resolving |
resolvers   | resolving | not saving runtime tree 
'/Users/hansm/TeX/context-49/tex'
resolvers   | resolving | not saving runtime tree '/Users/hansm/TeX/texmf'
resolvers   | resolving | not saving runtime tree 
'/Users/hansm/TeX/context-49/tex'
resolvers   | resolving | not saving runtime tree '/Users/hansm/TeX/texmf'
...49/tex/texmf-context/scripts/context/lua/mtx-context.lua:1194: attempt to 
index a nil value (field 'filenames')
31 xml-xtable: contextrun xtable-test.tex
resolvers   | trees | analyzing '/Users/hansm/TeX/context-49/tex'
resolvers   | trees | analyzing '/Users/hansm/TeX/texmf'
...49/tex/texmf-context/scripts/context/lua/mtx-context.lua:1819: attempt to 
index a nil value (field 'filenames')
32 xml-xtable: 

bashrc script:

# The current version in use:
CONTEXTBETA=context-49
export CONTEXTBETA
MYTEXMFHOME=$HOME/TeX/texmf
export MYTEXMFHOME
CONTEXTROOT=$HOME/TeX/$CONTEXTBETA/tex
export CONTEXTROOT
TEXMF=$HOME/TeX/$CONTEXTBETA/tex:$MYTEXMFHOME
export TEXMF
PATH=$PATH:$CONTEXTROOT/texmf-osx-64/bin
export PATH
# a dummy
OSFONTDIR=$MYTEXMFHOME/dummy_for_fonts
export OSFONTDIR
# Note starting with context-30 bst-files changed location to ../mkii
BSTINPUTS=$CONTEXTROOT/texmf-context/bibtex/bst/context/:$CONTEXTROOT/texmf-context/bibtex/bst/