[NTG-context] Ctx goes into infinite loop?

Hans Hagen pragma at wxs.nl
Fri May 23 13:15:19 CEST 2014


On 5/23/2014 12:40 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello,
>
> I have problem running the latest Ctx beta.
>
> Suppose having:
>
> -- C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings\t2.mkiv
>
> \startluacode
>    local home = (os.getenv("HOME.ORG") or os.getenv("HOME") or
> "?"):gsub("\\", "/")
>
>    context.setvalue("HOME", home)
> \stopluacode
>
> \input \HOME/Common/_Defs_.ctx

at least put { } around the input name

> \starttext
>    Test
> \stoptext
>
> --
>
> and an empty
>
> -- C:\Lukas\Common\_Defs_.ctx
> --
>
> When running:
>
> C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings>context.exe t2.mkiv
>
> Ctx stops telling anything (infinite loop?):
>
> "
> C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings>context.exe t2.mkiv
>
> mtx-context     | run 1: luatex
> --fmt="c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --jobname="t2"
> --lua="c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./t2.mkiv"
> --c:input="./t2.mkiv" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5004)
>   \write18 enabled.
> open source     > 1 > 1 >
> c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv
>
> ConTeXt  ver: 2014.05.21 22:04 MKIV beta  fmt: 2014.5.22  int:
> english/english
>
> system          > 'cont-new.mkiv' loaded
> open source     > 2 > 2 >
> c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
> close source    > 2 > 2 >
> c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
> system          > files > jobname 't2', input './t2.mkiv', result 't2'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > 2 > 3 >
> C:/Lukas/Jobs/D3-Sk/SO_237-20.RDS/Drawings/t2.mkiv
>
> tex error       > error on line 7 in file
> C:/Lukas/Jobs/D3-Sk/SO_237-20.RDS/Drawings/t2.mkiv: ! I can't find file
> `C:/Documents'.\HOME
> ^C
>
> C:\Lukas\Jobs\D3-Sk\SO_237-20.RDS\Drawings>
> \HOME \-C:/Documents
>                       and Settings/LPR
> l.7 \input \HOME
>                /Common/_Defs_.ctx
>
>   1     \startluacode
>   2       local home = (os.getenv("HOME.ORG") or os.getenv("HOME") or
> "?"):gsub("\\", "/")
>   3
>   4       context.setvalue("HOME", home)
>   5     \stopluacode
>   6
>   7 >>  \input \HOME/Common/_Defs_.ctx
>   8
>   9     \starttext
> 10       Test
> 11     \stoptext
> 12
> "
>
> What's wrong?
>
> Lukas
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list