Hi Hans,
I didn't have time on Saturday night to implement your solution so when I got back to it on Sunday I saw their was an update which I decided to install. However it came up with an error on installation as follows:

 lua error       > lua error on line 48 in file mlib-ctx.mkxl:

token call, execute: ...m64/tex/texmf-context/tex/context/base/mkxl/mlib-msh.lmt:45: attempt to index a nil value (local 'contour')
stack traceback:
        ...m64/tex/texmf-context/tex/context/base/mkxl/mlib-msh.lmt:45: in local 'code'
        ...m64/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:97: in field 'loadedluacode'
        ...m64/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:108: in field 'luafilechunk'
        ...m64/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt:82: in field 'registercode'
        [ctxlua]:1: in main chunk
<empty file>

I left it till today and decided to do a complete reinstall is case I had mucked something up, but I still got the same error. Could you have another look please? If you need the full terminal output on installation from my M1 mac mini, let me know, it's about 300kB.

I have ConTeXt on an old windows laptop which I use as a backup and it updated successfully.

Thanks and Best Wishes
Keith

On 05/07/2025 18:57, Keith McKay wrote:
No problem Hans.
Thanks for the solution.
Best wishes
Keith

On Sat, 5 Jul 2025, 18:43 Hans Hagen via ntg-context, <ntg-context@ntg.nl> wrote:
On 7/5/2025 6:18 PM, Keith McKay wrote:
> Hi all,
> I've just recently updated ConTeXt to the most recent version  and I get
> the following lua error at the end of the log in the terminal. I thought
> it was a bit strange at the time but since the instal finished  "update
> done" I continued on. However, when I ran some tex files the same lua
> error appeared with no output. I tried the usual suggestions for when
> there is a crash, but no change.
> Any thoughts?

not the latest binary ... i didn't check the build for that ... but it
looks like that mac is off line

in the meantime:

ua error : function call:
...ata/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun.lua:6673:
attempt to index a nil value (field 'mesh')

in that mtxrun.lua file go to those lines and comment the mesh bit or
replace it with

     local mesh = vector.mesh

     if mesh then

         local ismesh  = mesh.ismesh
         local totable = mesh.totable

         setinspector("mesh",function(v)
             if ismesh(v) then
                 inspect(totable(v))
                 return true
             end
         end)

     end

do the same at the end of l-math.lua in order to be able to make a format.

If Mojca gets the machien online i'll update. Sorry for the problem,

Hans



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
___________________________________________________________________________________