解决YouCompleteMe"encoding" is an invalid keyword 错误
来源:互联网 发布:egg drop. 算法 编辑:程序博客网 时间:2024/06/01 13:29
今天试着配置vim关于python的设置,在使用YouCompleteMe操作的时候,提示'encoding' is an invalid keyword argument on python files
,查看message,为:~/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/utils.py
中的ReadFile引起的问题:
def ReadFile( filepath ): with open( filepath, encoding = 'utf8' ) as f: return f.read()
排查发现,是因为这段代码只支持python3,所以需要vim支持python3,用brew install vim --with-python3
解决
阅读全文
0 0
- 解决YouCompleteMe"encoding" is an invalid keyword 错误
- 关于错误: 'encoding' is an invalid keyword argument for this function的错误原因之一
- python 2.7版本解决TypeError: 'encoding' is an invalid keyword argument for this function
- 【错误解决方法】void[] is an invalid type
- 错误解决:parse() got an unexpected keyword argument 'transport_encoding'
- void is an invalid type for the variable……错误解决
- 编译报错void is an invalid type for the variable……错误解决
- Python学习笔记 --- 'password' is an invalid keyword argument for this function解决办法
- 解决错误:This bundle is invalid
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- is not writable or has an invalid setter method错误
- 解决anaconda pip,parse() got an unexpected keyword argument 'transport_encoding'错误
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决[00原创]
- asp.net 关于WebResource.axd, "This is an invalid webresource request."的错误
- 处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC" task.
- Eclipse中出现错误“void is an invalid type for the variable xxx”
- gradle 安装错误:JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java
- mediaTypes错误(Bean property 'mediaTypes' is not writable or has an invalid setter method.)
- Hadoop+Spark 之旅—脚踏实地、仰望星空(教程目录)
- android activity之间自定义类的传递
- 记Nginx正向代理请求参数
- python中partial的使用规则
- 用SPFA求解最短路径问题
- 解决YouCompleteMe"encoding" is an invalid keyword 错误
- Codeforces 292D [Connected Components]--并查集的巧妙应用
- Linux进程及job管理
- [Magento SQL] 根据SKU修改商品的某个属性的值
- string中find和find_first_of函数用法总结
- 源码阅读技巧
- 奶牛的超十进制算数
- Pagodas(思维)
- Liferay 学习教程-ServiceBuilder的基本使用