YouCompleteMe编译VIM中出现错误

问题描述

我是VIM的新手,我尝试使用VimPlug安装YouCompleteMe插件...但是当我启动S = "acbcbba" my_dict = {k:S.count(k) for k in set(S)} 之后,却出现了此错误

python3 install.py --all

我不知道这是什么意思吗? 有完整的日志:

# golang.org/x/tools/internal/lsp/analysis/fillstruct
third_party/go/pkg/mod/golang.org/x/tools@v0.0.0-20200701133321-6ddc6be4d35f/internal/lsp/analysis/fillstruct/fillstruct.go:141:14: tok.Linestart undefined (type *token.File has no field or method Linestart)
third_party/go/pkg/mod/golang.org/x/tools@v0.0.0-20200701133321-6ddc6be4d35f/internal/lsp/analysis/fillstruct/fillstruct.go:170:15: tok.Linestart undefined (type *token.File has no field or method Linestart)
third_party/go/pkg/mod/golang.org/x/tools@v0.0.0-20200701133321-6ddc6be4d35f/internal/lsp/analysis/fillstruct/fillstruct.go:172:15: tok.Linestart undefined (type *token.File has no field or method Linestart)
# golang.org/x/tools/internal/jsonrpc2
third_party/go/pkg/mod/golang.org/x/tools@v0.0.0-20200701133321-6ddc6be4d35f/internal/jsonrpc2/messages.go:171:5: undefined: errors.As
third_party/go/pkg/mod/golang.org/x/tools@v0.0.0-20200701133321-6ddc6be4d35f/internal/jsonrpc2/serve.go:129:5: undefined: errors.Is

解决方法

更新您的Go版本,太旧了。 errors.As在Go 1.13中引入。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...