ternjs / tern_for_vim

Tern plugin for Vim
MIT License
1.83k stars 100 forks source link

DeprecationWarning: the imp module is deprecated in favour of importlib; #197

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, I woke up this morning, updated all my tools

1. brew update; brew upgrade; npm -g i npm; 
2. (inside vim using vim plugged) :PlugUpdate
3. (inside tern_for_vim) npm i

And then as usual proceeded to start editing a javascript file. When I opened the file following warning appeared:

Error detected while processing /Users/pyza/Projects/dotfiles/vim/plugged/tern_for_vim/autoload/tern.vim:
line    9:
/must>not&exist/foo:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

My stuff: MacBook Air Mid 2012 macOS 10.13.5 Vim 8.1 (compiled Jul 5 2018 by Homebrew) tern_for_vim 0.5.0 (checked inside package.json, but I run the most up to date version via Vim Plugged)

jasongonzales23 commented 6 years ago

👍 I came here with the same issue

othree commented 6 years ago

Use 8.1.0201 https://github.com/vim/vim/issues/3117#issuecomment-406868685

ghost commented 6 years ago

And for neovim what version?