Skip to content
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

"Nothing to reconcile" #123

Open
BackSeat opened this issue Sep 1, 2021 · 6 comments
Open

"Nothing to reconcile" #123

BackSeat opened this issue Sep 1, 2021 · 6 comments
Assignees
Labels

Comments

@BackSeat
Copy link

BackSeat commented Sep 1, 2021

Running: 96ec5f9 - (HEAD -> master, origin/master, origin/HEAD) Merge pull request #112 from kcwu/post-state (6 months ago)

Using hledger

Enter :Reconcile and I get "Nothing to reconcile"

Probably user error. What should I look for?

@insanerwayner
Copy link

I also am getting this with hedger. Something else that needs to be configured? Here's my rc:

" vim-ledger
au BufNewFile,BufRead *.ldg,*.ledger setf ledger | comp ledger
au FileType ledger noremap { ?^\d<CR>
au FileType ledger noremap } /^\d<CR>
" let g:ledger_bin = '/usr/bin/hledger'
let g:ledger_is_hledger = 1
let g:ledger_maxwidth = 80
let g:ledger_fillstring = '    -'
let g:ledger_detailed_first = 1
let g:ledger_fold_blanks = 0
let g:ledger_date_format = '%Y-%m-%d'
set nowrap
noremap <silent><buffer> <F5> :call ledger#transaction_state_toggle(line('.'), '!* ')<CR>
let g:ledger_maxwidth = 120
let g:ledger_fold_blanks = 1
function LedgerSort()
    :%! hledger -f - print
    :%LedgerAlign
    :normal Gdd
endfunction
command LedgerSort call LedgerSort()
noremap <silent><buffer> <F6> :LedgerSort<CR>

@BackSeat
Copy link
Author

@alerque I'd love to see this working. I've tried a few older versions from git history, but all give the same error.

It's Open Source: I know I get to break it and keep all the bits. If you're able to give any pointers to debugging this, I'd be very grateful (I find Vimscript a bit opaque, but with some clues I may be able to make some progress). If more information would help, just tell me what you need.

Thanks,
Keith

@alerque
Copy link
Member

alerque commented Sep 22, 2021

I'm sorry, I don't actually have a good idea what to look for on this on. I'm happy to facilitate a fix if somebody has one, but my FOSS time is kind of being sucked up by some other projects right now (and my personal finances are behind, maybe when I get to them...).

@alerque alerque added the bug label Sep 22, 2021
@parmort
Copy link
Contributor

parmort commented Aug 12, 2022

I can try to take a crack at solving this. Could you provide a sample register where you still get the same errors?

@lc-at
Copy link

lc-at commented Oct 13, 2022

Any update on this issue? I experienced the same issue.

@parmort, here is my sample register.

2022-10-14 Opening balances
        assets:checking:example  $10
        equity

2022-10-14 Grocery shop
        expenses:groceries  $5
        assets:checking:example

My .vimrc config for vim-ledger:

let g:ledger_bin = '/usr/bin/hledger'
let g:ledger_maxwidth = 120
let g:ledger_fold_blanks = 1
let g:ledger_is_hledger = 1

if !exists('g:ledger_extra_options')
        let g:ledger_extra_options = ''
endif

@alerque
Copy link
Member

alerque commented Oct 14, 2022

As far as I can see from a cursory review of the code, the Reconcile command (ledger#reconcile() function) just does not support hledger at all. The arguments it tries to pass are only compatibly with ledger. I am not in a position to contribute support for heldger at the moment but if somebody does look into it and figure out what arguments to adjust to make it work I'd be happy to facilitate getting a PR merged.

@parmort feel free to take a swing at this, or if you think you won't get to it lets note that here so somebody else can try without feeling like they may be duplicating effort.

@p4kl0nc4t Thanks for the MWE, that example does show the error for me when configured with hledger and also works as expected (I think) with ledger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants