lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

Fix python DeprecationWarning #114

Closed theimpostor closed 6 years ago

theimpostor commented 6 years ago

Getting this error starting vim after upgrading to python 3.7.0:

$ vim ~/.vimrc
Error detected while processing function rtags#InitPython:
line    7:
/must>not&exist/foo:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
Press ENTER or type command to continue

rtags appears to continue to work after dismissing this error, but eventually I suppose this error could be fatal.

A related issue which also has a workaround is here: https://github.com/vim/vim/issues/3117#issuecomment-402622616

theimpostor commented 6 years ago

This is fixed in vim: https://github.com/vim/vim/commit/79a494d5e2f97c10e74f92ea529552623c314422