VSCode с установкой WSL Remote + Golang gopls завершается с ошибкой - PullRequest
0 голосов
/ 17 апреля 2020

Когда VSCode пытается установить golang .org / x / tools / gopls, он выдает следующую ошибку:

get "golang.org/x/tools": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools?go-get=1
go: finding golang.org/x/tools v0.0.0-20191108194844-46f05828f2fe
go: downloading golang.org/x/tools/gopls v0.2.0
golang.org/x/tools/internal/lsp/source
# golang.org/x/tools/internal/lsp/source
../../../pkg/mod/golang.org/x/tools@v0.0.0-20200407041343-bf15fae40dea/internal/lsp/source/completion.go:697:21: file.LineStart undefined (type *token.File has no field or method LineStart)
../../../pkg/mod/golang.org/x/tools@v0.0.0-20200407041343-bf15fae40dea/internal/lsp/source/format.go:246:27: fset.File(f.Pos()).LineStart undefined (type *token.File has no field or method LineStart)
../../../pkg/mod/golang.org/x/tools@v0.0.0-20200407041343-bf15fae40dea/internal/lsp/source/format.go:271:13: tok.LineStart undefined (type *token.File has no field or method LineStart)
...