Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-14 Thread Thomas A. Schmitz

On Apr 13, 2008, at 9:30 AM, Taco Hoekwater wrote:
 Roland wrote:

 Anybody?

 Makes no sense to me. I hope Thomas can have a look. Something  
 obviously
 goes wrong for you, but I have never yet see it go _so_ wrong. Is  
 there
 a chance of a corrupted download of something?

 Best wishes,
 Taco

OK, I'll have a go at it.

Roland, could you send me (off-list) the output of these commands:

echo $PATH

ls -al /usr/local/texlive/2007/bin/i386-darwin

ls -al

luatex --version

And I'll see if I can find anything.

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-13 Thread Taco Hoekwater
Roland wrote:
 
 Anybody?

Makes no sense to me. I hope Thomas can have a look. Something obviously
goes wrong for you, but I have never yet see it go _so_ wrong. Is there
a chance of a corrupted download of something?

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-13 Thread Mojca Miklavec
On Sat, Apr 12, 2008 at 4:24 PM, Roland wrote:
 @Mojca, I found that /usr/texbin was pointing to a missing directory,
  so this caused the problem mentioned below. I took /usr/texbin out of
  the $PATH and replaced it with /usr/local/texlive/2007/bin/i386-darwin
  -- this lets luatools --selfupdate run correctly:

I have no idea what went wrong, but this implies that your
installation might be slightly broken. /usr/texbin should point to
something. Mine points to
texbin - ../Library/TeX/Distributions/.DefaultTeX/Contents/Programs/i386
(and there are some other symlinks in that path as well), but I need
to admit that I have never tried to make luatex work with the existing
installation (tried once and then gave up).

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-12 Thread Roland
Hmmm this produces something funny:

$ luatools --selfupdate

LuaTools | to be replaced old script /usr/texbin/luatools
LuaTools | unable to locate new script
LuaTools |
LuaTools | runtime: 0.005 seconds

Perhaps some link is wrong or I shouldn't use the alias /usr/texbin
(as installed by MacTeX)?

On 08/04/2008, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Did you try to run
luatools --selfupdate
  ?
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-12 Thread Roland
@Mojca, I found that /usr/texbin was pointing to a missing directory,
so this caused the problem mentioned below. I took /usr/texbin out of
the $PATH and replaced it with /usr/local/texlive/2007/bin/i386-darwin
-- this lets luatools --selfupdate run correctly:


LuaTools | to be replaced old script
/usr/local/texlive/2007/bin/i386-darwin/luatools
LuaTools | checking new script
/usr/local/texlive/texmf-local/scripts/context/lua/luatools.lua
LuaTools | old script content replaced by new content
LuaTools |
LuaTools | runtime: 0.056 seconds

But the old problem still persists.

@Hans, I pressed enter when the original error occurs and this just
gives me one more line before the script stops:

l.3174

