使用 pyflakes 插件运行 vim 时出错 [英] Errors when running vim with the pyflakes plugin

查看:29
本文介绍了使用 pyflakes 插件运行 vim 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在玩 vim 的 pyflakes 插件,现在当我打开一个 python 文件时,我得到了屏幕截图中的错误消息此处


I'm playing with the pyflakes plugin for vim and now when I open a python file I get the error messages in the screenshot here

任何想法如何解决这个问题?

Any ideas how to fix this?

提前致谢...

推荐答案

https://github.com/kevinw/pyflakes-vim/issues/27

您可以向用户推荐他们使用 git clone --recursive 克隆 pyflakes-vim 存储库,或者您可以事后建议使用 git submodule update --init --recursive 如果 pyflakes-vim 保存为 git 子模块自己.

You can recommend to users that they clone the pyflakes-vim repo with git clone --recursive or you can suggest after the fact to use git submodule update --init --recursive if pyflakes-vim is saved as a git submodule itself.

或者去 pyflakes-vim 并:

Or go to pyflakes-vim and:

git submodule init && git submodule update

重点是如果系统范围内安装的版本太旧,pyflakes-vim 需要 ftplugin/plugin/pyflakes 下 pyflakes 的(新鲜)本地副本.

The point is that pyflakes-vim needs a (fresh) local copy of pyflakes under ftplugin/plugin/pyflakes if the system-wide installed version is too old.

这篇关于使用 pyflakes 插件运行 vim 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