commit | 50fa39b762bc2747ec16565777426e00b1b86cb8 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Mon Nov 11 12:56:51 2019 -0500 |
committer | Michael Matloob <matloob@golang.org> | Mon Nov 11 18:23:52 2019 +0000 |
tree | 22c45e32f356f73fa70ea12ca19aadae9090e7f8 | |
parent | 8cb0d02132ec15eea60276edade84bbd89ad3dca [diff] |
internal/lsp/cache: have NewView create view even if load all packages fails Even if the packages.Load of the directory the NewView is being created for fails, create and add the view. But also return the error from NewView, just after the new view has been added. Fixes golang/go#35468 Change-Id: I76c2d3cbe1a508ad0794a6fcd3bc67cd48c97e22 Reviewed-on: https://go-review.googlesource.com/c/tools/+/206497 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.