bean-report error messages

68 views
Skip to first unread message

jke...@gmail.com

unread,
Aug 21, 2017, 12:31:18 PM8/21/17
to Beancount
Hello beancount users,

I'm running bean-check against my ledger and its giving me "No position matches" errors for entries purchasing a commodity. I don't understand what that error could mean on a purchase transaction - if I were reducing lots, it would make perfect sense, but when augmenting lots?

Does beancount have a command to anonymize input files to make it easier to share them for debugging?

Thanks!

Martin Blais

unread,
Aug 27, 2017, 12:54:09 PM8/27/17
to Beancount
There's no command to anonymize for debugging, but I can share a tip for debugging this.
What you want is to list the contents of the inventory for each of the accounts before the transaction is summed / applied.
You can do this using the "bean-doctor context" command, which accepts a filename and line number to select a particular transaction.
(If you use the Emacs support, just put the cursor over the transaction to select and type "C-c x".)
This will list the balances of each of the accounts involve prior to the transaction, the residual unbalanced amount, the tolerances for each currency, and the balances of the accounts after applying the transaction.

I hope this helps,




--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0243d101-d59a-4762-b95e-dfa407e9f7cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jke...@gmail.com

unread,
Aug 28, 2017, 7:07:08 AM8/28/17
to Beancount
Hmm, when I run that command everything looks empty. Perhaps there's something fundamentally wrong in my input file? Here's the transaction:

2016-12-22 * "Coinbase" "Bitcoin purchase"
   
Expenses:Crypto:Fees:Coinbase            0.37 USD
   
Assets:Crypto:Bitcoin                    0.02814847 BTC {871.10 USD}
   
Assets:Checking:CapitalOne             -24.89 USD

And here's what I got running bean-doctor:

joel@bregalad:~/Documents/finances/beancount$ bean-doctor context 2016ledger.org 1501
Hash:48d22ca3f707bacc38d77b051c86409d
Location: /home/joel/Documents/finances/beancount/2016ledger.org:1501

------------ Balances before transaction


------------ Transaction

2016-12-22 * "Coinbase" "Bitcoin purchase"



------------ Balances after transaction

I'm pretty sure something's amiss in my file, if its just giving me blank lines.



Le dimanche 27 août 2017 18:54:09 UTC+2, Martin Blais a écrit :
There's no command to anonymize for debugging, but I can share a tip for debugging this.
What you want is to list the contents of the inventory for each of the accounts before the transaction is summed / applied.
You can do this using the "bean-doctor context" command, which accepts a filename and line number to select a particular transaction.
(If you use the Emacs support, just put the cursor over the transaction to select and type "C-c x".)
This will list the balances of each of the accounts involve prior to the transaction, the residual unbalanced amount, the tolerances for each currency, and the balances of the accounts after applying the transaction.

I hope this helps,



On Mon, Aug 21, 2017 at 12:31 PM, <jke...@gmail.com> wrote:
Hello beancount users,

I'm running bean-check against my ledger and its giving me "No position matches" errors for entries purchasing a commodity. I don't understand what that error could mean on a purchase transaction - if I were reducing lots, it would make perfect sense, but when augmenting lots?

Does beancount have a command to anonymize input files to make it easier to share them for debugging?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.

Martin Blais

unread,
Aug 28, 2017, 11:14:03 AM8/28/17
to Beancount
One issue with the feature is that if the transaction fails and is thus skipped from the stream of parsed transactions, it won't be findable and you can't look at the context. This has a few times been annoying but I haven't addressed the problem yet.

To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages