Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Fix godoc command not found #854

Merged
merged 3 commits into from Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ The extension uses the following tools, installed in the current GOPATH. If any
- go-symbols: `go get -u -v github.com/newhook/go-symbols`
- guru: `go get -u -v golang.org/x/tools/cmd/guru`
- gotests: `go get -u -v github.com/cweill/gotests/...`
- godoc: `go get -u -v golang.org/x/tools/cmd/godoc`

If you wish to have the extension use a separate GOPATH for its tools, provide the desired location in the setting `go.toolsGopath`.
`gometalinter` and `dlv` are two tools that are exceptions, and will need to be installed in your GOPATH.
Expand All @@ -171,6 +172,7 @@ go get -u -v github.com/tpng/gopkgs
go get -u -v github.com/newhook/go-symbols
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v github.com/cweill/gotests/...
go get -u -v golang.org/x/tools/cmd/godoc
```

And for debugging:
Expand Down
1 change: 1 addition & 0 deletions src/goInstallTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function getTools(goVersion: SemVersion): { [key: string]: string } {
// Install the doc/def tool that was chosen by the user
if (goConfig['docsTool'] === 'godoc') {
tools['godef'] = 'github.com/rogpeppe/godef';
tools['godoc'] = 'golang.org/x/tools/cmd/godoc';
} else if (goConfig['docsTool'] === 'gogetdoc') {
tools['gogetdoc'] = 'github.com/zmb3/gogetdoc';
}
Expand Down