emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Benjamin McMillan <mcmillanbb@gmail.com>
To: Leo Butler <Leo.Butler@umanitoba.ca>
Cc: Ihor Radchenko <yantar92@posteo.net>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS
Date: Tue, 10 Dec 2024 21:58:11 +1300	[thread overview]
Message-ID: <CALo8A5Ua7b+1yK36AF+87OZmAddi3WXmfy0kH=RoWPTO_sFd-g@mail.gmail.com> (raw)
In-Reply-To: <874j3cvcew.fsf@t14.reltub.ca>


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

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-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 know.
Thanks,
Benjamin

On Tue, Dec 10, 2024 at 9:17 AM Leo Butler <Leo.Butler@umanitoba.ca> wrote:

> On Mon, Dec 09 2024, Leo Butler <Leo.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, |
> >>> |           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 tentatively
> >> 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 more
> > information to figure it out.
> >
> > Best,
> > Leo

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

[-- Attachment #2: maxima-dtnZ7x.max --]
[-- Type: application/octet-stream, Size: 14 bytes --]


build_info();

  reply	other threads:[~2024-12-10  9:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-01  4:35 [BUG] export blocks no longer fontifying [9.7.10 (release_9.7.10 @ /Users/ben/Scripts/emacs/lisp/org/)] Benjamin McMillan
2024-09-10 17:01 ` Ihor Radchenko
2024-09-16 14:27   ` Benjamin McMillan
2024-09-17 12:29     ` Benjamin McMillan
2024-09-17 18:44       ` Ihor Radchenko
     [not found]         ` <CALo8A5Vm-gik0qQC7KacNg7kN2VzL0Y1e8_LXxV8S7-we9CYSw@mail.gmail.com>
2024-09-22  9:53           ` Ihor Radchenko
2024-09-23 13:17             ` Benjamin McMillan
2024-11-03 18:00               ` Ihor Radchenko
2024-11-04 12:58                 ` Benjamin McMillan
2024-11-04 20:13                   ` Ihor Radchenko
2024-11-05  1:00                     ` Benjamin McMillan
2024-11-09 14:55                       ` Ihor Radchenko
2024-11-10 13:26                         ` Benjamin McMillan
2024-11-12 19:12                           ` Ihor Radchenko
2024-11-14  5:59                             ` Benjamin McMillan
2024-11-23 19:15                               ` Ihor Radchenko
2024-11-24  6:02                                 ` Benjamin McMillan
2024-12-08 12:24                                   ` [BUG] ob-maxima outputs linenum:0 in results on MacOS (was: [BUG] export blocks no longer fontifying [9.7.10 (release_9.7.10 @ /Users/ben/Scripts/emacs/lisp/org/)]) Ihor Radchenko
2024-12-09 15:11                                     ` [BUG] ob-maxima outputs linenum:0 in results on MacOS Leo Butler
2024-12-09 20:17                                       ` Leo Butler
2024-12-10  8:58                                         ` Benjamin McMillan [this message]
2024-12-10 18:02                                           ` Leo Butler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALo8A5Ua7b+1yK36AF+87OZmAddi3WXmfy0kH=RoWPTO_sFd-g@mail.gmail.com' \
    --to=mcmillanbb@gmail.com \
    --cc=Leo.Butler@umanitoba.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).