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

omnicompletion stops working #126

Open
serici opened this issue Dec 18, 2021 · 9 comments
Open

omnicompletion stops working #126

serici opened this issue Dec 18, 2021 · 9 comments

Comments

@serici
Copy link

serici commented Dec 18, 2021

Hi,

I'm using

  • linux
  • vim 8.2
  • hledger 1.22.2

omnicompletion was working until now. When i hit tab key, omnicompletion search for a while a returns a pattern not found
What should i check to find the source cause of my issue ?

my vimrc configuration is below

" ----------------------------------------------------------
" settings for vim-ledger plugin


" General settings
let g:ledger_bin = 'hledger'
let g:ledger_accounts_cmd = '-f % accounts'
let g:ledger_default_commodity = '€'
let g:ledger_commodity_before = 1


" String that will be used to fill the space between
" account name and amount in the foldtext. 
" Set this to get some kind of lines or visual aid.
let g:ledger_fillstring = '    -'

" option applied to ledger when syntax check
nnoremap <leader>hc :!hledger -f % check -s

" alignement sur la décimale

let g:ledger_decimal_sep = ','
let g:ledger_align_at = 70
au FileType ledger inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR>
au FileType ledger vnoremap <silent> <Tab> :LedgerAlign<CR>

i tried to execute hledger -f % accounts and it worked

@alerque
Copy link
Member

alerque commented Dec 18, 2021

"until now"

What changed? This plugin hasn't been changed much recently. Did you upgrade Vim? Hledger? Something else? Your other plugins?

@serici
Copy link
Author

serici commented Dec 18, 2021

sure, I've upgraded my distro, not sure it is related and i haven't paid attention on what has been updated (list was too long). (haskell for sure) but don't know about vim and ledger.

is there a log or something i can check to figure out where the problem is ?

@serici
Copy link
Author

serici commented Dec 24, 2021

hi,

i'm doing my homework !

  • vim works → ok
  • hledger works → ok
  • only one plugin in vim → vim-ledger
  • plugin is up to date (git pull today)
  • filetype is detected (:set returns the good filetype)
  • omnicomplete command is launched (echo msg in LedgerComplete is visible)

don't know where to look further :( . My bet is that the cash of accounts is badly loaded) but the command hledger -f % accounts works

any help would be appreciated

@atsaloli

This comment was marked as off-topic.

@alerque

This comment was marked as off-topic.

@atsaloli

This comment was marked as off-topic.

@atsaloli

This comment was marked as off-topic.

@atsaloli

This comment was marked as off-topic.

@alerque
Copy link
Member

alerque commented Apr 7, 2023

Feel free to open a new issue about that, it would be nice to surface a more useful error. I've run into it too.

Your issue however was completely unrelated to this one, the OP stated:

the command hledger -f % accounts works

Which means his deal was something else...

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

No branches or pull requests

3 participants