ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: How to load external lua library
Date: Fri, 24 Jan 2025 15:27:50 +0100	[thread overview]
Message-ID: <3d71c518-d14e-46cb-9bdc-332298cbc64c@xs4all.nl> (raw)
In-Reply-To: <173772488462.3183021.3594873580900318571@cgl.ntg.nl>

On 1/24/2025 2:21 PM, krulis.tomas@seznam.cz wrote:
> Hello Mr. Hagen,
> 
> I am actually using ConTeXt bundled with TeXlive, and I struggled with finding the file tree you mentioned there, so I went into installing the ConTeXt distribution separately. With the current installation (ConTeXt  ver: 2024.12.30 16:14 LMTX  fmt: 2025.1.24  int: english/english), I am hiting this error:
> 
> ```
> token call, execute: ...ext/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:91: attempt to index a boolean value (local 'json')
> stack traceback:
>          ...ext/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:91: in main chunk
>          [C]: in upvalue 'requiem'
>          ...xt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in function <...xt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165>
>          (...tail calls...)
>          [ctxlua]:2: in main chunk
> ```
> 
> which is rather confusing to me, and doesn't happen with TeXlive. Am I missing a part of the installation, or can I fix this in some other way?

can you change this at the end of util-json

package.loaded["util-jsn"] = json
package.loaded.json        = json

return json

and remake the format?

(the json module is now always preloaded)

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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2025-01-24 14:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-23 18:25 [NTG-context] " krulis.tomas
2025-01-23 19:32 ` [NTG-context] " Hans Hagen
2025-01-24 13:21   ` krulis.tomas
2025-01-24 14:27     ` Hans Hagen [this message]
2025-01-25 15:37       ` krulis.tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d71c518-d14e-46cb-9bdc-332298cbc64c@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).