Hi all,

with latest context my filter test file fails with an error. My file:

\usemodule[filter]
\defineexternalfilter
        [luatexdevelopmentlevel]
        [filtercommand={luatex --credits | grep Development > 
\externalfilteroutputfile}]
\starttext
 \inlineluatexdevelopmentlevel{}
\stoptext

Error message:


loading         > Module Catcodes (ver: 2011.12.17)

tex error       > tex error on line 96 in file 
/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex:
 ! Undefined control sequence

l.96 ...tivecatcode  \gdef\activeendoflinetoken{^^M}


 86     \stopcatcodetable
 87
 88
 89
 90     \ifdefined \activeendoflinetoken \else
 91         % from catc-ini.mkiv
 92         \bgroup
 93             \catcode \tabasciicode       \activecatcode  
\gdef\activetabtoken      {^^I}
 94                                                          
\gdef\outputnewlinechar   {^^J}
 95             \catcode \formfeedasciicode  \activecatcode  
\gdef\activeformfeedtoken {^^L}
 96 >>          \catcode \endoflineasciicode \activecatcode  
\gdef\activeendoflinetoken{^^M}
 97         \egroup
 98     \fi
 99
100     \protectmodulecatcodes
101     \stopmodule
102

I append the logfile.

Greetings Lutz
-- 
GPG Key ID 3C4F83BC
open source     > level 1, order 1, name 
'/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2018.04.13 14:53 MKIV beta  fmt: 2018.4.14  
int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 
'/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source    > level 2, order 2, name 
'/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'filtertest', input './filtertest', result 
'filtertest'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/filtertest.tex'
modules         > 'filter' is loaded
open source     > level 3, order 4, name 
'/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv'
loading         > Filter (ver: 2016.03.02)
modules         > 'module-catcodes' is loaded
open source     > level 4, order 5, name 
'/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex'
loading         > Module Catcodes (ver: 2011.12.17)

tex error       > tex error on line 96 in file 
/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex:
 ! Undefined control sequence

l.96 ...tivecatcode  \gdef\activeendoflinetoken{^^M}
                                                  

 86     \stopcatcodetable
 87     
 88     
 89     
 90     \ifdefined \activeendoflinetoken \else
 91         % from catc-ini.mkiv
 92         \bgroup
 93             \catcode \tabasciicode       \activecatcode  
\gdef\activetabtoken      {^^I}
 94                                                          
\gdef\outputnewlinechar   {^^J}
 95             \catcode \formfeedasciicode  \activecatcode  
\gdef\activeformfeedtoken {^^L}
 96 >>          \catcode \endoflineasciicode \activecatcode  
\gdef\activeendoflinetoken{^^M}
 97         \egroup
 98     \fi
 99     
100     \protectmodulecatcodes
101     \stopmodule
102     


? x

system          > start used files

system          > text: filtertest

system          > stop used files


system          > start used files

system          >    1: filename=char-prv.lua filetype=tex format=tex 
foundname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
 
fullname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
 usedmethod=database
system          >    2: filename=cont-yes.mkiv filetype=tex 
foundname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
 
fullname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
 usedmethod=database
system          >    3: filename=publ-imp-default.lua filetype=lua 
foundname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 
fullname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 usedmethod=database
system          >    4: filename=cont-new.mkiv filetype=tex 
foundname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 
fullname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 usedmethod=database
system          >    5: filename=lang-exc.lua filetype=lua 
foundname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua
 
fullname=/usr/local/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua
 usedmethod=database
system          >    6: filename=lang-us.lua filetype=lua 
foundname=/usr/local/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua
 
fullname=/usr/local/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua
 usedmethod=database
system          >    7: filename=/home/filtertest.tex 
foundname=/home/filtertest.tex fullname=/home/filtertest.tex usedmethod=direct
system          >    8: filename=t-filter.mkiv filetype=tex 
foundname=/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
 
fullname=/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
 usedmethod=database
system          >    9: filename=t-module-catcodes.tex filetype=tex 
foundname=/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
 
fullname=/usr/local/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
 usedmethod=database

system          > stop used files


system          > start commandline options

system          > currentrun="1"
system          > fulljobname="./filtertest.tex"
system          > input="./filtertest.tex"
system          > kindofrun="1"
system          > maxnofruns="9"
system          > no-parse-first-line="true"

system          > stop commandline options


system          > start commandline files

system          >    1: ./filtertest.tex

system          > stop commandline files


modules         > start used modules

modules         > loaded : *-filter
modules         > loaded : *-module-catcodes

modules         > stop used modules


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/usr/local/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.046 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 9 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 424 modules (0.815 sec), 93 tables 
(0.067 sec), 517 chunks (0.882 sec)
mkiv lua stats  > traced context: maxstack: 1292, freed: 0, unreachable: 1292
mkiv lua stats  > cleaned up reserved nodes: 55 nodes, 9 lists of 453
mkiv lua stats  > node memory usage: 1 dir, 2 kern, 2 attribute, 50 glue_spec, 
1 attribute_list, 2 temp, 1 if_stack, 2 user_defined
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: internal: 47, file: 235, direct: 6, late: 0, 
function 59, total: 347
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-filter 
*-module-catcodes)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: filtertest.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > font engine: otf 3.103, afm 1.513, tfm 1.000
mkiv lua stats  > used platform: unknown, type: unix, binary subtree: 
texmf-linux-armhf
mkiv lua stats  > used engine: luatex version 1.08 with functionality level 
6700, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats  > control sequences: 44709 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 57 MB (ctx: 57 
MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 11.096 seconds

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to