Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim error : Error detected while processing function <SNR>14_UseConfigFiles[26]..<SNR>14_Initialize[47]..<SNR>14_InitializePythonBuiltin:

Tags:

python

vim

I got the following error when I simply $ vim CHANGELOG.md

"CHANGELOG.md" 1788L, 61291C
Error detected while processing function <SNR>14_UseConfigFiles[26]..<SNR>14_Initialize[47]..<SNR>14_InitializePythonBuiltin:
line   23:
/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

Any idea where it come from ? Can someone help me to debug this ?

like image 407
alienlebarge Avatar asked Jul 06 '18 12:07

alienlebarge


2 Answers

Do :scriptnames. Script number 14 is where the errors come from.

like image 111
romainl Avatar answered Oct 21 '22 09:10

romainl


There is a Python error somewhere that isn't trapped correctly by s:InitializePythonBuiltin() from your script 14 (check :scriptnames as romainl said). Either make sure the error doesn't happen any more, by no longer importing imp, or contact the maintainer of the plugin #14 to not complain on this deprecation problem, or to make his plugin portable...

Shameless plug: in lh-vim-lib, I provide a lh#exception#say_what() function that if called will permit you navigate the functions called in the context of the last error.

like image 23
Luc Hermitte Avatar answered Oct 21 '22 11:10

Luc Hermitte