ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Error Line Number
@ 2012-01-12  0:15 Kip Warner
  2012-01-12 10:13 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Kip Warner @ 2012-01-12  0:15 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 3478 bytes --]

Hey folks,

I get the following error message when attempting to compile my book,
but it doesn't appear to say what file / line number is responsible. Is
there a way to turn on file / line error messages, akin to what one sees
with gcc?

$ context Source/Handbook.tex --result="Handbook.pdf" --purgeresult

resolvers       | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers       | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context     | run 1: luatex
--fmt="/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en" --lua="/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui" --backend="pdf" "Source/Handbook.tex" \stoptext
This is LuaTeX, Version beta-0.71.0-2011122302 (rev 4358) 
 \write18 enabled.

resolvers       > resolving > loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(Source/Handbook.tex

ConTeXt  ver: 2011.12.31 18:06 MKIV  fmt: 2012.1.11  int:
english/english

system          > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > Handbook.top loaded
(Handbook.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv)
(/usr/share/texmf/tex/context/base/type-otf.mkiv)
files           > readfile > asked name: 'loc', not found
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > defining > forced type afm of stmary10 not found
fonts           > defining > font with asked name 'stmary10' is not
found using lookup 'file'
fonts           > virtual math > loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fonts           > defining > forced type afm of stmary10 not found
fonts           > defining > font with asked name 'stmary10' is not
found using lookup 'file'
fonts           > virtual math > loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fonts           > defining > forced type afm of stmary10 not found
fonts           > defining > font with asked name 'stmary10' is not
found using lookup 'file'
fonts           > virtual math > loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fonts           > fallback modern rm 12pt is loaded
(Source/Environment.tex
resolvers       > modules > loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv<
+ /usr/share/texmf/tex/context/base/x-mathml.lua>)
resolvers       > modules > loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading         > ConTeXt User Module / Simplefonts
<+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>)
fonts           > beware: fontclass ignored (if needed use:
[fontclass][size][settings])
)
! Missing } inserted.
<inserted text> 
                }
<to be read again> 
                   \vfill 
l.23     \vfill
               
? 

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Error Line Number
  2012-01-12  0:15 Error Line Number Kip Warner
@ 2012-01-12 10:13 ` Hans Hagen
  2012-01-12 19:11   ` Kip Warner
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2012-01-12 10:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Kip Warner

On 12-1-2012 01:15, Kip Warner wrote:
> Hey folks,
>
> I get the following error message when attempting to compile my book,
> but it doesn't appear to say what file / line number is responsible. Is
> there a way to turn on file / line error messages, akin to what one sees
> with gcc?

such a message comes from stored macros so there is no such information

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] 7+ messages in thread

* Re: Error Line Number
  2012-01-12 10:13 ` Hans Hagen
@ 2012-01-12 19:11   ` Kip Warner
  2012-01-13  9:08     ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: Kip Warner @ 2012-01-12 19:11 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 414 bytes --]

On Thu, 2012-01-12 at 11:13 +0100, Hans Hagen wrote:
> such a message comes from stored macros so there is no such
> information

So when you have a book of hundreds of pages in length split up over
dozens of tex files and ConTeXt emits an error, how do you know what
file / line number to examine?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Error Line Number
  2012-01-12 19:11   ` Kip Warner
@ 2012-01-13  9:08     ` luigi scarso
  2012-01-13 13:36       ` Hans Hagen
  2012-01-13 23:55       ` Kip Warner
  0 siblings, 2 replies; 7+ messages in thread
From: luigi scarso @ 2012-01-13  9:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

On Thu, Jan 12, 2012 at 8:11 PM, Kip Warner <kip@thevertigo.com> wrote:

> On Thu, 2012-01-12 at 11:13 +0100, Hans Hagen wrote:
> > such a message comes from stored macros so there is no such
> > information
>
> So when you have a book of hundreds of pages in length split up over
> dozens of tex files and ConTeXt emits an error, how do you know what
> file / line number to examine?
>
Usually the strategy is to isolate the culprit by including progressively
lengthy  chunks of tex
from the begin to end
and then narrowing the selection until you find a macro or paragraph.
Then surround it with
\tracingall
...
\trancingnone
and you have a *huge* amount of informations.

(btw, discover where an error happens  it's  known to be problematic due
the inherently asynchronous nature of TeX
and the   macro programming language, where expansion can be  very hard to
understand)
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Error Line Number
  2012-01-13  9:08     ` luigi scarso
@ 2012-01-13 13:36       ` Hans Hagen
  2012-01-13 23:55       ` Kip Warner
  1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2012-01-13 13:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 13-1-2012 10:08, luigi scarso wrote:> \tracingall

\loggingall is faster (only log)

> ....
> \trancingnone
> and you have a *huge* amount of informations.

-----------------------------------------------------------------
                                           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] 7+ messages in thread

* Re: Error Line Number
  2012-01-13  9:08     ` luigi scarso
  2012-01-13 13:36       ` Hans Hagen
@ 2012-01-13 23:55       ` Kip Warner
  2012-01-14  8:29         ` luigi scarso
  1 sibling, 1 reply; 7+ messages in thread
From: Kip Warner @ 2012-01-13 23:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 872 bytes --]

On Fri, 2012-01-13 at 10:08 +0100, luigi scarso wrote:
> Usually the strategy is to isolate the culprit by including progressively
> lengthy  chunks of tex
> from the begin to end
> and then narrowing the selection until you find a macro or paragraph.
> Then surround it with
> \tracingall
> ...
> \trancingnone
> and you have a *huge* amount of informations.
> 
> (btw, discover where an error happens  it's  known to be problematic due
> the inherently asynchronous nature of TeX
> and the   macro programming language, where expansion can be  very hard to
> understand)

That sounds very tedious and is definitely a major problem with ConTeXt.
But like you said, it's difficult to alleviate based on how all of its
components were designed. 

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Error Line Number
  2012-01-13 23:55       ` Kip Warner
@ 2012-01-14  8:29         ` luigi scarso
  0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2012-01-14  8:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1034 bytes --]

On Sat, Jan 14, 2012 at 12:55 AM, Kip Warner <kip@thevertigo.com> wrote:

> On Fri, 2012-01-13 at 10:08 +0100, luigi scarso wrote:
> > Usually the strategy is to isolate the culprit by including progressively
> > lengthy  chunks of tex
> > from the begin to end
> > and then narrowing the selection until you find a macro or paragraph.
> > Then surround it with
> > \tracingall
> > ...
> > \trancingnone
> > and you have a *huge* amount of informations.
> >
> > (btw, discover where an error happens  it's  known to be problematic due
> > the inherently asynchronous nature of TeX
> > and the   macro programming language, where expansion can be  very hard
> to
> > understand)
>
> That sounds very tedious and is definitely a major problem with ConTeXt.
> But like you said, it's difficult to alleviate based on how all of its
> components were designed.
>
> It's not a problem of ConTeXt, it's a problem of TeX , at least when you
use a complex macro format
like LaTeX or ConTeXt. It's the nature of the macro language.


-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2012-01-14  8:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-12  0:15 Error Line Number Kip Warner
2012-01-12 10:13 ` Hans Hagen
2012-01-12 19:11   ` Kip Warner
2012-01-13  9:08     ` luigi scarso
2012-01-13 13:36       ` Hans Hagen
2012-01-13 23:55       ` Kip Warner
2012-01-14  8:29         ` luigi scarso

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).