-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ledger-add-xact fails in an empty buffer ignoring main ledger file #409
Comments
See the docstring of
|
Thanks for clarifying the confusion, indeed. However, even when I set these values to proper values, I still get error Here's what I add to
and I see that the variable If you could suggest how I can pin point exactly what fails and give more debugging info, I'd really appreciate that! |
Ah, I see. Looking at it now, it looks like |
Not sure there's an objectively best choice, sorry. You wouldn't necessarily want to force the current file to be saved, nor should you necessarily need all the other files included by |
Hi, I am having issues running
C-c C-a
bound toledger-add-transaction
in a new file that has no transaction. The issue is thatledger xact
executed fromledger-add-transaction
returns no matches.Relevant setup is the following:
main.journal
with includes files and contains historical transactionsnew.journal
which I create and would like to fill with new transaction usingC-c C-a
functionalityI use
ledger-mode
in Doom Emacs through straight. I have set these variables forledger-mode
:When I run
C-c C-a
with any date anduber
, ledger-mode raises error:Error: No accounts, and no past transaction matching 'uber'
However, in cli,
ledger xact 2023-11-11 uber
would give a matchI suspect the error occurs here in ledger-exec-ledger code. In fact,
(ledger-master-file)
resolves to the current buffer,new.journal
, which is empty, and so as far as I seeledger xact
is called viacall-process-region
with just contents of thenew.journal
file, i.e. with no historical transactions.Am I missing anything to make
C-c C-a
work in the config, that is, to receiveledger-init-file-name
or haveledger-master-file
properly resolved? I tried setting it as a variable, but that leads toC-c C-a
just failing with an errorLedger execution failed
. Thanks :)The text was updated successfully, but these errors were encountered: