-
Notifications
You must be signed in to change notification settings - Fork 55
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
Unable to set ledger binary #83
Comments
Do you have |
Thanks for noting that @gainhad, if that's really the case that's clearly a bug. It shouldn't require that option to be set. |
@gainhad The workaround you describe seems to be contraindicated by this code: vim-ledger/ftplugin/ledger.vim Lines 43 to 45 in 2dbe0ea
In other words the plugin is already setting it to an empty string if it is not set. The only way your workaround would fix anything is if your configuration was setting it to something invalid first, then clearing it would help. Not being set at all should not be an issue. I still don't know what the problem is here, but that doesn't seem to be it. |
@anjannath and @gainhad I'm wondering if you guys even have the ledger file type set properly. The only way I can think of to get that error is if you try to call a function of the plugin (the source of which will autoload) before having loaded the filetype definition (which sets up those variables). When you open one of your journals, what is the output of |
@alerque I think I might know the issue. |
@gainhad That's some sort of race condition, Thanks for the info though. |
@alerque No problem. Let me know if there's any other info that might be useful. |
@anjannath and @gainhad this should be fixed now, please let me know if it gives you any trouble. If you don't need |
I am using
hledger
and would like to set it usingg:ledger_bin
, but when add it to my.vimrc
, there are errors:The text was updated successfully, but these errors were encountered: