emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ob-ledger@tangential.info
To: emacs-orgmode@gnu.org
Subject: ob-ledger errors quietly
Date: Fri, 20 Mar 2020 07:46:32 -0700	[thread overview]
Message-ID: <92c88f77-861e-4411-a639-406455dcc481@www.fastmail.com> (raw)

Hello all,

With the following,

(org-babel-do-load-languages
 'org-babel-load-languages
 '((ledger . t)))

And

#+BEGIN_SRC ledger
1970-01-01 example
 A  1
 B
#+END_SRC

Upon typing C-c C-c, I see no errors in echo area, but there is an error hiding in *Messages* buffer, I've included it at the end of this message.

I think more ideal would be if at least there was something in the echo area about the error. I began assuming otherwise, such as maybe ob-ledger was not really a working thing.

I checked the following in a terminal, and the exit code was 1, via "echo $?".

"printf '1970-01-01 example\n A  1\n B' | ledger -f - bal"

Regards,
-Brady

Evaluate this ledger code block on your system? (y or n) y
executing Ledger code block...
executing Ledger source code block
ledger -f /var/folders/z1/48qx4zkd7fzd7phhvlvl01w00000gn/T/babel-iM3fuM/ledger-CQlmp0 bal
While parsing file "/var/folders/z1/48qx4zkd7fzd7phhvlvl01w00000gn/T/babel-iM3fuM/ledger-CQlmp0", line 3:
While balancing transaction from "/var/folders/z1/48qx4zkd7fzd7phhvlvl01w00000gn/T/babel-iM3fuM/ledger-CQlmp0", lines 1-3:
> 1970-01-01 example
>  A  1
>  B
Unbalanced remainder is:
                   1
Amount to balance against:
                   1
Error: Transaction does not balance
Code block evaluation complete.

             reply	other threads:[~2020-03-20 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-20 14:46 ob-ledger [this message]
2020-03-20 15:45 ` ob-ledger errors quietly Eric S Fraga
2020-03-20 18:05   ` ob-ledger
2020-03-21 15:51     ` Eric S Fraga

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=92c88f77-861e-4411-a639-406455dcc481@www.fastmail.com \
    --to=ob-ledger@tangential.info \
    --cc=emacs-orgmode@gnu.org \
    /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).