如何解决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中引入。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。