From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oLJNABYLWGey/AAAqHPOHw:P1 (envelope-from ) for ; Tue, 10 Dec 2024 09:34:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oLJNABYLWGey/AAAqHPOHw (envelope-from ) for ; Tue, 10 Dec 2024 10:34:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=NYJlec5k; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733823253; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PtP2oELUigrb9BKRe3uqJCgjz8QpC9LbtEu3R/Ut3uI=; b=MybNh3raJZ5Ds2qdM7NYT/fSg9AlOrBHyv9fGU9gOmRE1jQEtekQTXWLH2ieTPN58HBDMk aBUAwURrNDVCE7a1JHAUvzZCCDToMjeUEp1iG6GV/F/KXG5OayFEhaXsGImZfcn1esbl62 fSBETVpTSND87zTKuWorzc/V8gCCrxSxJ5zSCoOT3WMTNGsyO/kOBBFj5rk8d7ihHNWN78 wH0eou+O3LxloWtrWOs7lULnEvv6hYHLoG8I8hdd9OKol1qdUYxPcJUw/R51iNGeg3DBDd AyZz3BKhv0HtAouQDfbISG6Q7wBAuIivWW2Hc4HR/RI5yLz/bhHeLIQPogQt7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=NYJlec5k; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733823253; a=rsa-sha256; cv=none; b=ZC45xw96qIegd9dLEBYN+5vDInv7PXNV8QDe94KR6QKisjJEw1oeGaAfNWBEQQKAFW56Hk k+Yv5mCdLdS8sQAPBlQC/20dU7x+U3WqSN6db5WJJ7UTWVJi645i418pY55fQJsIkQ1s1E 3b7oWICPyWxMZggz3RN5/QAymzSpbE//lDuU0IYWK/kM271zujJqVPkHsnZDARmTg38cg3 WmnrZQrWCsWtqHJ8b1SdMzgpGyTA7NX/puYX02gaSFA2/60Lu7KpXqw3UO7W42RCLzAvwi 9Er0LCPsAOaCS6v3Aj91LkINwfkP3LXdItcSbPH1n8G/Uv+KWilcC2z+Eu4wGw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D47647F91 for ; Tue, 10 Dec 2024 10:34:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKw4q-0006pf-KB; Tue, 10 Dec 2024 03:58:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKw4p-0006pU-8p for emacs-orgmode@gnu.org; Tue, 10 Dec 2024 03:58:43 -0500 Received: from mail-yb1-xb29.google.com ([2607:f8b0:4864:20::b29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKw4l-0004gV-Mh for emacs-orgmode@gnu.org; Tue, 10 Dec 2024 03:58:42 -0500 Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-e2bd7d8aaf8so3987262276.3 for ; Tue, 10 Dec 2024 00:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733821118; x=1734425918; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=knvnp8l5JcOtfsMrnDtUKMCkcJ0v5mC1nzUWvym0Lqc=; b=NYJlec5kzkgdnddCkJIB296XOiOYY70oOej38IHbrsvWpL7VHcLTn7bPLP/Tj6XwMa FXwNcWjTOMTQGYrwRN1HtpYNudRmxJZFYdJXdk88svrD2WMEOX0KBL4wNvj/sCXzxEat ozLC3//xWsptaHoIKrlfYP/Ib8xvjFeVZFSmQFaFAPFVhzhhpnENS4WYTzah0UWz4kwA IaaSOV0gYQcPvEkjnjNQtFfLZewZ516Gko/Ywcx+mrv9t2UFH/pncwtPYbiTOvGfhefN AM/FAQjlS6VyTCI6iQWb9pLm1zfGgfyIZF/U5Uz8wXVCHWCzVWYn+44uwYgzJeeXM0RG r/XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733821118; x=1734425918; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=knvnp8l5JcOtfsMrnDtUKMCkcJ0v5mC1nzUWvym0Lqc=; b=ZNqfr1+K+gBS9B1TKzr5oe4k9AS9SYmNI0xVrmj5pO5LoCIDaVjLNb6E5rIoIvowOJ X0z7puJjQ/dMktLQTOQGC+nQIhtQVv6Kgh/lNGAqQilEQl9zQgqGn1jhSsWxB8E8GdBq wXfcx5aGFIsJ2c3aEfIXMoUzIEi0glIxEXm6dOCNMsP2DOAnrGHY5QTEwI13FFfWOuBx M6VtxSS2hS3Nm4PwSkpZh1BXG39n+fV4UVY1AvmsqzCsaw1vGAfYAQ7a92skOjgBh7/j 5S2E3umYBPeqUA46iB6jLwlycPOConcxuo8jQo6RhWFwLUGcHAl3f0QC27XMhcwGMoXn L56g== X-Forwarded-Encrypted: i=1; AJvYcCUrMturaT69LcWHH4t5dLj1qMAZIaGSKCc7MZsaLFw9Oli1MZOeKYUXhb0W3K2Frz+ZVC7WtriG1RTPtbw6@gnu.org X-Gm-Message-State: AOJu0YwcKeHMWI6y7taBjyU/Kplm728G6JLKDejG9apj7m1btAYwDMzW e0BnoapZ/PjLxOuERdAXEsK4IqVY9KVVYpaVurUBjEUkEl+54rnd0FCS9y7TuyNRJ9s0Vt2ppf6 g98spExVj4reGtF5k9yiRmiJaUtY= X-Gm-Gg: ASbGncsLeZE2enFLalCc4UNXWruSdnv98R9/utM9j0Dmmxux316XFx+k11u5jlUJNe9 TlTxFHbe6gbJqPNFI5SscAjBgu0mkE39Mk1iF X-Google-Smtp-Source: AGHT+IGV/8DMjFavD92DbhC+r4vK9z3ZDUr7KFVwYPbUhX2sHgOqG4Gm6be28dcT87EXPWoHg4RPolMhzGA/J6UzeoM= X-Received: by 2002:a05:6902:2881:b0:e39:7a24:a5c3 with SMTP id 3f1490d57ef6-e3a59be442dmr3330737276.32.1733821117626; Tue, 10 Dec 2024 00:58:37 -0800 (PST) MIME-Version: 1.0 References: <87ikv3o33d.fsf@localhost> <87h6aejf17.fsf@localhost> <87tte8qakc.fsf@localhost> <87ed3sgptk.fsf@localhost> <87ldxysqoo.fsf@localhost> <874j4gfocp.fsf@localhost> <87ttccs1vc.fsf@localhost> <878qt9yd69.fsf@localhost> <87plm2e50v.fsf@localhost> <87h67cx569.fsf@t14.reltub.ca> <874j3cvcew.fsf@t14.reltub.ca> In-Reply-To: <874j3cvcew.fsf@t14.reltub.ca> From: Benjamin McMillan Date: Tue, 10 Dec 2024 21:58:11 +1300 Message-ID: Subject: Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS To: Leo Butler Cc: Ihor Radchenko , "emacs-orgmode@gnu.org" Content-Type: multipart/mixed; boundary="000000000000d2582c0628e6afd1" Received-SPF: pass client-ip=2607:f8b0:4864:20::b29; envelope-from=mcmillanbb@gmail.com; helo=mail-yb1-xb29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam: Yes X-Migadu-Spam: Yes X-Migadu-Spam-Score: 9.34 X-Spam-Score: 9.34 X-Migadu-Queue-Id: 5D47647F91 X-Migadu-Scanner: mx11.migadu.com X-TUID: BI1CBEJxCfhN --000000000000d2582c0628e6afd1 Content-Type: multipart/alternative; boundary="000000000000d2582b0628e6afcf" --000000000000d2582b0628e6afcf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Leo, I get the following output: #+RESULTS: #+begin_example (linenum:0, #+end_example and from *messages*: Executing Maxima source code block maxima -r \(linenum\:0\,\ batchload\(\"/var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T/babel-wImUPJ/= maxima-Swf2M2.max\"\)\)\$ --very-quiet Wrote /var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T/babel-wImUPJ/ob-input-Rbgt= zp Code block evaluation complete (took 0.1s). The contents of that file (which I also attach) are: build_info(); If there's more information I can give, just let me know. Thanks, Benjamin On Tue, Dec 10, 2024 at 9:17=E2=80=AFAM Leo Butler wrote: > On Mon, Dec 09 2024, Leo Butler wrote: > > > On Sun, Dec 08 2024, Ihor Radchenko wrote: > > > >> Benjamin McMillan writes: > >> > >>> This outputs > >>> #+RESULTS: > >>> | (linenum:0, | > >>> | 4 | > >>> > >>> I suppose the issue is the "linenum:0". In fact, running any of the > test > >>> src blocks does that, e.g. > >>> #+begin_src maxima :results verbatim :batch batch > >>> (assume(z>0), > >>> integrate(exp(-t)*t^z, t, 0, inf)); > >>> #+end_src > >>> > >>> #+RESULTS: > >>> #+begin_example > >>> (linenum:0, > >>> (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf)) > >>> gamma(z + 1) > >>> #+end_example > >>> This does not match the (should (equal ...)) in test-ob-maxima.el > >>> > >>> I don't know maxima, and haven't made any explicit modifications > regards > >>> it, so I don't know why my setup would be outputting linenum:0 > > Benjamin, > When you execute your source code block, ob-maxima prints the shell > command as a message. Could you copy that shell command from *Messages* > and send it, along with the batch file that ob-maxima creates? > > Thanks, > Leo > > >> > >> Setting linenum was introduced in > >> https://list.orgmode.org/orgmode/87jzsrai3x.fsf@localhost/ > >> > >> It clearly does not affect Linux, but Maxima on MacOS appears to have > >> slightly different behavior. > >> > >> I am CCing the author of the original patch that introduced this > setting. > >> Leo, maybe you have some insight? > >> > >> Unless we can do something to solve the problem on Mac, I am tentative= ly > >> inclined to revert the linenum part of the patch, so that ob-maxima is > >> not broken on MacOS. > > > > Benjamin, > > Could you include the output of > > > > #+begin_src maxima :results verbatim > > build_info(); > > #+end_src > > > > , please? I think the bug is in the Mac build of Maxima, but I need mor= e > > information to figure it out. > > > > Best, > > Leo --000000000000d2582b0628e6afcf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Leo,
I get the following output:
#+RESULTS:
#+begin_example
(linenum:0,
#+end_example

= and from *messages*:

Executing Maxima source code block
maxima -r= \(linenum\:0\,\ batchload\(\"/var/folders/f5/6nrph1812wdf0nlg4ddcs_58= 0000gn/T/babel-wImUPJ/maxima-Swf2M2.max\"\)\)\$ =C2=A0--very-quiet
= Wrote /var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T/babel-wImUPJ/ob-inpu= t-Rbgtzp
Code block evaluation complete (took 0.1s).

The contents= of that file (which I also attach) are:

build_info();

If there's more information I can give, just let me kn= ow.
Thanks,
Benjamin

On Tue, Dec 10, 2024 at 9:17=E2=80=AFAM Leo Butler <Leo.Butler@umanitoba.ca> wrote:
On Mon, Dec 09 2024, Leo= Butler <Le= o.Butler@umanitoba.ca> wrote:

> On Sun, Dec 08 2024, Ihor Radchenko <yantar92@posteo.net> wrote:
>
>> Benjamin McMillan <mcmillanbb@gmail.com> writes:
>>
>>> This outputs
>>> #+RESULTS:
>>> | (linenum:0, |
>>> |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A04 |
>>>
>>> I suppose the issue is the "linenum:0". In fact, run= ning any of the test
>>> src blocks does that, e.g.
>>> #+begin_src maxima :results verbatim :batch batch
>>> (assume(z>0),
>>> integrate(exp(-t)*t^z, t, 0, inf));
>>> #+end_src
>>>
>>> #+RESULTS:
>>> #+begin_example
>>> (linenum:0,
>>> (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))
>>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 gamma(z + 1)
>>> #+end_example
>>> This does not match the (should (equal ...)) in test-ob-maxima= .el
>>>
>>> I don't know maxima, and haven't made any explicit mod= ifications regards
>>> it, so I don't know why my setup would be outputting linen= um:0

Benjamin,
When you execute your source code block, ob-maxima prints the shell
command as a message. Could you copy that shell command from *Messages*
and send it, along with the batch file that ob-maxima creates?

Thanks,
Leo

>>
>> Setting linenum was introduced in
>> https://list.orgmode.org/orgmode/= 87jzsrai3x.fsf@localhost/
>>
>> It clearly does not affect Linux, but Maxima on MacOS appears to h= ave
>> slightly different behavior.
>>
>> I am CCing the author of the original patch that introduced this s= etting.
>> Leo, maybe you have some insight?
>>
>> Unless we can do something to solve the problem on Mac, I am tenta= tively
>> inclined to revert the linenum part of the patch, so that ob-maxim= a is
>> not broken on MacOS.
>
> Benjamin,
> Could you include the output of
>
> #+begin_src maxima :results verbatim
> build_info();
> #+end_src
>
> , please? I think the bug is in the Mac build of Maxima, but I need mo= re
> information to figure it out.
>
> Best,
> Leo
--000000000000d2582b0628e6afcf-- --000000000000d2582c0628e6afd1 Content-Type: application/octet-stream; name="maxima-dtnZ7x.max" Content-Disposition: attachment; filename="maxima-dtnZ7x.max" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m4i87vyu0 CmJ1aWxkX2luZm8oKTs= --000000000000d2582c0628e6afd1--