ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* BUG: module loading is broken
@ 2020-01-13  1:19 Henri Menke
  2020-01-13  1:26 ` Henri Menke
  0 siblings, 1 reply; 3+ messages in thread
From: Henri Menke @ 2020-01-13  1:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Hans,

Recent updates to ConTeXt broke my CV. This MWE

\usemodule[letter]
\starttext
\stoptext

fails with

...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call a nil value (field 'uselibrary')

Here are the steps by which I can reproduce on my machine:

rm -rf /opt/context/tex/texmf-cache
mtxrun --generate
context --make
context test.mkvi

Same for LMTX.

Cheers, Henri
___________________________________________________________________________________
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] 3+ messages in thread

* Re: BUG: module loading is broken
  2020-01-13  1:19 BUG: module loading is broken Henri Menke
@ 2020-01-13  1:26 ` Henri Menke
  2020-01-13 10:25   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Henri Menke @ 2020-01-13  1:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Here is a patch.

--- a/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
+++ b/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
@@ -85,7 +85,7 @@ end
 function correspondence.file(environment,name)
     local environment = environment
     local name        = name
-    commands.uselibrary {
+    resolvers.uselibrary {
         name     = name,
         patterns = patterns[environment],
         action   = action,

On 1/13/20 2:19 PM, Henri Menke wrote:
> Dear Hans,
> 
> Recent updates to ConTeXt broke my CV. This MWE
> 
> \usemodule[letter]
> \starttext
> \stoptext
> 
> fails with
> 
> ...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call a nil value (field 'uselibrary')
> 
> Here are the steps by which I can reproduce on my machine:
> 
> rm -rf /opt/context/tex/texmf-cache
> mtxrun --generate
> context --make
> context test.mkvi
> 
> Same for LMTX.
> 
> Cheers, Henri
> 
___________________________________________________________________________________
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] 3+ messages in thread

* Re: BUG: module loading is broken
  2020-01-13  1:26 ` Henri Menke
@ 2020-01-13 10:25   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2020-01-13 10:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henri Menke

On 1/13/2020 2:26 AM, Henri Menke wrote:
> Here is a patch.
> 
> --- a/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
> +++ b/opt/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.lua
> @@ -85,7 +85,7 @@ end
>   function correspondence.file(environment,name)
>       local environment = environment
>       local name        = name
> -    commands.uselibrary {
> +    resolvers.uselibrary {
>           name     = name,
>           patterns = patterns[environment],
>           action   = action,

i'll bring back the alias (kind of doesn't fit well) an dalso add

commands.loadlibrary(name,foundname,nointerference)

as possible action

Hans

> On 1/13/20 2:19 PM, Henri Menke wrote:
>> Dear Hans,
>>
>> Recent updates to ConTeXt broke my CV. This MWE
>>
>> \usemodule[letter]
>> \starttext
>> \stoptext
>>
>> fails with
>>
>> ...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call a nil value (field 'uselibrary')
>>
>> Here are the steps by which I can reproduce on my machine:
>>
>> rm -rf /opt/context/tex/texmf-cache
>> mtxrun --generate
>> context --make
>> context test.mkvi
>>
>> Same for LMTX.
>>
>> Cheers, Henri
>>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 


-- 

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

end of thread, other threads:[~2020-01-13 10:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13  1:19 BUG: module loading is broken Henri Menke
2020-01-13  1:26 ` Henri Menke
2020-01-13 10:25   ` Hans Hagen

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