Restarting with different engine fails
![](https://secure.gravatar.com/avatar/60f3cc97f94fa3690ba406f8c1a7fc4f.jpg?s=120&d=mm&r=g)
Dear list, ConTeXt allows to select the engine in the preamble with a “magic comment”. The preamble is parsed and the engine restarted with new options. The following MWE fails in the latest beta % engine=luajittex \starttext Fail \stoptext with the error message texmf-context/scripts/context/lua/mtx-context.lua:427: attempt to call a nil value (global 'restart') If I uncomment the restart function and its helpers around line 110 it works. Please fix. Cheers, Henri
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 2/1/2019 10:30 PM, Henri Menke wrote:
Dear list,
ConTeXt allows to select the engine in the preamble with a “magic comment”. The preamble is parsed and the engine restarted with new options. The following MWE fails in the latest beta
% engine=luajittex \starttext Fail \stoptext
with the error message
texmf-context/scripts/context/lua/mtx-context.lua:427: attempt to call a nil value (global 'restart')
If I uncomment the restart function and its helpers around line 110 it works. ok, i commented too much (as a prelude to different stubbing)
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Henri Menke