Search code examples
vimpython-moderope

RopeGenerateAutoimportCache on vim startup


I seem to have to run RopeGenerateAutoimportCache every time I open my python project in vim before RopeAutoImport will work. If I run RopeAutoImport before caching the projects modules I get the following error:

Global name my_func not found!

Is there a way of either generating the cache on each vim startup, or preferably, saving the cache to be reread on startup?


Solution

  • I went back to python-mode (which is the suggested plugin for python) and found a problem in the code for which, at the time writing this, I have a patch to be merged: github.com/klen/python-mode/pull/488

    I am no longer seeing this problem with the patched code.