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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/internal/jsonrpc2/messages.go:171:5: undefined: errors.As
third_party/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/serve.go:129:5: undefined: errors.Is

解决方法

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