From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21417 Path: news.gmane.org!not-for-mail From: Brooks Moses Newsgroups: gmane.comp.tex.context Subject: RFE: Better error messages for \usemodule Date: Sat, 16 Jul 2005 17:13:02 -0700 Message-ID: <4.3.1.2.20050716165908.01d2d008@cits1.stanford.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1121559208 31986 80.91.229.2 (17 Jul 2005 00:13:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 00:13:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 02:13:19 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DtwmH-00026D-4N for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2005 02:13:05 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CBA3D127BA; Sun, 17 Jul 2005 02:13:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04419-01; Sun, 17 Jul 2005 02:12:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE0EC12795; Sun, 17 Jul 2005 02:12:55 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7CCB12795 for ; Sun, 17 Jul 2005 02:12:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02339-04 for ; Sun, 17 Jul 2005 02:12:52 +0200 (CEST) Original-Received: from smtp3.Stanford.EDU (smtp3.Stanford.EDU [171.67.16.138]) by ronja.ntg.nl (Postfix) with ESMTP id 5942012792 for ; Sun, 17 Jul 2005 02:12:51 +0200 (CEST) Original-Received: from mindolluin.stanford.edu (DNab42a544.Stanford.EDU [171.66.165.68]) by smtp3.Stanford.EDU (8.12.11/8.12.11) with ESMTP id j6H0Cm2H026014 for ; Sat, 16 Jul 2005 17:12:49 -0700 X-Sender: brooks@cits1.stanford.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Original-To: ConTeXt users list X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21417 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21417 Just now, I was trying to figure out how to write a module that ConTeXt would load. Should be simple, right? I wrote a file called "t-mymodule.tex", put it in a directory next to a test file that had the line "\usemodule[mymodule]", and tried processing it. After scratching my head over "no macros found in module mymodule", I decided to try replacing the line with "\input{t-mymodule}". This produced the very cryptic result of a "I can't find the file 't-mymodule'. Please type another filename:" error. However, simply using "t-mymodule" as a replacement filename worked fine. Eventually, after much consternation, I tracked the problem down to the fact that ConTeXt truncates input file names to 8 letters. Thus, my \usemodule command was looking for files called "t-mymodu" and so forth. Given the amount of trouble that I had with figuring that out, I'd like to suggest the following enhancement: can the "no modules found in..." and "I can't find the file..." errors be adjusted so that they give the shortened file name that ConTeXt is actually looking for, rather than the long file name? I would also tend to suggest that "no macros found in module..." is a fairly misleading error message anyway, since it seems to imply that the module file itself was found. It is particularly unclear given that it _doesn't_ show up if the module file exists but contains no macros! - Brooks