* Last standalone version suddenly will not load user module
@ 2013-06-05 18:26 Jaroslav Hajtmar
2013-06-05 18:38 ` Wolfgang Schuster
2013-06-05 19:50 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Jaroslav Hajtmar @ 2013-06-05 18:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello ConTeXist.
For several years, I use very often my library for processing CSV
tables. Even 2 months ago worked flawlessly in both versions (standalone
version and ConTeXt TeXLive 2012). I am update standalone version fairly
often (at least one times for two months).
Unfortunately, today I found out that my latest standalone version fails
to load the library and the compilation is complete with an error message.
I find now that I can not detect and correct a problem in the library.
Maybe in it any longer unsupported commands. Can someone be read from
the attached log file?
Or I'll have to conserve the previous version of the standalone for my
ConTeXt applications?
I can, if necessary, to send my module...
Thanx Jaroslav Hajtmar
Here is content of my log file ... :
C:\$~1da\SKOLA\2012-2013\pz2013>context --autopdf xxxxx
mtx-context | warning: no (local) file './xxxxx', proceeding
mtx-context | run 1: luatex
--fmt="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="xxxxx"
--lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:autopdf --c:currentrun=1
--c:fulljobname="./xxxxx" --c:input="./xxxxx" --c:kindofrun=1
--c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.77.0-2013053109 (rev 4635)
\write18 enabled.
(C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2013.06.04 21:26 MKIV beta fmt: 2013.6.4 int:
english/english
system > 'cont-new.mkiv' loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system > files > jobname 'xxxxx', input './xxxxx', result 'xxxxx'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
(C:/$~1da/SKOLA/2012-2013/pz2013/xxxxx.tex
fonts > typescripts > unknown library 'loc'
fonts > typescripts > unknown library 'cmr'
fonts > preloading latin modern fonts (third stage)
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > 'fallback modern rm 11pt' is loaded
resolvers > modules > 'hl2t-scancsv' is loaded
(../texlibrary//hl2t-scancsv.mkiv
loading > ConTeXt User Module / ScanCSV
! LuaTeX error [string "\directlua "]:80: invalid escape sequence near '\{'.
system > tex > error on line 415 in file
../texlibrary//hl2t-scancsv.mkiv: LuaTeX error ...
405
406 if tempto>tempnumrows then tempto=tempnumrows end
407 if tempfrom>tempnumrows then tempfrom=1 end
408 tempfromI=tempfrom-1
409
410
tex.sprint(tex.ctxcatcodes,'\\newcount\\tempfrom\\tempfrom='..tostring(tempfrom))
--
411
tex.sprint(tex.ctxcatcodes,'\\newcount\\tempfromI\\tempfromI='..tostring(tempfromI))
--
412
tex.sprint(tex.ctxcatcodes,'\\newcount\\tempto\\tempto='..tostring(tempto))
--
413 end -- function thirddata.scancsv.paramcontrol(from, to)
414
415 >> \stopluacode
416
417 %D \section{MACRO DEFINITIONS}
418
419 \def\printline{\ctxlua{thirddata.scancsv.printline()}\par}
420 \def\printall{\ctxlua{thirddata.scancsv.printall()}\par}
421
422 \def\csvreport{
423 \ctxlua{thirddata.scancsv.csvreport()}
424 }
425
<inserted text> ...ion thirddata.scancsv.paramcontrol(from, to)
}
\luat_start_lua_code_indeed ...nd \directlua {#1}}
l.415 \stopluacode
? ) (../texlibrary/lib-lua.tex)
! LuaTeX error [string "\directlua "]:1: attempt to call field
'opencsvfile' (a nil value).
system > tex > error on line 207 in file
C:/$~1da/SKOLA/2012-2013/pz2013/xxxxx.tex: LuaTeX error ...
197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207 >> \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212
\dodoopencsvfile ...ata.scancsv.opencsvfile("#1")}
\else \ctxlua
{thirddata....
<argument> \opencsvfile {rozh_4lneprijat-nesplnil.csv}
\doloopaction
\firstoftwoarguments #1#2n-#1
\doloopLineaction ...ion {\lineaction }{#2}{#3}}}}
<to be read again>
l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv}
? ! LuaTeX error [string "\directlua "]:1: attempt to call field
'opencsvfile' (a nil value).
system > tex > error on line 207 in file
C:/$~1da/SKOLA/2012-2013/pz2013/xxxxx.tex: LuaTeX error ...
197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207 >> \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212
\dodoopencsvfile ...irddata.scancsv.opencsvfile()}
\fi
<to be read again>
\doifsomethingelse
\doloopAction ...-\opencsvfile \doifsomethingelse
{#3}{\doloopfromto
{#2}{#3...
<to be read again>
<to be read again>
l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv}
? ! LuaTeX error [string "\directlua "]:1: attempt to call field
'opencsvfile' (a nil value).
system > tex > error on line 207 in file
C:/$~1da/SKOLA/2012-2013/pz2013/xxxxx.tex: LuaTeX error ...
197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207 >> \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212
\dodoopencsvfile ...irddata.scancsv.opencsvfile()}
\fi
<to be read again>
\bfilehook
\doloopfromto #1#2#3h-\opencsvfile \bfilehook
\paramcontrol {#1}{#2}
\ifnum ...
<to be read again>
<to be read again>
l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv}
? ! LuaTeX error [string "\directlua "]:1: attempt to call field
'paramcontrol' (a nil value).
system > tex > error on line 207 in file
C:/$~1da/SKOLA/2012-2013/pz2013/xxxxx.tex: LuaTeX error ...
197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207 >> \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212
\paramcontrol ...ta.scancsv.paramcontrol(#1, #2);}
\doloopfromto ...\bfilehook \paramcontrol {#1}{#2}
\ifnum \tempfromI >0
\dos...
<to be read again>
<to be read again>
l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv}
?
! Emergency stop.
system > tex > error on line 207 in file
C:/$~1da/SKOLA/2012-2013/pz2013/xxxxx.tex: Emergency stop ...
197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207 >> \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212
\paramcontrol ...ta.scancsv.paramcontrol(#1, #2);}
\doloopfromto ...\bfilehook \paramcontrol {#1}{#2}
\ifnum \tempfromI >0
\dos...
<to be read again>
<to be read again>
Chcete ukonźit d vkovou Łlohu (A/N)?
l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv}
! ==> Fatal error occurred, no output PDF file produced!
C:\$~1da\SKOLA\2012-2013\pz2013>context --purgefiles --all
mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | basic options:
mtx-context |
mtx-context | --run process (one or more) files
(default action)
mtx-context | --make create context formats
mtx-context |
mtx-context | --ctx=name use ctx file (process
management specification)
mtx-context | --interface use specified user interface
(default: en)
mtx-context |
mtx-context | --autopdf close pdf file in viewer and
start pdf viewer afterwards
mtx-context | --purge purge files either or not after
a run (--pattern=...)
mtx-context | --purgeall purge all files either or not
after a run (--pattern=...)
mtx-context |
mtx-context | --usemodule=list load the given module or style,
normally part of the distribution
mtx-context | --environment=list load the given environment file
first (document styles)
mtx-context | --mode=list enable given the modes
(conditional processing in styles)
mtx-context | --path=list also consult the given paths
when files are looked for
mtx-context | --arguments=list set variables that can be
consulted during a run (key/value pairs)
mtx-context | --randomseed=number set the randomseed
mtx-context | --result=name rename the resulting output to
the given name
mtx-context | --trackers=list set tracker variables (show
list with --showtrackers)
mtx-context | --directives=list set directive variables (show
list with --showdirectives)
mtx-context | --silent=list disable logcatgories (show list
with --showlogcategories)
mtx-context | --noconsole disable logging to the console
(logfile only)
mtx-context | --purgeresult purge result file before run
mtx-context |
mtx-context | --forcexml force xml stub
mtx-context | --forcecld force cld (context lua
document) stub
mtx-context | --forcelua force lua stub (like texlua)
mtx-context | --forcemp force mp stub
mtx-context |
mtx-context | --arrange run extra imposition pass,
given that the style sets up imposition
mtx-context | --noarrange ignore imposition
specifications in the style
mtx-context |
mtx-context | --jit use luajittex with jit turned
off (only use the faster virtual machine)
mtx-context | --jiton use luajittex with jit turned
on (in most cases not faster, even slower)
mtx-context |
mtx-context | --once only run once (no multipass
data file is produced)
mtx-context | --batchmode run without stopping and do not
show messages on the console
mtx-context | --nonstopmode run without stopping
mtx-context | --synctex run with synctex enabled
(optional value: zipped, unzipped, 1, -1)
mtx-context |
mtx-context | --generate generate file database etc. (as
luatools does)
mtx-context | --paranoid do not descend to .. and ../..
mtx-context | --version report installed context version
mtx-context |
mtx-context | --global assume given file present elsewhere
mtx-context | --nofile use dummy file as jobname
mtx-context |
mtx-context |
mtx-context | More information about ConTeXt and the tools that come
with it can be found at:
mtx-context |
mtx-context | maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
mtx-context | webpage : http://www.pragma-ade.nl /
http://tex.aanhet.net
mtx-context | wiki : http://contextgarden.net
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Last standalone version suddenly will not load user module
2013-06-05 18:26 Last standalone version suddenly will not load user module Jaroslav Hajtmar
@ 2013-06-05 18:38 ` Wolfgang Schuster
[not found] ` <51AF9EFC.50209@gyza.cz>
2013-06-05 19:50 ` Hans Hagen
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2013-06-05 18:38 UTC (permalink / raw)
To: hajtmar, mailing list for ConTeXt users
Am 05.06.2013 um 20:26 schrieb Jaroslav Hajtmar <hajtmar@gyza.cz>:
> Hello ConTeXist.
> For several years, I use very often my library for processing CSV tables. Even 2 months ago worked flawlessly in both versions (standalone version and ConTeXt TeXLive 2012). I am update standalone version fairly often (at least one times for two months).
> Unfortunately, today I found out that my latest standalone version fails to load the library and the compilation is complete with an error message.
>
> I find now that I can not detect and correct a problem in the library. Maybe in it any longer unsupported commands. Can someone be read from the attached log file?
> Or I'll have to conserve the previous version of the standalone for my ConTeXt applications?
>
> I can, if necessary, to send my module…
Please provide also a short example for the problem.
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Last standalone version suddenly will not load user module
2013-06-05 18:26 Last standalone version suddenly will not load user module Jaroslav Hajtmar
2013-06-05 18:38 ` Wolfgang Schuster
@ 2013-06-05 19:50 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-06-05 19:50 UTC (permalink / raw)
To: ntg-context
On 6/5/2013 8:26 PM, Jaroslav Hajtmar wrote:
> Hello ConTeXist.
> For several years, I use very often my library for processing CSV
> tables. Even 2 months ago worked flawlessly in both versions (standalone
> version and ConTeXt TeXLive 2012). I am update standalone version fairly
> often (at least one times for two months).
> Unfortunately, today I found out that my latest standalone version fails
> to load the library and the compilation is complete with an error message.
if the file is not in the local path, you need to use --global
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Last standalone version suddenly will not load user module
[not found] ` <4E13DC2A-7A58-47F6-9245-7D1E246ADD88@gmail.com>
@ 2013-06-05 22:19 ` Jaroslav Hajtmar
2013-06-05 22:24 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Jaroslav Hajtmar @ 2013-06-05 22:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanx very much Wolfgang.
Now is all OK. Unfortunately now is necessary have one version of module
for TeXLive version of ConTeXt and second version of module for
standalone version.
But it's not much of a problem now for me...
I am afraid, that in the future will my module problematic again and
without help I will lose it.
Now very much thanx for your help. I will not have sleepless night...
Jaroslav Hajtmar
Dne 5.6.2013 22:47, Wolfgang Schuster napsal(a):
> Am 05.06.2013 um 22:26 schrieb Jaroslav Hajtmar <hajtmar@gyza.cz>:
>
>> Hello Wolfgang.
>> Thanks very much for your interest in my problem.
>> I am sending a library and very simple example. When I compile example by ConTeXt Lexlive 2012, then is OK - flawless. When I use last standalone version to compile then compilation ending with error message.
>> I note that about two years I have successfully used the module. Just two months ago it managed standalone version. Standalone version don't work till in last version now.
>>
>> If the error does not reveal, I'll probably have to use the module only in old versions Context. I really need it too often for my job. Processing large bulk data.
>>
>> I do not know whether it makes sense to send this mail to the mailing list, so I send it to you privately.
> The fixes are simple:
>
> 1. Don’t escape braces ("{” and "}"), e.g. line 169 has to be
>
> context.setvalue("hc"..thirddata.scancsv.ar2colnum(i),'{\\bch'..thirddata.scancsv.gCSV[i]..'\\ech}')
>
> and not
>
> context.setvalue("hc"..thirddata.scancsv.ar2colnum(i),'\{\\bch'..thirddata.scancsv.gCSV[i]..'\\ech\}')
>
>
> 2. There is a \ missing in line 248 for the \par command. You wrote
>
> infomakra=infomakra..'\par'
>
> but it has to be
>
> infomakra=infomakra..'\\par'
>
> Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Last standalone version suddenly will not load user module
2013-06-05 22:19 ` Jaroslav Hajtmar
@ 2013-06-05 22:24 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-06-05 22:24 UTC (permalink / raw)
To: ntg-context
On 6/6/2013 12:19 AM, Jaroslav Hajtmar wrote:
> I am afraid, that in the future will my module problematic again and
> without help I will lose it.
> Now very much thanx for your help. I will not have sleepless night...
as has been mentioned a few times before: lua 5.2 is more strict in
permitted escapes, so unless > 5.2 changes that policy you're okay
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-05 22:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-05 18:26 Last standalone version suddenly will not load user module Jaroslav Hajtmar
2013-06-05 18:38 ` Wolfgang Schuster
[not found] ` <51AF9EFC.50209@gyza.cz>
[not found] ` <4E13DC2A-7A58-47F6-9245-7D1E246ADD88@gmail.com>
2013-06-05 22:19 ` Jaroslav Hajtmar
2013-06-05 22:24 ` Hans Hagen
2013-06-05 19:50 ` 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).