Closed zhizunbao84 closed 10 years ago
Something is wrong with your go environment, gocode has nothing to do with it. Probably set GOROOT=H:\go\go;
the semicolon (';') at the end shouldn't be here. And here too: set GOPATH=H:\go\mygo;
. No semicolons in these paths at the end. Well, maybe it's ok to have it in GOPATH, but not in GOROOT definitely.
Closing it, No response, not a gocode issue.
when i use go get -u -ldflags -H=windowsgui github.com/nsf/gocode
i get errors:
Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\admin>go get -u -ldflags -H=windowsgui github.com/nsf/gocode package github.com/nsf/gocode imports bytes: unrecognized import path "bytes" package github.com/nsf/gocode imports encoding/json: unrecognized import path "encoding/json" package github.com/nsf/gocode imports errors: unrecognized import path "errors" package github.com/nsf/gocode imports flag: unrecognized import path "flag" package github.com/nsf/gocode imports fmt: unrecognized import path "fmt" package github.com/nsf/gocode imports go/ast: unrecognized import path "go/ast" package github.com/nsf/gocode imports go/parser: unrecognized import path "go/parser" package github.com/nsf/gocode imports go/scanner: unrecognized import path "go/scanner" package github.com/nsf/gocode imports go/token: unrecognized import path "go/token" package github.com/nsf/gocode imports io: unrecognized import path "io" package github.com/nsf/gocode imports io/ioutil: unrecognized import path "io/ioutil" package github.com/nsf/gocode imports net: unrecognized import path "net" package github.com/nsf/gocode imports net/rpc: unrecognized import path "net/rpc" package github.com/nsf/gocode imports os: unrecognized import path "os" package github.com/nsf/gocode imports path/filepath: unrecognized import path "path/filepath" package github.com/nsf/gocode imports reflect: unrecognized import path "reflect" package github.com/nsf/gocode imports runtime: unrecognized import path "runtime" package github.com/nsf/gocode imports sort: unrecognized import path "sort" package github.com/nsf/gocode imports strconv: unrecognized import path "strconv" package github.com/nsf/gocode imports strings: unrecognized import path "strings" package github.com/nsf/gocode imports sync: unrecognized import path "sync" package github.com/nsf/gocode imports syscall: unrecognized import path "syscall" package github.com/nsf/gocode imports text/scanner: unrecognized import path "text/scanner" package github.com/nsf/gocode imports time: unrecognized import path "time" package github.com/nsf/gocode imports unicode: unrecognized import path "unicode" package github.com/nsf/gocode imports unicode/utf8: unrecognized import path "unicode/utf8" package github.com/nsf/gocode imports unsafe: unrecognized import path "unsafe"
my environment variables below: C:\Users\admin>go env set GOARCH=386 set GOBIN=H:\go\go\bin set GOCHAR=8 set GOEXE=.exe set GOHOSTARCH=386 set GOHOSTOS=windows set GOOS=windows set GOPATH=H:\go\mygo; set GORACE= set GOROOT=H:\go\go; set GOTOOLDIR=H:\go\go;\pkg\tool\windows_386 set CC=gcc set GOGCCFLAGS=-g -O2 -m32 -mthreads set CGO_ENABLED=1
what's wrong with me?!! what should i do?!