ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)
@ 2019-01-06 23:40 Ulrike Fischer
  2019-01-10 16:13 ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Ulrike Fischer @ 2019-01-06 23:40 UTC (permalink / raw)
  To: ntg-context

I just tried to import the fontloader from 2019-01-03 into latex,
and get on a simple document the error

 (./test-utf8.aux)error:
...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868:
attempt to call upvalue 'getdirection' (a nil value)
.
\newpage ...k \@nobreakfalse \everypar {}\fi \par
                                                  \ifdim \prevdepth
>\z@ \vs...

l.51 \end{document}


I have no idea (yet) if this is latex specific or if it could affect
context too but thought I better mention it. The line refers to this
part of the code:

  pardirstate=function(start)
    local nxt=getnext(start)
    local dir=getdirection(start) --<--
    if dir==lefttoright then
      return nxt,1,1




-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___________________________________________________________________________________
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] 6+ messages in thread

* Re: fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)
  2019-01-06 23:40 fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value) Ulrike Fischer
@ 2019-01-10 16:13 ` Pablo Rodriguez
  2019-01-10 17:11   ` Hans Hagen
  2019-01-11 19:23   ` Ulrike Fischer
  0 siblings, 2 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2019-01-10 16:13 UTC (permalink / raw)
  To: ntg-context

On 1/7/19 12:40 AM, Ulrike Fischer wrote:
> I just tried to import the fontloader from 2019-01-03 into latex,
> and get on a simple document the error
> 
>  (./test-utf8.aux)error:
> ...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868:
> attempt to call upvalue 'getdirection' (a nil value)
> [...]
> I have no idea (yet) if this is latex specific or if it could affect
> context too but thought I better mention it. The line refers to this
> part of the code:
> 
>   pardirstate=function(start)
>     local nxt=getnext(start)
>     local dir=getdirection(start) --<--
>     if dir==lefttoright then
>       return nxt,1,1

Many thanks for your report, Ulrike.

This was the same problem that prevented the compilation of the
following code:

    \setupdirections[bidi=on, method=two]
    \starttext
    \input zapf
    \stoptext

After your report, Hans fixed the issue (which I tried to report twice,
but the mailing list rejected my messages).

Many thanks for your report and for the fix from Hans,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 6+ messages in thread

* Re: fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)
  2019-01-10 16:13 ` Pablo Rodriguez
@ 2019-01-10 17:11   ` Hans Hagen
  2019-01-11 19:23   ` Ulrike Fischer
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2019-01-10 17:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/10/2019 5:13 PM, Pablo Rodriguez wrote:

> This was the same problem that prevented the compilation of the
> following code:
> 
>      \setupdirections[bidi=on, method=two]
>      \starttext
>      \input zapf
>      \stoptext
this is unlikely as you don't use generic ... probably another fix

(concerning your mails: gmx is kind of special i think ... i can never 
send mails that gmx adresses)

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] 6+ messages in thread

* Re: fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)
  2019-01-10 16:13 ` Pablo Rodriguez
  2019-01-10 17:11   ` Hans Hagen
@ 2019-01-11 19:23   ` Ulrike Fischer
  2019-01-11 21:51     ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Ulrike Fischer @ 2019-01-11 19:23 UTC (permalink / raw)
  To: ntg-context

Am Thu, 10 Jan 2019 17:13:26 +0100 schrieb Pablo Rodriguez:

> On 1/7/19 12:40 AM, Ulrike Fischer wrote:
>> I just tried to import the fontloader from 2019-01-03 into latex,
>> and get on a simple document the error
>> 
>>  (./test-utf8.aux)error:
>> ...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868:
>> attempt to call upvalue 'getdirection' (a nil value)
>> [...]
>> I have no idea (yet) if this is latex specific or if it could affect
>> context too but thought I better mention it. The line refers to this
>> part of the code:
>> 
>>   pardirstate=function(start)
>>     local nxt=getnext(start)
>>     local dir=getdirection(start) --<--
>>     if dir==lefttoright then
>>       return nxt,1,1
> 
> Many thanks for your report, Ulrike.
> 
> This was the same problem that prevented the compilation of the
> following code:
> 
>     \setupdirections[bidi=on, method=two]
>     \starttext
>     \input zapf
>     \stoptext
> 
> After your report, Hans fixed the issue 

Well not for generic. I tried yesterday the context state from
2019-01-07 and still have the problem that getdirection is called
somewhere but actually nil. But I don't have the time to investigate
or to try to create a generic example currently. 


-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___________________________________________________________________________________
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] 6+ messages in thread

* Re: fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)
  2019-01-11 19:23   ` Ulrike Fischer
@ 2019-01-11 21:51     ` Hans Hagen
  2019-01-11 23:14       ` Ulrike Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2019-01-11 21:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/11/2019 8:23 PM, Ulrike Fischer wrote:
> Am Thu, 10 Jan 2019 17:13:26 +0100 schrieb Pablo Rodriguez:
> 
>> On 1/7/19 12:40 AM, Ulrike Fischer wrote:
>>> I just tried to import the fontloader from 2019-01-03 into latex,
>>> and get on a simple document the error
>>>
>>>   (./test-utf8.aux)error:
>>> ...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868:
>>> attempt to call upvalue 'getdirection' (a nil value)
>>> [...]
>>> I have no idea (yet) if this is latex specific or if it could affect
>>> context too but thought I better mention it. The line refers to this
>>> part of the code:
>>>
>>>    pardirstate=function(start)
>>>      local nxt=getnext(start)
>>>      local dir=getdirection(start) --<--
>>>      if dir==lefttoright then
>>>        return nxt,1,1
>>
>> Many thanks for your report, Ulrike.
>>
>> This was the same problem that prevented the compilation of the
>> following code:
>>
>>      \setupdirections[bidi=on, method=two]
>>      \starttext
>>      \input zapf
>>      \stoptext
>>
>> After your report, Hans fixed the issue
> 
> Well not for generic. I tried yesterday the context state from
> 2019-01-07 and still have the problem that getdirection is called
> somewhere but actually nil. But I don't have the time to investigate
> or to try to create a generic example currently.
afaiks it's ok for luatex 1.09+

(i have no time now either)

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] 6+ messages in thread

* Re: fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)
  2019-01-11 21:51     ` Hans Hagen
@ 2019-01-11 23:14       ` Ulrike Fischer
  0 siblings, 0 replies; 6+ messages in thread
From: Ulrike Fischer @ 2019-01-11 23:14 UTC (permalink / raw)
  To: ntg-context

Am Fri, 11 Jan 2019 22:51:30 +0100 schrieb Hans Hagen:

> afaiks it's ok for luatex 1.09+

Oh, good tipp. You are right with luatex 1.09 it compiles fine. 
That means that I don't need to debug but should stick to the state
of 2018-12-19 until texlive 2019 comes out. 


-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2019-01-11 23:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-06 23:40 fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value) Ulrike Fischer
2019-01-10 16:13 ` Pablo Rodriguez
2019-01-10 17:11   ` Hans Hagen
2019-01-11 19:23   ` Ulrike Fischer
2019-01-11 21:51     ` Hans Hagen
2019-01-11 23:14       ` Ulrike Fischer

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).