From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110391 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Rudd, Kevin" Newsgroups: gmane.comp.tex.context Subject: possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ... Date: Tue, 26 Jan 2021 12:19:42 +0000 Message-ID: <2E8E7E6E-9A65-465F-8BC4-07AC7BEBD1CE@lps.umd.edu> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3321109673126889611==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Rudd, Kevin" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 26 13:35:30 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4NZB-0007F9-Ub for gctc-ntg-context-518@m.gmane-mx.org; Tue, 26 Jan 2021 13:35:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8AC2B1C1BF0; Tue, 26 Jan 2021 13:35:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vDYdxXXtXSD6; Tue, 26 Jan 2021 13:35:12 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A28471C1BF9; Tue, 26 Jan 2021 13:35:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 27BAC1C1C27 for ; Tue, 26 Jan 2021 13:35:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 81HghcmY9EmV for ; Tue, 26 Jan 2021 13:35:11 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=129.2.108.16; helo=smtp.lps.umd.edu; envelope-from=kevin@lps.umd.edu; receiver= X-Greylist: delayed 904 seconds by postgrey-1.36 at zapf.ntg.nl; Tue, 26 Jan 2021 13:35:11 CET Original-Received: from SMTP.lps.umd.edu (smtp.lps.umd.edu [129.2.108.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 241CA1C1BD5 for ; Tue, 26 Jan 2021 13:35:10 +0100 (CET) Original-Received: from LPS-ExchDB2.lps.umd.edu (129.2.108.18) by SMTP.lps.umd.edu (129.2.108.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 26 Jan 2021 07:20:02 -0500 Original-Received: from LPS-ExchDB2.lps.umd.edu (2002:8102:6c12::8102:6c12) by LPS-ExchDB2.lps.umd.edu (2002:8102:6c12::8102:6c12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 26 Jan 2021 07:19:43 -0500 Original-Received: from LPS-ExchDB2.lps.umd.edu ([129.2.108.18]) by LPS-ExchDB2.lps.umd.edu ([129.2.108.18]) with mapi id 15.00.1497.006; Tue, 26 Jan 2021 07:19:43 -0500 Thread-Topic: possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ... Thread-Index: AQHW892GSEqaRJGQZU6mEgyOX5byUg== Accept-Language: en-US Content-Language: en-US x-mailer: Apple Mail (2.3445.104.17) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [68.134.227.245] X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:110391 Archived-At: --===============3321109673126889611== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_2E8E7E6E9A65465F8BC407AC7BEBD1CElpsumdedu_" --_000_2E8E7E6E9A65465F8BC407AC7BEBD1CElpsumdedu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi--- I have a number of included figures that work in 20200920 but not in the cu= rrent 20210124 version. There's a project structure that sets everything up= but after that they are input as a figure: \startplacefigure[title=3D{NS Hierarchy}, reference=3D{f:ns-hierarchy}] \input ns_hierarchy \stopplacefigure and generate the error: metafun > log > error: Not implemented: (unknown numeric)=3D(string= ) metafun > log > metapost > log > metapost > log > metapost > log > , metapost > log > <*> make_BoxRow [ name =3D "Parent", metafun > log > metafun > log > I'm afraid I don't know how to apply that operation= to that combination of types. Continue, and I'll return the second argument (see above) as the result of = theoperation. metafun > log > metapost > log > label =3D "Pare= nt Root Namespace", ]; ; >From triaging, it looks like the "boxrow.mp" file isn't being input by the = current version from within the MPinclusions block associated with the MPin= stance; the error appears to be spurious as a result of make_BoxRow not bei= ng defined and doesn't occur in the old version where the file is input. "b= oxrow.mp" is not in the same directory as the document but is in the config= ured through the usepath/usesubpath interface from an environment file. I can put together and share a runnable MWE set of files if this informatio= n is not complete enough to identify the problem. Here is the MWE that I used for the input figure file that demonstrates the= problem. \defineMPinstance[ns_hier] [ format=3Dmetafun, extensions=3Dyes, initializations=3Dyes, method=3Ddouble, ] \startMPinclusions{ns_hier} input boxrow \stopMPinclusions \startMPdefinitions{ns_hier} % nothing to see here.... \stopMPdefinitions \startMPcode{ns_hier} make_BoxRow [ name =3D "Parent", label =3D "Parent Root Namespace", ]; \stopMPcode Thanks for any feedback, ---K Kevin W. Rudd, Ph.D. CAPT, USN (Ret) Computer Architecture & Computer Engineering Advanced Computing Systems (ACS) Research Program Laboratory for Physical Sciences (LPS) 443-654-7878 kevin@lps.umd.edu Visiting Research Professor United States Naval Academy rudd@usna.edu --_000_2E8E7E6E9A65465F8BC407AC7BEBD1CElpsumdedu_ Content-Type: text/html; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable
Hi---

I have a number of included figures that work in 20200920 b= ut not in the current 20210124 version. There's a project structure that se= ts everything up but after that they are input as a figure:

      =       \startplacefigure[title=3D{NS Hierarchy},
      =                      = ;   reference=3D{f:ns-hierarchy}]
      =           \input ns_hierarchy
      =       \stopplacefigure

and generate the error:

metafun    =     > log > error: Not implemented: (unknown numeric)=3D(s= tring)
metafun    =     > log >
metapost    = ;    > log > 
metapost    = ;    > log > <to be read again> 
metapost    = ;    > log >             &nbs= p;      ,
metapost    = ;    > log > <*>  make_BoxRow [ name =3D "P= arent",
metafun    =     > log >
metafun    =     > log > I'm afraid I don't know how to apply that oper= ation to that combination of types.
Continue, and I'll re= turn the second argument (see above) as the result of theoperation.<= /div>
metafun    =     > log >
metapost    = ;    > log >             &nbs= p;                     &n= bsp; label =3D "Parent Root Namespace", ]; ;

From triaging, it looks like the "boxrow.mp" file= isn't being input by the current version from within the MPinclusions bloc= k associated with the MPinstance; the error appears to be spurious as a res= ult of make_BoxRow not being defined and doesn't occur in the old version where the file is input. "boxrow.mp" is= not in the same directory as the document but is in the configured through= the usepath/usesubpath interface from an environment file.

I can put together and share a runnable MWE set of files if= this information is not complete enough to identify the problem.

Here is the MWE that I used for the input figure file that = demonstrates the problem.

\defineMPinstance[ns_hier]
[
    format= =3Dmetafun,
    extensi= ons=3Dyes,
    initial= izations=3Dyes,
    method= =3Ddouble,
]

\startMPinclusions{ns= _hier}
    input b= oxrow
\stopMPinclusions

\startMPdefinitions{n= s_hier}
    % nothi= ng to see here....
\stopMPdefinitions

\startMPcode{ns_hier}=

    make_Bo= xRow
    [
      =   name           =3D "Parent",
      =   label          =3D "Parent Root Namesp= ace",
    ];

\stopMPcode

Thanks for any feedback,
 ---K

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering 
Advanced Computing Systems (ACS) Research Program 
Laboratory for Physical Sciences (LPS) 

443-654-7878 
kevin@lps.umd.edu

Visiting Research Professor
United States Naval Academy

rudd@usna.edu


--_000_2E8E7E6E9A65465F8BC407AC7BEBD1CElpsumdedu_-- --===============3321109673126889611== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3321109673126889611==--