Hi Hans, with the latest beta (as well as experimental) \setupbodyfont[dejavu] \starttext test \stoptext breaks with ! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil) Greeting Andreas
On 26-6-2011 11:29, Andreas Harder wrote:
Hi Hans,
with the latest beta (as well as experimental)
\setupbodyfont[dejavu] \starttext test \stoptext
breaks with
! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil)
Weird, not here. can you change line 119 into if not a or a == "" then -- not a added and see what happens? Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
with the latest beta (as well as experimental)
\setupbodyfont[dejavu] \starttext test \stoptext
breaks with
! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil)
Hi, I recently noticed a similar, maybe related problem. Saving this \starttext \placefigure[middle]{none}{\externalfigure[hacker]} \stoptext in a file called "test.Fig.tex" leads to the luatex error mentioned before. The same file without a dot in its name (testFig.tex) compiles like expected. Tested with ConTeXt ver: 2011.08.04 00:42 MKIV fmt: 2011.8.9 int: english/english on Mac OS X 10.6. Regards Daniel Here’s the stacktrace: ! LuaTeX error ...xtBeta/tex/texmf-context/tex/context/base/l-file.lua:232: bad argument #1 to 'find' (string expected, got nil) stack traceback: [C]: in function 'find' ...xtBeta/tex/texmf-context/tex/context/base/l-file.lua:232: in function 'collapsepath' ...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:382: in function 'forbiddenname' ...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:396: in function <...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:394> (tail call): ? ...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:751: in function 'identifier' ...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:769: in function 'identify' <main ctx instance>:1: in main chunk. system > tex > error on line 3 in file test.Fig.tex: LuaTeX error ... 1 \starttext 2 \startalignment[middle] 3 >> \placefigure[middle]{none}{\externalfigure[hacker]} 4 \stopalignment 5 \stoptext 6 \calculateexternalfigure ...a {figures.identify()} \ifconditional \testextern... \dodoplaceexternalfigure ...[][#1][#2][#3][#4][#5] \dotagfigure \naturalvbox ... \doexternalfigure ...value {\??ef \??ef #1}[#3]}}} \globallet \currentresourc... <to be read again> }
On 08/09/2011 07:34 PM, Daniel Schopper wrote:
\starttext \placefigure[middle]{none}{\externalfigure[hacker]} \stoptext
in a file called "test.Fig.tex" leads to the luatex error mentioned before. The same file without a dot in its name (testFig.tex) compiles like expected. The following patch fix this one. --- a/tex/texmf-context/scripts/context/lua/mtx-context.lua 2011-08-10 15:52:03.896095268 +0800 +++ b/tex/texmf-context/scripts/context/lua/mtx-context.lua 2011-08-10 15:52:58.487970450 +0800 @@ -476,7 +476,7 @@
function scripts.context.multipass.makeoptionfile(jobname,ctxdata,kindofrun,currentrun,finalrun) -- take jobname from ctx - jobname = file.removesuffix(jobname) + --jobname = file.removesuffix(jobname) local f = io.open(jobname..".top","w") if f then local function someflag(flag)
On 08/10/2011 03:56 PM, Hongwen Qiu wrote:
On 08/09/2011 07:34 PM, Daniel Schopper wrote:
\starttext \placefigure[middle]{none}{\externalfigure[hacker]} \stoptext
in a file called "test.Fig.tex" leads to the luatex error mentioned before. The same file without a dot in its name (testFig.tex) compiles like expected. The following patch fix this one. --- a/tex/texmf-context/scripts/context/lua/mtx-context.lua 2011-08-10 15:52:03.896095268 +0800 +++ b/tex/texmf-context/scripts/context/lua/mtx-context.lua 2011-08-10 15:52:58.487970450 +0800 @@ -476,7 +476,7 @@
function scripts.context.multipass.makeoptionfile(jobname,ctxdata,kindofrun,currentrun,finalrun) -- take jobname from ctx - jobname = file.removesuffix(jobname) + --jobname = file.removesuffix(jobname) local f = io.open(jobname..".top","w") if f then local function someflag(flag)
But if we call the file "test+Fig.tex" instead of "test.Fig.tex" or "testFig.tex", then it still can't compile. The top file is created as the name "test+Fig.top" correctly, but at the beginning, it still output the line: system > no test+Fig.top Since I don't know which script dealt with loading the .top file, I can't fix this one.
participants (4)
-
Andreas Harder
-
Daniel Schopper
-
Hans Hagen
-
Hongwen Qiu