* error in mtxrun.lua line 4548 in August 24th update
@ 2021-08-25 9:18 mf via ntg-context
2021-08-25 11:06 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: mf via ntg-context @ 2021-08-25 9:18 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: mf
Hello,
here's the error I get:
lua error : function call:
...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad
argument #2 to 'lpegmatch' (string expected, got nil)
BTW I was trying to compile lowlevel-expansion.tex in
tex/texmf-context/doc/context/sources/general/manuals/lowlevel
after I've seen (looking at the diffs in the git repo) there were some
updates in the manual.
Massi
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in mtxrun.lua line 4548 in August 24th update
2021-08-25 9:18 error in mtxrun.lua line 4548 in August 24th update mf via ntg-context
@ 2021-08-25 11:06 ` Hans Hagen via ntg-context
2021-08-25 11:20 ` mf via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2021-08-25 11:06 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 8/25/2021 11:18 AM, mf via ntg-context wrote:
> Hello,
> here's the error I get:
>
> lua error : function call:
> ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad
> argument #2 to 'lpegmatch' (string expected, got nil)
>
> BTW I was trying to compile lowlevel-expansion.tex in
>
> tex/texmf-context/doc/context/sources/general/manuals/lowlevel
>
> after I've seen (looking at the diffs in the git repo) there were some
> updates in the manual.
It works here ... can you try with the top line removed? Otherwise we
need to zoom in on where it fails (some path split issue).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in mtxrun.lua line 4548 in August 24th update
2021-08-25 11:06 ` Hans Hagen via ntg-context
@ 2021-08-25 11:20 ` mf via ntg-context
2021-08-25 12:06 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: mf via ntg-context @ 2021-08-25 11:20 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: mf
Il 25/08/21 13:06, Hans Hagen ha scritto:
> On 8/25/2021 11:18 AM, mf via ntg-context wrote:
>> Hello,
>> here's the error I get:
>>
>> lua error : function call:
>> ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad
>> argument #2 to 'lpegmatch' (string expected, got nil)
>>
>> BTW I was trying to compile lowlevel-expansion.tex in
>>
>> tex/texmf-context/doc/context/sources/general/manuals/lowlevel
>>
>> after I've seen (looking at the diffs in the git repo) there were some
>> updates in the manual.
> It works here ... can you try with the top line removed? Otherwise we
> need to zoom in on where it fails (some path split issue).
Yes, it's the runpath directive not working.
Massi
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in mtxrun.lua line 4548 in August 24th update
2021-08-25 11:20 ` mf via ntg-context
@ 2021-08-25 12:06 ` Hans Hagen via ntg-context
2021-08-25 14:13 ` mf via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2021-08-25 12:06 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
On 8/25/2021 1:20 PM, mf via ntg-context wrote:
> Il 25/08/21 13:06, Hans Hagen ha scritto:
>> On 8/25/2021 11:18 AM, mf via ntg-context wrote:
>>> Hello,
>>> here's the error I get:
>>>
>>> lua error : function call:
>>> ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad
>>> argument #2 to 'lpegmatch' (string expected, got nil)
>>>
>>> BTW I was trying to compile lowlevel-expansion.tex in
>>>
>>> tex/texmf-context/doc/context/sources/general/manuals/lowlevel
>>>
>>> after I've seen (looking at the diffs in the git repo) there were
>>> some updates in the manual.
>> It works here ... can you try with the top line removed? Otherwise we
>> need to zoom in on where it fails (some path split issue).
> Yes, it's the runpath directive not working.
ok, so can you track that down in mtx-context.lua? (i know you can)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: error in mtxrun.lua line 4548 in August 24th update
2021-08-25 12:06 ` Hans Hagen via ntg-context
@ 2021-08-25 14:13 ` mf via ntg-context
0 siblings, 0 replies; 5+ messages in thread
From: mf via ntg-context @ 2021-08-25 14:13 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users; +Cc: mf
Il 25/08/21 14:06, Hans Hagen ha scritto:
> On 8/25/2021 1:20 PM, mf via ntg-context wrote:
>> Il 25/08/21 13:06, Hans Hagen ha scritto:
>>> On 8/25/2021 11:18 AM, mf via ntg-context wrote:
>>>> Hello,
>>>> here's the error I get:
>>>>
>>>> lua error : function call:
>>>> ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548:
>>>> bad argument #2 to 'lpegmatch' (string expected, got nil)
>>>>
>>>> BTW I was trying to compile lowlevel-expansion.tex in
>>>>
>>>> tex/texmf-context/doc/context/sources/general/manuals/lowlevel
>>>>
>>>> after I've seen (looking at the diffs in the git repo) there were
>>>> some updates in the manual.
>>> It works here ... can you try with the top line removed? Otherwise we
>>> need to zoom in on where it fails (some path split issue).
>> Yes, it's the runpath directive not working.
> ok, so can you track that down in mtx-context.lua? (i know you can)
>
The problem is that the argument "one" is nil, but the function
file.join checks only for one=="".
Lines 4541--4548:
4541 function file.join(one,two,three,...)
4542 if not two then
4543 return one=="" and one or lpegmatch(reslasher,one)
4544 end
4545 if one=="" then
4546 return lpegmatch(stripper,three and concat({ two,three,...
},"/") or two)
4547 end
4548 if lpegmatch(isnetwork,one) then
At line 4545 you check only for one being an empty string, but it
happens to be nil, so the program fails at line 4548.
Patching line 4545 like this:
4545 if not one or one=="" then
removes the error.
I leave to you whether the "one" argument should arrive nil to that
line, or it should be normalized to an empty string before entering
file.join.
Massi
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-25 14:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 9:18 error in mtxrun.lua line 4548 in August 24th update mf via ntg-context
2021-08-25 11:06 ` Hans Hagen via ntg-context
2021-08-25 11:20 ` mf via ntg-context
2021-08-25 12:06 ` Hans Hagen via ntg-context
2021-08-25 14:13 ` mf via ntg-context
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).