?
../../../../src/texk/web2c/luatexdir/tex/linebreak.c:1599: failed
assertion `alink(cur_p)==temp_head'

LuaTools |
LuaTools | runtime: 10.399 seconds

@Taco, I think my core-ref.tex contains the same as yours:

  3165  \def\setupbuttons
  3166{\dodoubleargument\getparameters[\??bt]}
  3167
  3168  \definecomplexorsimpleempty\button
  3169
  3170  \def\complexbutton
  3171{\docomplexbutton\??bt}
  3172
  3173  \presetlocalframed[\??bt]
  3174
  3175  \long\def\docomplexbutton#1[#2]#3#4% get rid of possible space
before [#4]
  3176{\dodocomplexbutton#1[#2]{#3}#4} % #4 == [
  3177
  3178  \def\buttonframed{\dodoubleempty\localframed[\??bt]} % goodie
  3179
  3180  \long\def\dodocomplexbutton#1[#2]#3[#4]% #3 can contain [] - {#3} later

Anybody?
Roland



On 12/04/2008, Roland [EMAIL PROTECTED] wrote:
 Hmmm this produces something funny:

  $ luatools --selfupdate

  LuaTools | to be replaced old script /usr/texbin/luatools
  LuaTools | unable to locate new script
  LuaTools |
  LuaTools | runtime: 0.005 seconds

  Perhaps some link is wrong or I shouldn't use the alias /usr/texbin
  (as installed by MacTeX)?


  On 08/04/2008, Mojca Miklavec [EMAIL PROTECTED] wrote:
   Did you try to run
  luatools --selfupdate
?

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-09 Thread Taco Hoekwater


Roland wrote:
 ) (/usr/local/texlive/texmf-local/tex/context/base/core-ref.tex
 loading : Context Core Macros / Cross Referencing
 (/usr/local/texlive/texmf-local/tex/context/base/sort-lan.tex
 loading : Context Sorting Macros (languages)
 (/usr/local/texlive/texmf-local/tex/context/base/sort-lan.mkiv))error:
 ...al/texlive/texmf-local/tex/context/base/node-ini.lua:345: attempt
 to index field 'otf' (a nil value)
 .
 l.3174

That is in core-ref.tex. In my version of core-ref, line 3174 is
the empty line following \presetlocalframed[\??bt]:

--
\def\complexbutton
   {\docomplexbutton\??bt}

\presetlocalframed[\??bt]

\long\def\docomplexbutton#1[#2]#3#4% get rid of possible space ...
   {\dodocomplexbutton#1[#2]{#3}#4} % #4 == [

\def\buttonframed{\dodoubleempty\localframed[\??bt]} % goodie


Please, have a look to see what your core-ref.tex contains.

Best wishes,
Taco



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-08 Thread Roland
yes, here goes:

$ luatools --ini --verbose --compile cont-en

LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT

LuaTools | skipping configuration for /texmf-local/web2c from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/d80510d450a3fa2a64df4d3741825f1d
LuaTools | skipping configuration for /texmf/web2c from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/3113242409ded67a0ad7bd508bd26609
LuaTools | locating list of /Users/rs/.texlive2007/texmf-config
LuaTools | locating list of /Users/rs/.texlive2007/texmf-var
LuaTools | locating list of /Users/rs/Library/texmf
LuaTools | locating list of /usr/local/texlive/2007/texmf-config
LuaTools | locating list of /usr/local/texlive/2007/texmf-var
LuaTools | locating list of /usr/local/texlive/2007/texmf
LuaTools | locating list of /usr/local/texlive/texmf-local
LuaTools | locating list of /usr/local/texlive/2007/texmf-dist
LuaTools | loading files for /Users/rs/.texlive2007/texmf-var from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/f1bc347f62f0cb65067c428b92016cc8
LuaTools | loading files for /Users/rs/Library/texmf from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/060f50e7db2104cfd20ae5a16b964fee
LuaTools | loading files for /usr/local/texlive/2007/texmf-config from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/729867c88f88a392262749cb9c3d602b
LuaTools | loading files for /usr/local/texlive/2007/texmf-var from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/8e784414cbc94d079ab302f28581fb78
LuaTools | loading files for /usr/local/texlive/2007/texmf from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/2adb941cffe60c990191225deee5cf98
LuaTools | loading files for /usr/local/texlive/texmf-local from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/1f08e3a96247a4bd25d903ca1cb00c0e
LuaTools | loading files for /usr/local/texlive/2007/texmf-dist from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/caabba858325c30f4015e448eae0e0e7
LuaTools | creating initialization file cont-en
LuaTools | using library path : /usr/local/texlive/texmf-local/tex/context/base
LuaTools | using lua libraries: l-string.lua l-lpeg.lua l-table.lua
l-boolean.lua l-number.lua l-set.lua l-unicode.lua l-md5.lua l-os.lua
l-io.lua l-file.lua l-url.lua l-dir.lua l-utils.lua l-tex.lua
luat-env.lua luat-lib.lua luat-inp.lua luat-tmp.lua luat-zip.lua
luat-tex.lua
LuaTools | using compiled initialization file cont-en.luc
LuaTools | using lua initialization file cont-en.luc
LuaTools | running command: luatex --ini --lua=cont-en.luc
/usr/local/texlive/texmf-local/tex/context/base/cont-en.tex \\dump
(/usr/local/texlive/texmf-local/tex/context/base/cont-en.tex
(/usr/local/texlive/texmf-local/tex/context/base/context.tex
(/usr/local/texlive/texmf-local/tex/context/base/syst-pln.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-prm.tex)
(/usr/local/texlive/texmf-local/tex/context/base/luat-env.tex)
(/usr/local/texlive/texmf-local/tex/context/base/luat-lib.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-cat.tex
(/usr/local/texlive/texmf-local/tex/context/base/syst-cat.mkiv))
(/usr/local/texlive/texmf-local/tex/context/base/syst-etx.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-pdt.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-omg.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-xtx.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-mtx.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-gen.tex
loading : Context System Macros / General
) (/usr/local/texlive/texmf-local/tex/context/base/syst-ext.tex
loading : Context System Macro's / Extras
) (/usr/local/texlive/texmf-local/tex/context/base/syst-chr.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-fnt.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-new.tex)
(/usr/local/texlive/texmf-local/tex/context/base/syst-con.tex
loading : Context System Macro's / Conversions
(/usr/local/texlive/texmf-local/tex/context/base/syst-con.mkiv))
(/usr/local/texlive/texmf-local/tex/context/base/syst-var.tex
loading : Context System Macro's / Variables
) (/usr/local/texlive/texmf-local/tex/context/base/syst-str.tex
loading : Context System Macro's / Strings
(/usr/local/texlive/texmf-local/tex/context/base/syst-str.mkiv))
(/usr/local/texlive/texmf-local/tex/context/base/syst-rtp.tex
loading : Context Core Macros / Run Time Processes
(/usr/local/texlive/texmf-local/tex/context/base/syst-rtp.mkiv))
(/usr/local/texlive/texmf-local/tex/context/base/supp-ini.tex
loading : Context Support Macros / Initializations
) (/usr/local/texlive/texmf-local/tex/context/base/supp-fil.tex
loading : Context Support Macros / Files
(/usr/local/texlive/texmf-local/tex/context/base/supp-fil.mkiv))
(/usr/local/texlive/texmf-local/tex/context/base/supp-dir.tex)
(/usr/local/texlive/texmf-local/tex/context/base/mult-ini.tex
loading : Context Multilingual 

Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-08 Thread Hans Hagen
Roland wrote:

 yes, here goes:
 (/usr/local/texlive/texmf-local/tex/context/base/sort-lan.mkiv))error:
 al/texlive/texmf-local/tex/context/base/node-ini.lua:345: attempt
 to index field 'otf' (a nil value)
 ..
 l.3174

it looks like tex is typesetting something (otherwise there is no reason 
for calling the function)

you can try to press enter and keep going till there is a log file; 
often that one then shows missing characters that give an indication of 
where some spurious text was encountered (maybe some wrong download or so)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-07 Thread Taco Hoekwater


Roland wrote:
 Hi Taco, thanks for the quick reply. Something seems to work better
 now (no more errors about missing texmf directories) but I still get
 an error message after installing the new binary you pointed me to:
 
   (/usr/local/texlive/texmf-local/tex/context/base/sort-lan.tex
   loading : Context Sorting Macros (languages)
   (/usr/local/texlive/texmf-local/tex/context/base/sort-lan.mkiv))error:
 ...al/texlive/texmf-local/tex/context/base/node-ini.lua:345: attempt
 to index field 'otf' (a nil value)
   .
   l.3174
 
 Any idea?

No, this is about as confusing to me as it is to you. Can you post
a full log  please? I would like to know where the line 3174
comes from.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-06 Thread Taco Hoekwater
Roland wrote:
 Hi,
 
 I've been following Thomas Schmitz's great instructions at
 http://www.ntg.nl/pipermail/ntg-context/2007/027418.html to set up
 Luatex. All works fine and without errors but the last step:


Hans and me are to blame, for not keeping the binaries on
www.luatex.org synced. Afaics, everytyhing else in Thomas'
instructions is ok, so if you fetch the binary from

http://minimals.contextgarden.net/current/bin/luatex/

you should be ready to run in 'no time'.

We will change the binary links on www.luatex.org to the new minimal
distributions on contextgarden, I think.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-06 Thread Roland
Hi Taco, thanks for the quick reply. Something seems to work better
now (no more errors about missing texmf directories) but I still get
an error message after installing the new binary you pointed me to:

(/usr/local/texlive/texmf-local/tex/context/base/sort-lan.tex
loading : Context Sorting Macros (languages)
(/usr/local/texlive/texmf-local/tex/context/base/sort-lan.mkiv))error:
...al/texlive/texmf-local/tex/context/base/node-ini.lua:345: attempt
to index field 'otf' (a nil value)
.
l.3174

Any idea?
Thanks
Roland

On 06/04/2008, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Roland wrote:
   Hi,
  
   I've been following Thomas Schmitz's great instructions at
   http://www.ntg.nl/pipermail/ntg-context/2007/027418.html to set up
   Luatex. All works fine and without errors but the last step:



 Hans and me are to blame, for not keeping the binaries on
  www.luatex.org synced. Afaics, everytyhing else in Thomas'
  instructions is ok, so if you fetch the binary from

  http://minimals.contextgarden.net/current/bin/luatex/

  you should be ready to run in 'no time'.

  We will change the binary links on www.luatex.org to the new minimal
  distributions on contextgarden, I think.

  Best wishes,
  Taco
  
 ___
  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  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  
 ___

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] LuaTex error attempt to index global 'lang' (a nil value)

2008-04-05 Thread Roland
Hi,

I've been following Thomas Schmitz's great instructions at
http://www.ntg.nl/pipermail/ntg-context/2007/027418.html to set up
Luatex. All works fine and without errors but the last step:

   $ luatools --ini --verbose --compile cont-en
   LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT

   LuaTools | skipping configuration for /texmf-local/web2c from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/d80510d450a3fa2a64df4d3741825f1d
   LuaTools | skipping configuration for /texmf/web2c from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/3113242409ded67a0ad7bd508bd26609
   LuaTools | locating list of /Users/rs/.texlive2007/texmf-config
   LuaTools | locating list of /Users/rs/.texlive2007/texmf-var
   LuaTools | locating list of /Users/rs/Library/texmf
   LuaTools | locating list of /usr/local/texlive/2007/texmf-config
   LuaTools | locating list of /usr/local/texlive/2007/texmf-var
   LuaTools | locating list of /usr/local/texlive/2007/texmf
   LuaTools | locating list of /usr/local/texlive/texmf-local
   LuaTools | locating list of /usr/local/texlive/2007/texmf-dist
   LuaTools | loading files for /Users/rs/.texlive2007/texmf-var from
/tmp/luatex-cache/context/fcf214085bb2c4fcd9a0f9a9f0d0aecf/trees/f1bc347f62f0cb65067c428b92016cc8

   [snip]

   loading : Context Attribute Macros / initialization
   systems : defining attribute mark with number 1
   systems : defining attribute state with number 2
   systems : defining attribute trigger with number 3
   systems : defining attribute skip with number 4
   systems : defining attribute penalty with number 5
   systems : defining attribute colormodel with number 6
   systems : defining attribute color with number 7
   systems : defining attribute transparency with number 8
   systems : defining attribute overprint with number 9
   systems : defining attribute negative with number 10
   systems : defining attribute effect with number 11
   ) (/usr/local/texlive/texmf-local/tex/context/base/node-ini.tex
   loading : Node Support (initialization)
   ! LuaTeX error
...al/texlive/texmf-local/tex/context/base/node-ini.lua:506: attempt
to index global 'lang' (a nil value).
   \ctxluabytecode ...ode  .. #1 .. str) end end }

   \registerctxluafile ...{\the \luabytecodecounter }
 \fi
   l.16 \registerctxluafile{node-ini}{1.001}

   ?

Anybody have an idea what is wrong? I'm on Leopard 10.5.2.

Thanks
Roland
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___