From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87120 Path: news.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: Line number in "tex error" Date: Fri, 25 Apr 2014 06:44:45 +0200 Message-ID: References: <53597A38.9080900@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1398401116 17150 80.91.229.3 (25 Apr 2014 04:45:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2014 04:45:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 25 06:45:07 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WdY0W-00042Q-N3 for gctc-ntg-context-518@m.gmane.org; Fri, 25 Apr 2014 06:45:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11F6B1026E for ; Fri, 25 Apr 2014 06:45:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 78PaKWtsxvTh for ; Fri, 25 Apr 2014 06:45:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D5EA510251 for ; Fri, 25 Apr 2014 06:45:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 447FF101F2 for ; Fri, 25 Apr 2014 06:44:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id i1beQc0lWxpG for ; Fri, 25 Apr 2014 06:44:54 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id ABCFA101E8 for ; Fri, 25 Apr 2014 06:44:46 +0200 (CEST) Original-Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3P556re006583 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 25 Apr 2014 07:05:06 +0200 Original-Received: by mail-wg0-f49.google.com with SMTP id a1so3144302wgh.20 for ; Thu, 24 Apr 2014 21:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=W24VK3ucT4hf5FrGRSwQvKXLP613uZx0P5bd35n5LZ0=; b=V2zHdTck/JOCHpGYpV+26IRQg8vI+nogAFXxL2VAdcxuhRl+I6fDETKZsLogZsRQs9 YQ/eIaAgyp2k+QKTl1poYOvf9b35rafRFbEwGdUqkkUn2PLh3AuultLhocMO/jXBT0my JjOiTv4ZHYcm/stHQCmvcWnYFdYROf029sXiEoCeNe4MzO1fiiZQFLZwgfJORcA3t/+w MFQ2mPUlWc/wn5rIok1REIRCXZq4HwmghuNslAwlb/u62MmV2v0YKNaql1LIUVj3Wk9v QDbyggiOO3IZTZqnf8DgI2L3eeMHuVZBWvyy2AKsyBpFq3etyHaPCh77xZYeq2jopplE FX9g== X-Received: by 10.180.74.203 with SMTP id w11mr1825938wiv.27.1398401085657; Thu, 24 Apr 2014 21:44:45 -0700 (PDT) Original-Received: by 10.180.93.72 with HTTP; Thu, 24 Apr 2014 21:44:45 -0700 (PDT) In-Reply-To: <53597A38.9080900@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LS556Bf - 8ff3fe0921d9 - 20140425 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87120 Archived-At: On Thu, Apr 24, 2014 at 10:55 PM, Hans Hagen wrote: > On 4/24/2014 10:05 PM, Mikael P. Sundqvist wrote: >> >> Hi, >> >> When running the five lines long file >> >> \starttext >> Bla bla >> \blank[foo] >> Bla bla >> \stoptext >> >> through context I get the error below (the foo in the blank is there >> to get an error, see the attached log file for the full log file). >> >> My question is why is context first telling me that the error is on >> line 8 and not 3? (In this particular example this is not a problem, >> but I'd like to grep for errors in the log file when running through >> the editor). I see that the error is later said to be at line 3... > > > It depends a bit on what luatex version you're running .. there can be > errors in the source, in some macro (defined elsewhere), in lua code ... and > context tries as good as it can to print the right code .. in this case the > error is triggered deep down (foo is an undefined blank option and so a > dimen is expected). > > 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 > ___________________________________________________________________________________ I see. I'm running the ConTeXt standalone. luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) In this case I made the error on purpose inserting foo in the blank. If I want to catch the errors from the log file, is the best way to grep for "tex error" or something else? In this case the line is not correct there, but correct when the lines of the file is printed... /Mikael ___________________________________________________________________________________ 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 ___________________________________________________________________________________