My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

failed to install go vscode

Default profile photo
Anonymous
·Dec 31, 2019

Hi Go experts, I am have a problem in installing Go VScode as followed.

Can anyone please advise how to move on? Great thanks in advance!

go.toolsGopath setting is not set. Using GOPATH C:\Users\gordo\go
Installing 7 tools at C:\Users\gordo\go\bin in module mode.
  gocode
  gopkgs
  go-outline
  gocode-gomod
  godef
  goreturns
  golint

Installing github.com/mdempsky/gocode FAILED
Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED
Installing github.com/ramya-rao-a/go-outline FAILED
Installing github.com/stamblerre/gocode FAILED
Installing github.com/rogpeppe/godef FAILED
Installing github.com/sqs/goreturns FAILED
Installing golang.org/x/lint/golint FAILED

7 tools failed to install.

gocode:
Error: Command failed: C:\Go\bin\go.exe get -v github.com/mdempsky/gocode
go: finding github.com/mdempsky/gocode latest
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3
go: extracting golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
go: finding github.com/mdempsky/gocode latest
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3
go: extracting golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40

gopkgs:
Error: Command failed: C:\Go\bin\go.exe get -v github.com/uudashr/gopkgs/cmd/gopkgs
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40

go-outline:
Error: Command failed: C:\Go\bin\go.exe get -v github.com/ramya-rao-a/go-outline
go: finding github.com/ramya-rao-a/go-outline latest
go: finding golang.org/x/tools latest
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
go: finding github.com/ramya-rao-a/go-outline latest
go: finding golang.org/x/tools latest
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40

gocode-gomod:
Error: Command failed: C:\Go\bin\go.exe build -o C:\Users\gordo\go\bin\gocode-gomod.exe github.com/stamblerre/gocode
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40

godef:
Error: Command failed: C:\Go\bin\go.exe get -v github.com/rogpeppe/godef
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40

goreturns:
Error: Command failed: C:\Go\bin\go.exe get -v github.com/sqs/goreturns
go: finding github.com/sqs/goreturns latest
go: finding golang.org/x/tools latest
golang.org/x/tools/internal/semver
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
go: finding github.com/sqs/goreturns latest
go: finding golang.org/x/tools latest
golang.org/x/tools/internal/semver
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40

golint:
Error: Command failed: C:\Go\bin\go.exe get -v golang.org/x/lint/golint
go: finding golang.org/x/lint latest
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40
go: finding golang.org/x/lint latest
runtime
# runtime
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
    previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
    previous declaration at c:\go\src\runtime\alg.go:329:40