Is your vim built with Python 3 support? If you have Python 2 only then we call bean-query to get the information, so it will have to be in your path.
On Fri, Feb 17, 2017, 5:46 PM shaun <senorsm...@gmail.com> wrote: > Awesome! > > That seems to have gotten me a little closer. > > > I now get the following error the first time I try to auto complete: > > *Error detected while processing function > beancount#complete[46]..beancount#load_accounts[3]..beancount#find_acc* > *ounts[1]..beancount#query_single:* > *line 13:* > *Traceback (most recent call last):* > > *Error detected while processing function > beancount#complete[46]..beancount#load_accounts[3]..beancount#find_acc* > *ounts[1]..beancount#query_single:* > *line 13:* > * File "<string>", line 6, in <module>* > > *Error detected while processing function > beancount#complete[46]..beancount#load_accounts[3]..beancount#find_acc* > *ounts[1]..beancount#query_single:* > *line 13:* > * File > "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",* > *line 219, in check_output* > > *Error detected while processing function > beancount#complete[46]..beancount#load_accounts[3]..beancount#find_acc* > *ounts[1]..beancount#query_single:* > *line 13:* > * raise CalledProcessError(retcode, cmd, output=output)* > > *subprocess.CalledProcessError: Command '['bean-query', > 'wf-credit-shaun.bean', 'select distinct account;']' ret* > *urned non-zero exit status 1* > > > After which no patterns are found. > > > I notice that it's referring to the system python 2.7.13. However, I'm > using pyenv to use python 3.6. I have a .python-version set in the root of > this directory. I tried setting pyenv global 3.6.0 with the exact same > results. No clue if this is what's causing my problems or not. > > On Fri, Feb 17, 2017 at 1:04 PM Jason Chu <xen...@gmail.com> wrote: > > Ah, you need to add: > > filetype plugin indent on > > You don't need the set foldmethod in there either because > ftplugin/beancount.vim sets it. > > On Fri, Feb 17, 2017 at 12:59 PM Jason Chu <xen...@gmail.com> wrote: > > I just tried with pathogen and it didn't work. It's odd that the filetype > is detected but the omnifunc isn't being set. > > Using Vundle worked well for me though. I will fiddle more with pathogen, > my guess is there's some config missing. > > On Tue, Feb 14, 2017 at 11:02 PM shaun <senorsm...@gmail.com> wrote: > > I have simplified my ~/.vimrc to: > > execute pathogen#infect() > syntax on > set foldmethod=syntax > > > > I actually had the foldmethod commented for some reason, so that's > basically working now. The autocompletion still shows the same error. > > For the sake of completion, I also have > ~/.vim/autoload/pathogen.vim > ~/.vim/bundle/vim-beancount/* > > > > On Tue, Feb 14, 2017 at 10:37 PM Jason Chu <xen...@gmail.com> wrote: > > Can you share a simple vimrc that doesn't work? I can test it to see > what's up. > > > On Tue, Feb 14, 2017, 9:15 PM senorsmile <senorsm...@gmail.com> wrote: > > I use pathogen and can confirm that the plugin is loading and that syntax > highlighting is working. > > However, neither folding nor autocomplete seems to work at all. > > Ctrl+X->Ctrl+O gives > E764: Option 'omnifunc' not set > > > zr, zn, zj, zk... none seem to fold much of anything. I tried a recent > suggestion of using > > # > ## > ### > ### > etc. > > to no avail. > > Anything special I should be doing here? > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to beancount@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/d3ad2958-ae08-4894-bf5a-fbc63545f64f%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/d3ad2958-ae08-4894-bf5a-fbc63545f64f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to beancount@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAFFHUguU5xjkVk%2BMjzi4TrHgt6Uy6%2Bxh%2BKMxgudjP-_-tQwahA%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAFFHUguU5xjkVk%2BMjzi4TrHgt6Uy6%2Bxh%2BKMxgudjP-_-tQwahA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to beancount@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAMQv9hD2QWPsLHjpdhOWDnHbs%3DU%2B5nMWs3%2BfsqOx%3D_cMfAxq7A%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAMQv9hD2QWPsLHjpdhOWDnHbs%3DU%2B5nMWs3%2BfsqOx%3D_cMfAxq7A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to beancount@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAFFHUguP3tV-8axvjmU7rsT9g_uyQfwrZ7dKBHTrY7zZDzwEPg%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAFFHUguP3tV-8axvjmU7rsT9g_uyQfwrZ7dKBHTrY7zZDzwEPg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to beancount@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAMQv9hCC_pp8v4eKgiyqhKceMwiGabgJmqbzv-4yzPHdw0KkPg%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAMQv9hCC_pp8v4eKgiyqhKceMwiGabgJmqbzv-4yzPHdw0KkPg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAFFHUgsK1%2BnHgtZ8KD_8PzRUcyHX2KiW6SEySS%2BAQJAdP%3DyqRA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.